![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| void | beginMouseDrag () |
| const vec4 & | getColor () const |
| double | getPosition () const |
| TFPrimitive & | getPrimitive () |
| const TFPrimitive & | getPrimitive () const |
| double | getSize () const |
| virtual TFControlPointConnection * | left () const |
| virtual TFControlPointConnection * | right () const |
| void | setAlpha (float alpha) |
| void | setColor (const vec3 &color) |
| void | setColor (const vec4 &color) |
| virtual void | setLeft (TFControlPointConnection *) |
| void | setPosition (double pos) |
| virtual void | setRight (TFControlPointConnection *) |
| TFEditorPrimitive (TFPrimitive &primitive) | |
| Public Member Functions inherited from inviwo::Observer | |
| Observer (const Observer &other) | |
| Observer (Observer &&other) | |
| Observer & | operator= (const Observer &other) |
| Observer & | operator= (Observer &&other) |
| void | removeObservation (ObservableInterface *observable) |
| void | removeObservations () |
| virtual | ~Observer () |
Protected Member Functions | |
| QPointF | constrainPosToXorY (QPointF pos) const |
| virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
| virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
| virtual void | onTFPrimitiveChange (const TFPrimitive &p) override |
| void | setHovered (bool hover) |
| void | updateLabel () |
| virtual int | zLevel () const =0 |
| Protected Member Functions inherited from inviwo::Observer | |
| void | addObservation (ObservableInterface *observable) |
Protected Attributes | |
| QPointF | cachedPosition_ |
| used for restricting to horizontal/vertical movement | |
| TFPrimitive & | data_ |
| bool | hovered_ |
| bool | isEditing_ |
| std::unique_ptr< QGraphicsSimpleTextItem > | label_ |
| Protected Attributes inherited from inviwo::Observer | |
| std::unordered_set< ObservableInterface * > | observables_ |
Friends | |
| IVW_MODULE_QTWIDGETS_API bool | operator< (const TFEditorPrimitive &lhs, const TFEditorPrimitive &rhs) |
| IVW_MODULE_QTWIDGETS_API bool | operator== (const TFEditorPrimitive &lhs, const TFEditorPrimitive &rhs) |
|
explicit |
Constructs a TransferFunction editor primitive. The graphics item is positioned at the primitive location (scalar value and opacity) within the scene. The graphical representation should thus be centered around (0,0) in local coordinates.
| primitive | the primitive |
|
overrideprotectedvirtual |
Reimplemented from inviwo::TFPrimitiveObserver.