Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::TFEditorControlPoint Class Reference
+ Inheritance diagram for inviwo::TFEditorControlPoint:

Public Member Functions

 TFEditorControlPoint (TFPrimitive &primitive)
 
virtual TFControlPointConnectionleft () const override
 
virtual TFControlPointConnectionright () const override
 
virtual void setLeft (TFControlPointConnection *left) override
 
virtual void setRight (TFControlPointConnection *right) override
 
- Public Member Functions inherited from inviwo::TFEditorPrimitive
 TFEditorPrimitive (TFPrimitive &primitive)
 
TFPrimitivegetPrimitive ()
 
const TFPrimitivegetPrimitive () const
 
void setPosition (double pos)
 
double getPosition () const
 
void setColor (const vec4 &color)
 
void setColor (const vec3 &color)
 
void setAlpha (float alpha)
 
const vec4 & getColor () const
 
double getSize () const
 
void beginMouseDrag ()
 
- Public Member Functions inherited from inviwo::TFPrimitiveObserver
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (const Observer &other)
 
virtual ~Observer ()
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 

Protected Member Functions

virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
virtual QRectF boundingRect () const override
 
virtual QPainterPath shape () const override
 
TFMoveMode moveMode () const
 
virtual int zLevel () const override
 
- Protected Member Functions inherited from inviwo::TFEditorPrimitive
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void onTFPrimitiveChange (const TFPrimitive &p) override
 
QPointF constrainPosToXorY (QPointF pos) const
 
void setHovered (bool hover)
 
void updateLabel ()
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Static Protected Attributes

static constexpr int tfZLevel = 10
 

Additional Inherited Members

- Protected Attributes inherited from inviwo::TFEditorPrimitive
TFPrimitivedata_
 
bool isEditing_
 
bool hovered_
 
std::unique_ptr< QGraphicsSimpleTextItem > label_
 
QPointF cachedPosition_
 used for restricting to horizontal/vertical movement
 
- Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_
 

Member Function Documentation

◆ itemChange()

virtual QVariant inviwo::TFEditorControlPoint::itemChange ( GraphicsItemChange change,
const QVariant & value )
overrideprotectedvirtual

Reimplemented from inviwo::TFEditorPrimitive.

◆ left()

virtual TFControlPointConnection * inviwo::TFEditorControlPoint::left ( ) const
inlineoverridevirtual

Reimplemented from inviwo::TFEditorPrimitive.

◆ right()

virtual TFControlPointConnection * inviwo::TFEditorControlPoint::right ( ) const
inlineoverridevirtual

Reimplemented from inviwo::TFEditorPrimitive.

◆ setLeft()

virtual void inviwo::TFEditorControlPoint::setLeft ( TFControlPointConnection * left)
inlineoverridevirtual

Reimplemented from inviwo::TFEditorPrimitive.

◆ setRight()

virtual void inviwo::TFEditorControlPoint::setRight ( TFControlPointConnection * right)
inlineoverridevirtual

Reimplemented from inviwo::TFEditorPrimitive.

◆ zLevel()

virtual int inviwo::TFEditorControlPoint::zLevel ( ) const
inlineoverrideprotectedvirtual

The documentation for this class was generated from the following file: