vtkbone
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
vtkboneMaterialTable Class Reference

Material Table finite element mesh. More...

#include <vtkboneMaterialTable.h>

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

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
int GetNumberOfMaterials ()
 
int GetMaximumIndex ()
 
int AppendMaterial (vtkboneMaterial *material)
 
void RemoveMaterial (int index)
 
void RemoveAll ()
 
int GetIndex (const char *name)
 
void InitTraversal ()
 
int GetNextIndex ()
 
int GetNextUniqueIndex ()
 
vtkboneMaterial * GetCurrentMaterial ()
 
int CheckNames ()
 
void AddMaterial (int index, vtkboneMaterial *material)
 
void AddMaterial (int index, vtkboneMaterialArray *material)
 
vtkboneMaterial * GetMaterial (int index)
 
vtkboneMaterial * GetMaterial (const char *name)
 
void GetMaterialOrArray (int index, vtkboneMaterial *&material, int &offset)
 
vtkboneMaterial * GetMaterialOrArray (int index)
 
int GetArrayOffset ()
 
- Public Member Functions inherited from vtkDataObject
vtkDataObject * NewInstance () const
 
vtkMTimeType GetMTime ()
 
virtual void Initialize ()
 
void ReleaseData ()
 
virtual int GetDataObjectType ()
 
vtkMTimeType GetUpdateTime ()
 
virtual unsigned long GetActualMemorySize ()
 
virtual void CopyInformationToPipeline (vtkInformation *vtkNotUsed(info))
 
void DataHasBeenGenerated ()
 
virtual void PrepareForNewData ()
 
virtual int GetExtentType ()
 
virtual void Crop (const int *updateExtent)
 
virtual vtkDataSetAttributes * GetAttributes (int type)
 
virtual vtkFieldData * GetAttributesAsFieldData (int type)
 
virtual int GetAttributeTypeForArray (vtkAbstractArray *arr)
 
virtual vtkIdType GetNumberOfElements (int type)
 
virtual vtkInformation * GetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual int GetDataReleased ()
 
virtual void SetFieldData (vtkFieldData *)
 
virtual vtkFieldData * GetFieldData ()
 
virtual void CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info))
 
virtual void ShallowCopy (vtkDataObject *src)
 
virtual void DeepCopy (vtkDataObject *src)
 
virtual vtkInformation * GetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual int GetDataReleased ()
 
void GlobalReleaseDataFlagOn ()
 
void GlobalReleaseDataFlagOff ()
 
virtual void SetFieldData (vtkFieldData *)
 
virtual vtkFieldData * GetFieldData ()
 
virtual void CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info))
 
virtual void ShallowCopy (vtkDataObject *src)
 
virtual void DeepCopy (vtkDataObject *src)
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommand * GetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommand * GetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkboneMaterialTable * New ()
 
static int IsTypeOf (const char *type)
 
static vtkboneMaterialTable * SafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkDataObject
static vtkDataObject * New ()
 
static int IsTypeOf (const char *type)
 
static vtkDataObject * SafeDownCast (vtkObjectBase *o)
 
static const char * GetAssociationTypeAsString (int associationType)
 
static int GetAssociationTypeFromString (const char *associationType)
 
static vtkInformationStringKey * DATA_TYPE_NAME ()
 
static vtkInformationDataObjectKey * DATA_OBJECT ()
 
static vtkInformationIntegerKey * DATA_EXTENT_TYPE ()
 
static vtkInformationIntegerPointerKey * DATA_EXTENT ()
 
static vtkInformationIntegerVectorKey * ALL_PIECES_EXTENT ()
 
static vtkInformationIntegerKey * DATA_PIECE_NUMBER ()
 
static vtkInformationIntegerKey * DATA_NUMBER_OF_PIECES ()
 
static vtkInformationIntegerKey * DATA_NUMBER_OF_GHOST_LEVELS ()
 
static vtkInformationDoubleKey * DATA_TIME_STEP ()
 
static vtkInformationInformationVectorKey * POINT_DATA_VECTOR ()
 
static vtkInformationInformationVectorKey * CELL_DATA_VECTOR ()
 
static vtkInformationInformationVectorKey * VERTEX_DATA_VECTOR ()
 
static vtkInformationInformationVectorKey * EDGE_DATA_VECTOR ()
 
static vtkInformationIntegerKey * FIELD_ARRAY_TYPE ()
 
static vtkInformationIntegerKey * FIELD_ASSOCIATION ()
 
static vtkInformationIntegerKey * FIELD_ATTRIBUTE_TYPE ()
 
static vtkInformationIntegerKey * FIELD_ACTIVE_ATTRIBUTE ()
 
static vtkInformationIntegerKey * FIELD_NUMBER_OF_COMPONENTS ()
 
static vtkInformationIntegerKey * FIELD_NUMBER_OF_TUPLES ()
 
static vtkInformationIntegerKey * FIELD_OPERATION ()
 
static vtkInformationDoubleVectorKey * FIELD_RANGE ()
 
