IGSTK
Public Types | Public Member Functions | Public Attributes | Protected Member Functions
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]

List of all members.

Public Types

typedef itk::MeshSpatialObject
< MeshType
MeshSpatialObjectType
 Type of the internal MeshSpatialObject.
typedef MeshType::PointType PointType
 Type of the point used to describe the mesh.
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.
typedef
MeshType::PointsContainerPointer 
PointsContainerPointer
typedef MeshType::CellsContainer CellsContainer
typedef
MeshType::CellsContainerPointer 
CellsContainerPointer

Public Member Functions

bool AddPoint (unsigned int id, float x, float y, float z)
 Add a point to the mesh.
bool AddTetrahedronCell (unsigned int id, unsigned int vertex1, unsigned int vertex2, unsigned int vertex3, unsigned int vertex4)
 Add a tetrahedron cell to the mesh.
bool AddTriangleCell (unsigned int id, unsigned int vertex1, unsigned int vertex2, unsigned int vertex3)
 Add a triangle cell to the mesh.
const PointsContainerPointer GetPoints () const
 Return the points.
const CellsContainerPointer GetCells () const
 Return the cells.

Public Attributes

igstkStandardClassTraitsMacro(MeshObject,
SpatialObject) typedef itk
typedef itk::Mesh< float,
3, MeshTrait > 
MeshType
 Macro with standard traits declarations.

Protected Member Functions

 MeshObject (void)
 The MeshReaderToMeshSpatialObject class is declared as a friend in order to be able to set the input mesh.
 ~MeshObject (void)
 Destructor.
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 Print object information.

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 [protected, virtual]

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: