Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::TFPrimitive Class Reference

Base class for a variety of primitives as used by a transfer function. More...

#include <tfprimitive.h>

+ Inheritance diagram for inviwo::TFPrimitive:

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
 
TFPrimitiveoperator= (const TFPrimitive &that)
 
TFPrimitiveoperator= (TFPrimitive &&that) noexcept
 
TFPrimitiveoperator= (const TFPrimitiveData &that)
 
void setData (const TFPrimitiveData &data)
 
const TFPrimitiveDatagetData () 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)
 

Detailed Description

Base class for a variety of primitives as used by a transfer function.

Member Function Documentation

◆ deserialize()

virtual void inviwo::TFPrimitive::deserialize ( Deserializer & d)
overridevirtual

Implements inviwo::Serializable.

◆ serialize()

virtual void inviwo::TFPrimitive::serialize ( Serializer & s) const
overridevirtual

Implements inviwo::Serializable.


The documentation for this class was generated from the following file: