Inviwo
0.9.10.1
Inviwo documentation
|
Public Types | |
enum | { Type = UserType + TFEditorPrimitive::TFEditorIsovalueType } |
Public Types inherited from inviwo::TFEditorPrimitive | |
enum | ItemType { TFEditorUnknownPrimitiveType = 30, TFEditorControlPointType, TFControlPointConnectionType, TFEditorIsovalueType, Number_of_InviwoWidgetGraphicsItemTypes } |
Public Member Functions | |
TFEditorIsovalue (TFPrimitive &primitive, QGraphicsScene *scene, double size=14.0) | |
int | type () const override |
virtual void | onTFPrimitiveChange (const TFPrimitive &p) override |
Public Member Functions inherited from inviwo::TFEditorPrimitive | |
TFEditorPrimitive (TFPrimitive &primitive, QGraphicsScene *scene=nullptr, const vec2 &pos=vec2(), double size=14.0) | |
TFPrimitive & | getPrimitive () |
const TFPrimitive & | getPrimitive () 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 |
void | setTFPosition (const dvec2 &tfpos) |
virtual const QPointF & | getCurrentPos () const |
void | setSize (double s) |
double | getSize () const |
void | setHovered (bool hover) |
void | beginMouseDrag () |
void | stopMouseDrag () |
Public Member Functions inherited from inviwo::Observable< TFEditorPrimitiveObserver > | |
Observable (const Observable< TFEditorPrimitiveObserver > &other) | |
Observable (Observable< TFEditorPrimitiveObserver > &&other) | |
Observable< TFEditorPrimitiveObserver > & | operator= (const Observable< TFEditorPrimitiveObserver > &other) |
Observable< TFEditorPrimitiveObserver > & | operator= (Observable< TFEditorPrimitiveObserver > &&other) |
void | addObserver (TFEditorPrimitiveObserver *observer) |
void | removeObserver (TFEditorPrimitiveObserver *observer) |
virtual void | startBlockingNotifications () override final |
virtual void | stopBlockingNotifications () override final |
Public Member Functions inherited from inviwo::Observer | |
Observer (const Observer &other) | |
Observer (Observer &&other) | |
Observer & | operator= (Observer &&other) |
Observer & | operator= (const Observer &other) |
virtual | ~Observer () |
void | removeObservation (ObservableInterface *observable) |
void | removeObservations () |
Protected Member Functions | |
virtual QRectF | boundingRect () const override |
virtual QPainterPath | shape () const override |
Protected Member Functions inherited from inviwo::TFEditorPrimitive | |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *options, QWidget *widget) override |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
virtual QPointF | prepareItemPositionChange (const QPointF &pos) |
Protected Member Functions inherited from inviwo::Observable< TFEditorPrimitiveObserver > | |
void | forEachObserver (C callback) |
Protected Member Functions inherited from inviwo::ObservableInterface | |
void | addObservationHelper (Observer *observer) |
void | removeObservationHelper (Observer *observer) |
Protected Member Functions inherited from inviwo::Observer | |
void | addObservation (ObservableInterface *observable) |
Friends | |
IVW_MODULE_QTWIDGETS_API bool | operator== (const TFEditorIsovalue &lhs, const TFEditorIsovalue &rhs) |
IVW_MODULE_QTWIDGETS_API bool | operator< (const TFEditorIsovalue &lhs, const TFEditorIsovalue &rhs) |
Additional Inherited Members | |
Protected Types inherited from inviwo::Observer | |
using | ObservableSet = std::unordered_set< ObservableInterface * > |
Protected Attributes inherited from inviwo::TFEditorPrimitive | |
int | defaultZValue_ = 10 |
double | size_ |
bool | isEditingPoint_ |
QPointF | currentPos_ |
position within scene rect (not normalized) | |
bool | hovered_ |
TFPrimitive & | data_ |
Protected Attributes inherited from inviwo::Observer | |
ObservableSet | observables_ |