17#ifndef __mmaVolumeMaterial_H__
18#define __mmaVolumeMaterial_H__
29class vtkPiecewiseFunction;
30class vtkColorTransferFunction;
31class vtkVolumeProperty;
32class vtkVolumeProperty2;
47 virtual void Print(std::ostream& os,
const int tabs=0)
const;
77 double m_SaturationRange[2];
88 m_TableRange[0] = tableRange[0]; m_TableRange[1] = tableRange[1];
91 m_TableRange[0] = a; m_TableRange[1] = b;
103 double m_TableRange[2];
An abstract class for objects representing an attribute for albaVMEs.
Abstract class representing the interface for the unit of information stored in the storage.
albaString - performs common string operations on c-strings.
vtkLookupTable * m_ColorLut
virtual ~mmaVolumeMaterial()
albaString m_MaterialName
Associate a name to the volume material, this will be visible into the .msf file.
virtual void DeepCopy(const albaAttribute *a)
Copy the contents of another Meter attribute into this one.
vtkPiecewiseFunction * m_OpacityTransferFunction
void UpdateFromTables()
Used to update all member variables from LUT or Transfer Functions.
vtkVolumeProperty * m_VolumeProperty
virtual void Print(std::ostream &os, const int tabs=0) const
Print a dump of this object.
virtual int InternalStore(albaStorageElement *parent)
This is called by Store() and must be reimplemented by subclasses.
int m_Shade
Store the shade parameter for volume rendering (can be 0 pr 1)
void SetTableRange(double *tableRange)
Sets TableRange.
vtkPiecewiseFunction * m_GradientTransferFunction
albaTypeMacro(mmaVolumeMaterial, albaAttribute)
vtkColorTransferFunction * m_ColorTransferFunction
void UpdateProp()
Call to update volume properties.
virtual int InternalRestore(albaStorageElement *node)
This is called by Restore() and must be reimplemented by subclasses The element from which the object...
virtual bool Equals(const albaAttribute *a)
Compare with another Meter attribute.
void SetTableRange(double a, double b)
double const * GetTableRange()
Returns TableRange.
void ApplyGammaCorrection(int preset=-1)
Used to apply gamma correction to lut preset, need preset in order to avoid recursive applying on the...
vtkVolumeProperty2 * m_VolumeProperty2
int m_InterpolationType
Set the interpolation for the volume rendering: can be 0 (VTK_NEAREST_INTERPOLATION) or 1 (VTK_LINEAR...