static vtkInformationIntegerVectorKey * PIECE_EXTENT ()
 
static vtkInformationStringKey * FIELD_NAME ()
 
static vtkInformationDoubleVectorKey * ORIGIN ()
 
static vtkInformationDoubleVectorKey * SPACING ()
 
static vtkInformationDoubleVectorKey * BOUNDING_BOX ()
 
static vtkInformationDataObjectKey * SIL ()
 
static vtkInformation * GetActiveFieldInformation (vtkInformation *info, int fieldAssociation, int attributeType)
 
static vtkInformation * GetNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
 
static void RemoveNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
 
static vtkInformation * SetActiveAttribute (vtkInformation *info, int fieldAssociation, const char *attributeName, int attributeType)
 
static void SetActiveAttributeInfo (vtkInformation *info, int fieldAssociation, int attributeType, const char *name, int arrayType, int numComponents, int numTuples)
 
static void SetPointDataActiveScalarInfo (vtkInformation *info, int arrayType, int numComponents)
 
static vtkDataObject * GetData (vtkInformation *info)
 
static vtkDataObject * GetData (vtkInformationVector *v, int i=0)
 
static void SetGlobalReleaseDataFlag (int val)
 
static int GetGlobalReleaseDataFlag ()
 
static vtkInformation * GetActiveFieldInformation (vtkInformation *info, int fieldAssociation, int attributeType)
 
static vtkInformation * GetNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
 
static void RemoveNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
 
static vtkInformation * SetActiveAttribute (vtkInformation *info, int fieldAssociation, const char *attributeName, int attributeType)
 
static void SetActiveAttributeInfo (vtkInformation *info, int fieldAssociation, int attributeType, const char *name, int arrayType, int numComponents, int numTuples)
 
static void SetPointDataActiveScalarInfo (vtkInformation *info, int arrayType, int numComponents)
 
static vtkDataObject * GetData (vtkInformation *info)
 
static vtkDataObject * GetData (vtkInformationVector *v, int i=0)
 
- Static Public Member Functions inherited from vtkObject
static vtkObject * New ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBase * New ()
 
static vtkObjectBase * New ()
 

Protected Types

typedef std::map< int, vtkboneMaterial *, std::less< int > > material_table_t
 

Protected Member Functions

 vtkboneMaterialTable ()
 
 ~vtkboneMaterialTable ()
 
- Protected Member Functions inherited from vtkDataObject
virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkDataObject ()
 
 ~vtkDataObject ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

material_table_t materials
 
material_table_t::iterator traversal_iterator
 
std::set< vtkboneMaterial * > visited_materials
 
vtkboneMaterial * current_material
 
int array_offset
 
- Protected Attributes inherited from vtkDataObject
vtkFieldData * FieldData
 
int DataReleased
 
vtkTimeStamp UpdateTime
 
vtkInformation * Information
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Types inherited from vtkDataObject
enum  FieldAssociations
 
enum  AttributeTypes
 
enum  FieldOperations
 
enum  FieldAssociations
 
enum  AttributeTypes
 
enum  FieldOperations
 
typedef vtkObject Superclass
 
- Public Attributes inherited from vtkDataObject
 FIELD_ASSOCIATION_POINTS
 
 FIELD_ASSOCIATION_CELLS
 
 FIELD_ASSOCIATION_NONE
 
 FIELD_ASSOCIATION_POINTS_THEN_CELLS
 
 FIELD_ASSOCIATION_VERTICES
 
 FIELD_ASSOCIATION_EDGES
 
 FIELD_ASSOCIATION_ROWS
 
 NUMBER_OF_ASSOCIATIONS
 
 POINT
 
 CELL
 
 FIELD
 
 POINT_THEN_CELL
 
 VERTEX
 
 EDGE
 
 ROW
 
 NUMBER_OF_ATTRIBUTE_TYPES
 
 FIELD_OPERATION_PRESERVED
 
 FIELD_OPERATION_REINTERPOLATED
 
 FIELD_OPERATION_MODIFIED
 
 FIELD_OPERATION_REMOVED
 

Detailed Description

Material Table finite element mesh.

Stores the material table for a vtkboneFiniteElementModel. The material table consists of any number of vtkboneMaterial objects. vtkboneMaterial is an abstract class that has concrete derived classes of various types (e.g. vtkboneLinearIsotropicMaterial and vtkboneOrthotropicMaterial). Each vtkboneMaterial object is stored indexed with an integer value (these will typically be associated with the segmentation values). It is not required to use consecutive index values. Furthermore, materials can be added and removed from the table in any order.

See also
vtkboneMaterial vtkboneLinearIsotropicMaterial vtkboneFiniteElementModel vtkboneGenerateHomogeneousLinearIsotropicMaterialTable vtkboneGenerateHommingaMaterialTable

Definition at line 46 of file vtkboneMaterialTable.h.

Member Typedef Documentation

typedef std::map<int,vtkboneMaterial*,std::less<int> > vtkboneMaterialTable::material_table_t
protected

