|
|
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 |
| void | addObservation (ObservableInterface *observable) |
|
|
QPointF | cachedPosition_ |
| | used for restricting to horizontal/vertical movement
|
|
TFPrimitive & | data_ |
|
bool | hovered_ |
|
bool | isEditing_ |
|
std::unique_ptr< QGraphicsSimpleTextItem > | label_ |
|
std::unordered_set< ObservableInterface * > | observables_ |
◆ TFEditorPrimitive()
| inviwo::TFEditorPrimitive::TFEditorPrimitive |
( |
TFPrimitive & | primitive | ) |
|
|
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.
- Parameters
-
◆ onTFPrimitiveChange()
| virtual void inviwo::TFEditorPrimitive::onTFPrimitiveChange |
( |
const TFPrimitive & | p | ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file:
- modules/qtwidgets/include/modules/qtwidgets/tf/tfeditorprimitive.h