|
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
|
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
|
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
|
virtual void | onTFPrimitiveChange (const TFPrimitive &p) override |
|
virtual int | zLevel () const =0 |
|
QPointF | constrainPosToXorY (QPointF pos) const |
|
void | setHovered (bool hover) |
|
void | updateLabel () |
|
void | addObservation (ObservableInterface *observable) |
|
|
TFPrimitive & | data_ |
|
bool | isEditing_ |
|
bool | hovered_ |
|
std::unique_ptr< QGraphicsSimpleTextItem > | label_ |
|
QPointF | cachedPosition_ |
| used for restricting to horizontal/vertical movement
|
|
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: