Inviwo 0.9.12-pre
Inviwo documentation
|
Base class for a variety of primitives as used by a transfer function. More...
#include <tfprimitive.h>
Public Member Functions | |
TFPrimitive (double pos=0.0, const vec4 &color=vec4(0.0f)) | |
TFPrimitive (const TFPrimitiveData &data) | |
TFPrimitive (const TFPrimitive &rhs) | |
TFPrimitive (TFPrimitive &&rhs) noexcept | |
TFPrimitive & | operator= (const TFPrimitive &that) |
TFPrimitive & | operator= (TFPrimitive &&that) noexcept |
void | setData (const TFPrimitiveData &data) |
const TFPrimitiveData & | getData () const |
void | setPosition (double pos) |
double | getPosition () const |
void | setAlpha (float alpha) |
float | getAlpha () const |
void | setPositionAlpha (double pos, float alpha) |
void | setPositionAlpha (const dvec2 &p) |
void | setColor (const vec3 &color) |
void | setColor (const vec4 &color) |
const vec4 & | getColor () const |
void | notifyTFPrimitiveObservers () |
virtual void | serialize (Serializer &s) const override |
virtual void | deserialize (Deserializer &d) override |
Public Member Functions inherited from inviwo::Observable< TFPrimitiveObserver > | |
Observable (const Observable< TFPrimitiveObserver > &other) | |
Observable (Observable< TFPrimitiveObserver > &&other) noexcept | |
Observable< TFPrimitiveObserver > & | operator= (const Observable< TFPrimitiveObserver > &other) |
Observable< TFPrimitiveObserver > & | operator= (Observable< TFPrimitiveObserver > &&other) noexcept |
void | addObserver (TFPrimitiveObserver *observer) |
void | removeObserver (TFPrimitiveObserver *observer) |
virtual void | startBlockingNotifications () override final |
virtual void | stopBlockingNotifications () override final |
Public Member Functions inherited from inviwo::ObservableInterface | |
Public Member Functions inherited from inviwo::Serializable |
Additional Inherited Members | |
Protected Member Functions inherited from inviwo::Observable< TFPrimitiveObserver > | |
void | forEachObserver (C callback) |
Protected Member Functions inherited from inviwo::ObservableInterface | |
void | addObservationHelper (Observer *observer) |
void | removeObservationHelper (Observer *observer) |
Base class for a variety of primitives as used by a transfer function.
|
overridevirtual |
Implements inviwo::Serializable.
|
overridevirtual |
Implements inviwo::Serializable.