IGSTK
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
igstk::MeshObject Class Reference

Implements the 3-dimensional mesh structure. More...

#include <igstkMeshObject.h>

Inheritance diagram for igstk::MeshObject:
Inheritance graph
[legend]
Collaboration diagram for igstk::MeshObject:
Collaboration graph
[legend]

Public Types

typedef itk::MeshSpatialObject
< MeshType
MeshSpatialObjectType
 Type of the internal MeshSpatialObject. More...
 
typedef MeshType::PointType PointType
 Type of the point used to describe the mesh. More...
 
typedef MeshType::CellTraits CellTraits
 
typedef itk::CellInterface
< float, CellTraits
CellInterfaceType
 
typedef itk::TetrahedronCell
< CellInterfaceType
TetraCellType
 
typedef itk::TriangleCell
< CellInterfaceType
TriangleCellType
 
typedef MeshType::CellType CellType
 
typedef CellType::CellAutoPointer CellAutoPointer
 
typedef MeshType::PointsContainer PointsContainer
 Type of containers used to store the points and cells. More...
 
typedef
MeshType::PointsContainerPointer 
PointsContainerPointer
 
typedef MeshType::CellsContainer CellsContainer
 
typedef
MeshType::CellsContainerPointer 
CellsContainerPointer
 
- Public Types inherited from igstk::Object
typedef Object Self
 General Typedefs. More...
 
typedef ::itk::Object Superclass
 
typedef ::itk::SmartPointer< SelfPointer
 
typedef ::itk::SmartPointer
< const Self
ConstPointer
 
typedef igstk::Logger LoggerType
 

Public Member Functions

bool AddPoint (unsigned int id, float x, float y, float z)
 Add a point to the mesh. More...
 
bool AddTetrahedronCell (unsigned int id, unsigned int vertex1, unsigned int vertex2, unsigned int vertex3, unsigned int vertex4)
 Add a tetrahedron cell to the mesh. More...
 
bool AddTriangleCell (unsigned int id, unsigned int vertex1, unsigned int vertex2, unsigned int vertex3)
 Add a triangle cell to the mesh. More...
 
const PointsContainerPointer GetPoints () const
 Return the points. More...
 
const CellsContainerPointer GetCells () const
 Return the cells. More...
 
- Public Member Functions inherited from igstk::SpatialObject
 igstkLoadedObjectEventMacro (BoundingBoxEvent, IGSTKEvent, BoundingBoxType)
 
void RequestGetBounds ()
 
void RequestGetBounds () const
 
- Public Member Functions inherited from igstk::Object
virtual const char * GetNameOfClass () const
 
void SetLogger (LoggerType *logger)
 Connect the Logger for this class. More...
 
void RemoveObserver (unsigned long tag) const
 

Public Attributes

igstkStandardClassTraitsMacro(MeshObject,
SpatialObject) typedef itk
typedef itk::Mesh< float,
3, MeshTrait > 
MeshType
 Macro with standard traits declarations. More...
 
- Public Attributes inherited from igstk::SpatialObject
igstkStandardClassTraitsMacro(SpatialObject,
Object) public typedef
SpatialObjectType::BoundingBoxType 
BoundingBoxType
 Macro with standard traits declarations. More...
 

Protected Member Functions

 MeshObject (void)
 The MeshReaderToMeshSpatialObject class is declared as a friend in order to be able to set the input mesh. More...
 
 ~MeshObject (void)
 Destructor. More...
 
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 Print object information. More...
 
- Protected Member Functions inherited from igstk::SpatialObject
 SpatialObject (void)
 The constructor of this class is declared protected to enforce the use of SmartPointers syntax when instantiating objects of this class. More...
 
 ~SpatialObject (void)
 The destructor should be overriden in derived classes that allocate memory for member variables. More...
 
void RequestSetInternalSpatialObject (SpatialObjectType *object)
 Replacement for RequestSetSpatialObject(). More...
 
SpatialObjectType * GetInternalSpatialObject () const
 Returns the ITK spatial object that is contained inside this IGSTK spatial object. More...
 
- Protected Member Functions inherited from igstk::Object
LoggerTypeGetLogger () const
 
 Object (void)
 Constructor is protected in order to enforce the use of the New() operator. More...
 
virtual ~Object (void)
 
