ALBA
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
mmaVolumeMaterial Class Reference

#include <mmaVolumeMaterial.h>

Inheritance diagram for mmaVolumeMaterial:
Inheritance graph
[legend]
Collaboration diagram for mmaVolumeMaterial:
Collaboration graph
[legend]

Public Member Functions

 mmaVolumeMaterial ()
 
virtual ~mmaVolumeMaterial ()
 
 albaTypeMacro (mmaVolumeMaterial, albaAttribute)
 
virtual void Print (std::ostream &os, const int tabs=0) const
 
virtual void DeepCopy (const albaAttribute *a)
 
virtual bool Equals (const albaAttribute *a)
 
void UpdateProp ()
 
void UpdateFromTables ()
 
void ApplyGammaCorrection (int preset=-1)
 
double const * GetTableRange ()
 
void SetTableRange (double *tableRange)
 
void SetTableRange (double a, double b)
 
- Public Member Functions inherited from albaAttribute
 albaAbstractTypeMacro (albaAttribute, albaReferenceCounted)
 
void operator= (const albaAttribute &a)
 
bool operator== (const albaAttribute &a) const
 
virtual void DeepCopy (const albaAttribute *a)
 
albaAttributeMakeCopy ()
 
bool Equals (const albaAttribute *a) const
 
void SetName (const char *name)
 
const char * GetName () const
 
albaObjectNewObjectInstance () const
 
albaAttributeNewInstance () const
 
virtual void Print (std::ostream &os, const int tabs=0) const
 
- Public Member Functions inherited from albaReferenceCounted
 albaReferenceCounted ()
 
virtual ~albaReferenceCounted ()
 
 albaAbstractTypeMacro (albaReferenceCounted, albaObject)
 
virtual void Delete ()
 
void Register (void *obj)
 
virtual void UnRegister (void *obj)
 
int GetReferenceCount ()
 
void SetReferenceCount (int)
 
- Public Member Functions inherited from albaObject
 albaObject ()
 
virtual ~albaObject ()
 
virtual void Delete ()
 
virtual const char * GetTypeName () const
 
virtual bool IsA (const char *type_name) const
 
virtual bool IsA (const albaTypeID &type_id) const
 
virtual albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 
- Public Member Functions inherited from albaStorable
 albaStorable ()
 
int Store (albaStorageElement *element)
 
int Restore (albaStorageElement *element)
 
albaObjectCastToObject ()
 
bool IsStorable ()
 

Public Attributes

vtkLookupTable * m_ColorLut
 
vtkPiecewiseFunction * m_OpacityTransferFunction
 
vtkPiecewiseFunction * m_GradientTransferFunction
 
vtkColorTransferFunction * m_ColorTransferFunction
 
vtkVolumeProperty * m_VolumeProperty
 
vtkVolumeProperty2 * m_VolumeProperty2
 
albaString m_MaterialName
 
double m_Level_LUT
 
double m_Window_LUT
 
double m_GammaCorrection
 
double m_HueRange [2]
 
double m_SaturationRange [2]
 
int m_NumValues
 
int m_InterpolationType
 
int m_Shade
 

Protected Member Functions

virtual int InternalStore (albaStorageElement *parent)
 
virtual int InternalRestore (albaStorageElement *node)
 
virtual int InternalStore (albaStorageElement *parent)
 
virtual int InternalRestore (albaStorageElement *node)
 
virtual int InternalStore (albaStorageElement *node)=0
 
virtual int InternalRestore (albaStorageElement *node)=0
 

Protected Attributes

int m_NumOpacityValues
 
int m_NumGradientValues
 
int m_NumColorValues
 
- Protected Attributes inherited from albaAttribute
albaString m_Name
 
- Protected Attributes inherited from albaReferenceCounted
int m_ReferenceCount
 
- Protected Attributes inherited from albaObject
bool m_HeapFlag
 
- Protected Attributes inherited from albaStorable
bool m_Storable
 

Additional Inherited Members

- Static Public Member Functions inherited from albaObject
static const char * GetStaticTypeName ()
 
static bool IsStaticType (const char *type_name)
 
static bool IsStaticType (const albaTypeID &type_id)
 
static const albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 
- Static Public Member Functions inherited from albaStorable
static albaStorableSafeCastToObject (albaObject *o)
 

Detailed Description

Definition at line 38 of file mmaVolumeMaterial.h.

Constructor & Destructor Documentation

◆ mmaVolumeMaterial()

mmaVolumeMaterial::mmaVolumeMaterial ( )

◆ ~mmaVolumeMaterial()

virtual mmaVolumeMaterial::~mmaVolumeMaterial ( )
virtual

Member Function Documentation

◆ albaTypeMacro()

mmaVolumeMaterial::albaTypeMacro ( mmaVolumeMaterial  ,
albaAttribute   
)

◆ Print()

virtual void mmaVolumeMaterial::Print ( std::ostream &  os,
const int  tabs = 0 
) const
virtual

Print a dump of this object.

Reimplemented from albaAttribute.

◆ DeepCopy()

virtual void mmaVolumeMaterial::DeepCopy ( const albaAttribute a)
virtual

