|
ALBA
|
#include <mmaMaterial.h>


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) |
| albaAttribute * | MakeCopy () |
| bool | Equals (const albaAttribute *a) const |
| void | SetName (const char *name) |
| const char * | GetName () const |
| albaObject * | NewObjectInstance () const |
| albaAttribute * | NewInstance () 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 albaObject * | NewObjectInstance () const =0 |
| virtual const albaTypeID & | GetTypeId () 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) |
| albaObject * | CastToObject () |
| 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 albaTypeID & | GetStaticTypeId () |
| static albaObject * | SafeDownCast (albaObject *o) |
Static Public Member Functions inherited from albaStorable | |
| static albaStorable * | SafeCastToObject (albaObject *o) |
Definition at line 36 of file mmaMaterial.h.
| Enumerator | |
|---|---|
| USE_VTK_PROPERTY | |
| USE_LOOKUPTABLE | |
| USE_TEXTURE | |
Definition at line 44 of file mmaMaterial.h.
| Enumerator | |
|---|---|
| PLANE_MAPPING | |
| CYLINDER_MAPPING | |
| SPHERE_MAPPING | |
Definition at line 51 of file mmaMaterial.h.
| mmaMaterial::mmaMaterial | ( | ) |
|
virtual |
| mmaMaterial::albaTypeMacro | ( | mmaMaterial | , |
| albaAttribute | |||
| ) |
| wxBitmap * mmaMaterial::MakeIcon | ( | ) |
Build the material icon.
|
virtual |
print a dump of this object
Reimplemented from albaAttribute.
|
virtual |
Copy the contents of another Meter attribute into this one.
Reimplemented from albaAttribute.
|
virtual |
Compare with another Meter attribute.
| void mmaMaterial::SetMaterialTexture | ( | vtkImageData * | tex | ) |
Set the texture image to map on the surface.
| vtkImageData * mmaMaterial::GetMaterialTexture | ( | ) |
Return the texture set as vtkImageData.
| int mmaMaterial::GetMaterialTextureID | ( | ) |
Return the vme's id representing the texture.
| void mmaMaterial::SetMaterialTexture | ( | int | tex_id | ) |
Set the albaVMEImage id to use as texture to map on the surface.
|
virtual |
Apply shading parameters to the vtkProperty.
| void mmaMaterial::UpdateFromLut | ( | ) |
This method updates member variables from Lookup Table.
|
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.
|
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.
| vtkProperty* mmaMaterial::m_Prop |
Definition at line 88 of file mmaMaterial.h.
| vtkLookupTable* mmaMaterial::m_ColorLut |
Definition at line 89 of file mmaMaterial.h.
| albaString mmaMaterial::m_MaterialName |
Definition at line 91 of file mmaMaterial.h.
| wxBitmap* mmaMaterial::m_Icon |
Definition at line 92 of file mmaMaterial.h.
| double mmaMaterial::m_Value |
Definition at line 93 of file mmaMaterial.h.
| double mmaMaterial::m_Ambient[3] |
Definition at line 94 of file mmaMaterial.h.
| double mmaMaterial::m_AmbientIntensity |
Definition at line 95 of file mmaMaterial.h.
| double mmaMaterial::m_Diffuse[3] |
Definition at line 96 of file mmaMaterial.h.
| double mmaMaterial::m_DiffuseIntensity |
Definition at line 97 of file mmaMaterial.h.
| double mmaMaterial::m_Specular[3] |
Definition at line 98 of file mmaMaterial.h.
| double mmaMaterial::m_SpecularIntensity |
Definition at line 99 of file mmaMaterial.h.
| double mmaMaterial::m_SpecularPower |
Definition at line 100 of file mmaMaterial.h.
| double mmaMaterial::m_Opacity |
Definition at line 101 of file mmaMaterial.h.
| double mmaMaterial::m_Representation |
Definition at line 102 of file mmaMaterial.h.
| double mmaMaterial::m_HueRange[2] |
Definition at line 104 of file mmaMaterial.h.
| double mmaMaterial::m_SaturationRange[2] |
Definition at line 105 of file mmaMaterial.h.
| double mmaMaterial::m_TableRange[2] |
Definition at line 106 of file mmaMaterial.h.
| int mmaMaterial::m_NumValues |
Definition at line 107 of file mmaMaterial.h.
| int mmaMaterial::m_MaterialType |
Definition at line 108 of file mmaMaterial.h.
| int mmaMaterial::m_TextureMappingMode |
Definition at line 109 of file mmaMaterial.h.
|
protected |
Definition at line 112 of file mmaMaterial.h.
|
protected |
Definition at line 113 of file mmaMaterial.h.