void RegisterObservedObject (const ::igstk::Object *object, unsigned long tag)
 Register observed objects in an internal array so that they can be disconnected upon destruction. More...
 
void RemoveFromObservedObjects ()
 Remove observers that this object may have connected to other objects. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from igstk::Object
static Pointer New (void)
 

Detailed Description

Implements the 3-dimensional mesh structure.

Mesh implements the 3-dimensional mesh structure. It provides an API to perform operations on points, cells, boundaries, etc. Mesh is an adaptive, evolving structure. Typically points and cells are created, with the cells referring to their defining points.

Definition at line 47 of file igstkMeshObject.h.

Member Typedef Documentation

typedef itk::MeshSpatialObject<MeshType> igstk::MeshObject::MeshSpatialObjectType

Type of the internal MeshSpatialObject.

Templated of the itkMesh type

Definition at line 68 of file igstkMeshObject.h.

typedef MeshType::PointType igstk::MeshObject::PointType

Type of the point used to describe the mesh.

Definition at line 71 of file igstkMeshObject.h.

typedef MeshType::CellTraits igstk::MeshObject::CellTraits

Definition at line 72 of file igstkMeshObject.h.

typedef itk::CellInterface< float, CellTraits > igstk::MeshObject::CellInterfaceType

Definition at line 73 of file igstkMeshObject.h.

typedef itk::TetrahedronCell<CellInterfaceType> igstk::MeshObject::TetraCellType

Definition at line 74 of file igstkMeshObject.h.

Definition at line 75 of file igstkMeshObject.h.

typedef MeshType::CellType igstk::MeshObject::CellType

Definition at line 76 of file igstkMeshObject.h.

typedef CellType::CellAutoPointer igstk::MeshObject::CellAutoPointer

Definition at line 77 of file igstkMeshObject.h.

typedef MeshType::PointsContainer igstk::MeshObject::PointsContainer

Type of containers used to store the points and cells.

Definition at line 80 of file igstkMeshObject.h.

typedef MeshType::PointsContainerPointer igstk::MeshObject::PointsContainerPointer

Definition at line 81 of file igstkMeshObject.h.

typedef MeshType::CellsContainer igstk::MeshObject::CellsContainer

Definition at line 82 of file igstkMeshObject.h.

typedef MeshType::CellsContainerPointer igstk::MeshObject::CellsContainerPointer

Definition at line 83 of file igstkMeshObject.h.

Constructor & Destructor Documentation

igstk::MeshObject::MeshObject ( void  )
protected

The MeshReaderToMeshSpatialObject class is declared as a friend in order to be able to set the input mesh.

Constructor

igstk::MeshObject::~MeshObject ( void  )
protected

Destructor.

Member Function Documentation

bool igstk::MeshObject::AddPoint ( unsigned int  id,
float  x,
float  y,
float  z 
)

Add a point to the mesh.

bool igstk::MeshObject::AddTetrahedronCell ( unsigned int  id,
unsigned int  vertex1,
unsigned int  vertex2,
unsigned int  vertex3,
unsigned int  vertex4 
)

Add a tetrahedron cell to the mesh.

bool igstk::MeshObject::AddTriangleCell ( unsigned int  id,
unsigned int  vertex1,
unsigned int  vertex2,
unsigned int  vertex3 
)

Add a triangle cell to the mesh.

const PointsContainerPointer igstk::MeshObject::GetPoints ( ) const

Return the points.

const CellsContainerPointer igstk::MeshObject::GetCells ( ) const

Return the cells.

virtual void igstk::MeshObject::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protectedvirtual

Print object information.

Reimplemented from igstk::SpatialObject.

Member Data Documentation

igstkStandardClassTraitsMacro ( MeshObject, SpatialObject ) typedef itk typedef itk::Mesh<float,3,MeshTrait> igstk::MeshObject::MeshType

Macro with standard traits declarations.

Unlike DefaultStaticMeshTraits, the DefaultDynamicMeshTraits structure is designed to create Mesh instances that will have many insert and delete operations done on them. Type of the itk mesh taking three template parameters: First, the type stored as data for an entity (cell, point, or boundary). Second, the dimensionality of the mesh. and third, the type information structure for the mesh.

Definition at line 54 of file igstkMeshObject.h.


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