Copy the contents of another Meter attribute into this one.

Reimplemented from albaAttribute.

◆ Equals()

virtual bool mmaVolumeMaterial::Equals ( const albaAttribute a)
virtual

Compare with another Meter attribute.

◆ UpdateProp()

void mmaVolumeMaterial::UpdateProp ( )

Call to update volume properties.

◆ UpdateFromTables()

void mmaVolumeMaterial::UpdateFromTables ( )

Used to update all member variables from LUT or Transfer Functions.

◆ ApplyGammaCorrection()

void mmaVolumeMaterial::ApplyGammaCorrection ( int  preset = -1)

Used to apply gamma correction to lut preset, need preset in order to avoid recursive applying on the same lut.

◆ GetTableRange()

double const * mmaVolumeMaterial::GetTableRange ( )
inline

Returns TableRange.

Definition at line 84 of file mmaVolumeMaterial.h.

◆ SetTableRange() [1/2]

void mmaVolumeMaterial::SetTableRange ( double *  tableRange)
inline

Sets TableRange.

Definition at line 87 of file mmaVolumeMaterial.h.

◆ SetTableRange() [2/2]

void mmaVolumeMaterial::SetTableRange ( double  a,
double  b 
)
inline

Definition at line 90 of file mmaVolumeMaterial.h.

◆ InternalStore()

virtual int mmaVolumeMaterial::InternalStore ( albaStorageElement node)
protectedvirtual

This is called by Store() and must be reimplemented by subclasses.

The node element where the object should store itself is passed as argument.

Reimplemented from albaAttribute.

◆ InternalRestore()

virtual int mmaVolumeMaterial::InternalRestore ( albaStorageElement node)
protectedvirtual

This is called by Restore() and must be reimplemented by subclasses The element from which the object should restore itself is passed as argument.

Reimplemented from albaAttribute.

Member Data Documentation

◆ m_ColorLut

vtkLookupTable* mmaVolumeMaterial::m_ColorLut

Definition at line 64 of file mmaVolumeMaterial.h.

◆ m_OpacityTransferFunction

vtkPiecewiseFunction* mmaVolumeMaterial::m_OpacityTransferFunction

Definition at line 65 of file mmaVolumeMaterial.h.

◆ m_GradientTransferFunction

vtkPiecewiseFunction* mmaVolumeMaterial::m_GradientTransferFunction

Definition at line 66 of file mmaVolumeMaterial.h.

◆ m_ColorTransferFunction

vtkColorTransferFunction* mmaVolumeMaterial::m_ColorTransferFunction

Definition at line 67 of file mmaVolumeMaterial.h.

◆ m_VolumeProperty

vtkVolumeProperty* mmaVolumeMaterial::m_VolumeProperty

Definition at line 68 of file mmaVolumeMaterial.h.

◆ m_VolumeProperty2

vtkVolumeProperty2* mmaVolumeMaterial::m_VolumeProperty2

Definition at line 69 of file mmaVolumeMaterial.h.

◆ m_MaterialName

albaString mmaVolumeMaterial::m_MaterialName

Associate a name to the volume material, this will be visible into the .msf file.

Definition at line 71 of file mmaVolumeMaterial.h.

◆ m_Level_LUT

double mmaVolumeMaterial::m_Level_LUT

Definition at line 73 of file mmaVolumeMaterial.h.

◆ m_Window_LUT

double mmaVolumeMaterial::m_Window_LUT

Definition at line 74 of file mmaVolumeMaterial.h.

◆ m_GammaCorrection

double mmaVolumeMaterial::m_GammaCorrection

Definition at line 75 of file mmaVolumeMaterial.h.

◆ m_HueRange

double mmaVolumeMaterial::m_HueRange[2]

Definition at line 76 of file mmaVolumeMaterial.h.

◆ m_SaturationRange

double mmaVolumeMaterial::m_SaturationRange[2]

Definition at line 77 of file mmaVolumeMaterial.h.

◆ m_NumValues

int mmaVolumeMaterial::m_NumValues

Definition at line 78 of file mmaVolumeMaterial.h.

◆ m_InterpolationType

int mmaVolumeMaterial::m_InterpolationType

Set the interpolation for the volume rendering: can be 0 (VTK_NEAREST_INTERPOLATION) or 1 (VTK_LINEAR_INTERPOLATION)

Definition at line 79 of file mmaVolumeMaterial.h.

◆ m_Shade

int mmaVolumeMaterial::m_Shade

Store the shade parameter for volume rendering (can be 0 pr 1)

Definition at line 80 of file mmaVolumeMaterial.h.

◆ m_NumOpacityValues

int mmaVolumeMaterial::m_NumOpacityValues
protected

Definition at line 98 of file mmaVolumeMaterial.h.

◆ m_NumGradientValues

int mmaVolumeMaterial::m_NumGradientValues
protected

Definition at line 99 of file mmaVolumeMaterial.h.

◆ m_NumColorValues

int mmaVolumeMaterial::m_NumColorValues
protected

Definition at line 100 of file mmaVolumeMaterial.h.


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