Definition at line 147 of file vtkboneMaterialTable.h.

Constructor & Destructor Documentation

vtkboneMaterialTable::vtkboneMaterialTable ( )
protected
vtkboneMaterialTable::~vtkboneMaterialTable ( )
protected

Member Function Documentation

static vtkboneMaterialTable* vtkboneMaterialTable::New ( )
static
virtual const char* vtkboneMaterialTable::GetClassName ( )
virtual
static int vtkboneMaterialTable::IsTypeOf ( const char *  type)
static
virtual int vtkboneMaterialTable::IsA ( const char *  type)
virtual

Reimplemented from vtkDataObject.

static vtkboneMaterialTable* vtkboneMaterialTable::SafeDownCast ( vtkObject *  o)
static
void vtkboneMaterialTable::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Reimplemented from vtkDataObject.

int vtkboneMaterialTable::GetNumberOfMaterials ( )

Get the number of materials.

int vtkboneMaterialTable::GetMaximumIndex ( )

Get the maximum index.

void vtkboneMaterialTable::AddMaterial ( int  index,
vtkboneMaterial *  material 
)

Set an entry in the table. If the entry exists already, will replace it.

void vtkboneMaterialTable::AddMaterial ( int  index,
vtkboneMaterialArray *  material 
)
inline

Set an entry in the table. If the entry exists already, will replace it.

Definition at line 66 of file vtkboneMaterialTable.h.

int vtkboneMaterialTable::AppendMaterial ( vtkboneMaterial *  material)

Adds a material to the table. An unique index will be assigned to the material. Returns the assigned index.

void vtkboneMaterialTable::RemoveMaterial ( int  index)

Removes an entry in the table. If the entry does not exist, silently does nothing.

void vtkboneMaterialTable::RemoveAll ( )

Clears the material table.

int vtkboneMaterialTable::GetIndex ( const char *  name)

Get an the index of a material. Returns 0 if no such entry exists.

vtkboneMaterial* vtkboneMaterialTable::GetMaterial ( int  index)

Get an entry. Returns NULL if no such entry exists.

vtkboneMaterial* vtkboneMaterialTable::GetMaterial ( const char *  name)

Get an entry. Returns NULL if no such entry exists.

void vtkboneMaterialTable::GetMaterialOrArray ( int  index,
vtkboneMaterial *&  material,
int &  offset 
)

This returns the material at index if it exists, or else material with the largest index less than specified, together with the difference in indices (the offset). In the case of a non-zero offset, it is your responsibility to check (via a dynamic cast), that the returned material is in fact a material array.

vtkboneMaterial* vtkboneMaterialTable::GetMaterialOrArray ( int  index)

This returns the material at index if it exists, or else material with the largest index less than specified, together with the difference in indices, obtained by an immediately following call to GetArrayOffset. In this case it is your responsibility to check (via a dynamic cast), that the returned material is in fact a material array if offset in non-zero. This version is for use in Python.

int vtkboneMaterialTable::GetArrayOffset ( )

This returns the material at index if it exists, or else material with the largest index less than specified, together with the difference in indices, obtained by an immediately following call to GetArrayOffset. In this case it is your responsibility to check (via a dynamic cast), that the returned material is in fact a material array if offset in non-zero. This version is for use in Python.

void vtkboneMaterialTable::InitTraversal ( )

Initialize the traversal of the table. This means the data pointer is set at the beginning of the list. This method is not thread-safe.

int vtkboneMaterialTable::GetNextIndex ( )

Get the next item in the table. NULL is returned if the table is exhausted. Note that immediately after a call to InitTraversal, this returns the first item in the list. This method is not thread-safe.

int vtkboneMaterialTable::GetNextUniqueIndex ( )

Get the next item in the table, that has not already been returned. NULL is returned if the table is exhausted. Note that immediately after a call to InitTraversal, this returns the first item in the list. Note that you cannot mix calls to GetNextIndex with calls to GetNextUniqueIndex: the results are undetermined. This method is not thread-safe.

vtkboneMaterial* vtkboneMaterialTable::GetCurrentMaterial ( )

Get the current material in the traversal. This method is only valid after a call to GetNextIndex()!

int vtkboneMaterialTable::CheckNames ( )

Verifies that all the materials have unique names. Returns 1 if all materials have unique names, 0 otherwise. Also returns 0 if any material does not have a name.

Member Data Documentation

material_table_t vtkboneMaterialTable::materials
protected

Definition at line 148 of file vtkboneMaterialTable.h.

material_table_t::iterator vtkboneMaterialTable::traversal_iterator
protected

Definition at line 149 of file vtkboneMaterialTable.h.

std::set<vtkboneMaterial*> vtkboneMaterialTable::visited_materials
protected

Definition at line 150 of file vtkboneMaterialTable.h.

vtkboneMaterial* vtkboneMaterialTable::current_material
protected

Definition at line 151 of file vtkboneMaterialTable.h.

int vtkboneMaterialTable::array_offset
protected

Definition at line 154 of file vtkboneMaterialTable.h.


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