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

#include <mmaMaterial.h>

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

Public Types

enum  MATERIAL_TYPE { USE_VTK_PROPERTY , USE_LOOKUPTABLE , USE_TEXTURE }
 
enum  TEXTURE_MAP_MODE { PLANE_MAPPING = 0 , CYLINDER_MAPPING , SPHERE_MAPPING }
 

Public Member Functions

 mmaMaterial ()
 
virtual ~mmaMaterial ()
 
 albaTypeMacro (mmaMaterial, albaAttribute)
 
wxBitmap * MakeIcon ()
 
virtual void Print (std::ostream &os, const int tabs=0) const
 
virtual void DeepCopy (const albaAttribute *a)
 
virtual bool Equals (const albaAttribute *a)
 
void SetMaterialTexture (vtkImageData *tex)
 
vtkImageData * GetMaterialTexture ()
 
int GetMaterialTextureID ()
 
void SetMaterialTexture (int tex_id)
 
virtual void UpdateProp ()
 
void UpdateFromLut ()
 
- 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

vtkProperty * m_Prop
 
vtkLookupTable * m_ColorLut
 
albaString m_MaterialName
 
wxBitmap * m_Icon
 
double m_Value
 
double m_Ambient [3]
 
double m_AmbientIntensity
 
double m_Diffuse [3]
 
double m_DiffuseIntensity
 
double m_Specular [3]
 
double m_SpecularIntensity
 
double m_SpecularPower
 
double m_Opacity
 
double m_Representation
 
double m_HueRange [2]
 
double m_SaturationRange [2]
 
double m_TableRange [2]
 
int m_NumValues
 
int m_MaterialType
 
int m_TextureMappingMode
 

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

vtkImageData * m_TextureImage
 
int m_TextureID
 
- 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 36 of file mmaMaterial.h.

Member Enumeration Documentation

◆ MATERIAL_TYPE

Enumerator
USE_VTK_PROPERTY 
USE_LOOKUPTABLE 
USE_TEXTURE 

Definition at line 44 of file mmaMaterial.h.

◆ TEXTURE_MAP_MODE

Enumerator
PLANE_MAPPING 
CYLINDER_MAPPING 
SPHERE_MAPPING 

Definition at line 51 of file mmaMaterial.h.

Constructor & Destructor Documentation

◆ mmaMaterial()

mmaMaterial::mmaMaterial ( )

◆ ~mmaMaterial()

virtual mmaMaterial::~mmaMaterial ( )
virtual

Member Function Documentation

◆ albaTypeMacro()

mmaMaterial::albaTypeMacro ( mmaMaterial  ,
albaAttribute   
)

◆ MakeIcon()

wxBitmap * mmaMaterial::MakeIcon ( )

Build the material icon.

◆ Print()

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

print a dump of this object

Reimplemented from albaAttribute.

◆ DeepCopy()

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

Copy the contents of another Meter attribute into this one.

Reimplemented from albaAttribute.

◆ Equals()

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

Compare with another Meter attribute.

◆ SetMaterialTexture() [1/2]

void mmaMaterial::SetMaterialTexture ( vtkImageData *  tex)

Set the texture image to map on the surface.

◆ GetMaterialTexture()

vtkImageData * mmaMaterial::GetMaterialTexture ( )

Return the texture set as vtkImageData.

◆ GetMaterialTextureID()

int mmaMaterial::GetMaterialTextureID ( )

Return the vme's id representing the texture.

◆ SetMaterialTexture() [2/2]

void mmaMaterial::SetMaterialTexture ( int  tex_id)

Set the albaVMEImage id to use as texture to map on the surface.

◆ UpdateProp()

virtual void mmaMaterial::UpdateProp ( )
virtual

Apply shading parameters to the vtkProperty.

◆ UpdateFromLut()

void mmaMaterial::UpdateFromLut ( )

This method updates member variables from Lookup Table.

◆ InternalStore()

virtual int mmaMaterial::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 mmaMaterial::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_Prop

vtkProperty* mmaMaterial::m_Prop

Definition at line 88 of file mmaMaterial.h.

◆ m_ColorLut

vtkLookupTable* mmaMaterial::m_ColorLut

Definition at line 89 of file mmaMaterial.h.

◆ m_MaterialName

albaString mmaMaterial::m_MaterialName

Definition at line 91 of file mmaMaterial.h.

◆ m_Icon

wxBitmap* mmaMaterial::m_Icon

Definition at line 92 of file mmaMaterial.h.

◆ m_Value

double mmaMaterial::m_Value

Definition at line 93 of file mmaMaterial.h.

◆ m_Ambient

double mmaMaterial::m_Ambient[3]

Definition at line 94 of file mmaMaterial.h.

◆ m_AmbientIntensity

double mmaMaterial::m_AmbientIntensity

Definition at line 95 of file mmaMaterial.h.

◆ m_Diffuse

double mmaMaterial::m_Diffuse[3]

Definition at line 96 of file mmaMaterial.h.

◆ m_DiffuseIntensity

double mmaMaterial::m_DiffuseIntensity

Definition at line 97 of file mmaMaterial.h.

◆ m_Specular

double mmaMaterial::m_Specular[3]

Definition at line 98 of file mmaMaterial.h.

◆ m_SpecularIntensity

double mmaMaterial::m_SpecularIntensity

Definition at line 99 of file mmaMaterial.h.

◆ m_SpecularPower

double mmaMaterial::m_SpecularPower

Definition at line 100 of file mmaMaterial.h.

◆ m_Opacity

double mmaMaterial::m_Opacity

Definition at line 101 of file mmaMaterial.h.

◆ m_Representation

double mmaMaterial::m_Representation

Definition at line 102 of file mmaMaterial.h.

◆ m_HueRange

double mmaMaterial::m_HueRange[2]

Definition at line 104 of file mmaMaterial.h.

◆ m_SaturationRange

double mmaMaterial::m_SaturationRange[2]

Definition at line 105 of file mmaMaterial.h.

◆ m_TableRange

double mmaMaterial::m_TableRange[2]

Definition at line 106 of file mmaMaterial.h.

◆ m_NumValues

int mmaMaterial::m_NumValues

Definition at line 107 of file mmaMaterial.h.

◆ m_MaterialType

int mmaMaterial::m_MaterialType

Definition at line 108 of file mmaMaterial.h.

◆ m_TextureMappingMode

int mmaMaterial::m_TextureMappingMode

Definition at line 109 of file mmaMaterial.h.

◆ m_TextureImage

vtkImageData* mmaMaterial::m_TextureImage
protected

Definition at line 112 of file mmaMaterial.h.

◆ m_TextureID

int mmaMaterial::m_TextureID
protected

Definition at line 113 of file mmaMaterial.h.


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