IGSTK
|
Implements the 3-dimensional mesh structure. More...
#include <igstkMeshObject.h>
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. | |
![]() | |
igstkLoadedObjectEventMacro (BoundingBoxEvent, IGSTKEvent, BoundingBoxType) | |
void | RequestGetBounds () |
void | RequestGetBounds () const |
![]() | |
virtual const char * | GetNameOfClass () const |
void | SetLogger (LoggerType *logger) |
Connect the Logger for this class. | |
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. | |
![]() | |
igstkStandardClassTraitsMacro(SpatialObject, Object) public typedef SpatialObjectType::BoundingBoxType | BoundingBoxType |
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. | |
![]() | |
SpatialObject (void) | |
The constructor of this class is declared protected to enforce the use of SmartPointers syntax when instantiating objects of this class. | |
~SpatialObject (void) | |
The destructor should be overriden in derived classes that allocate memory for member variables. | |
void | RequestSetInternalSpatialObject (SpatialObjectType *object) |
Replacement for RequestSetSpatialObject(). | |
SpatialObjectType * | GetInternalSpatialObject () const |
Returns the ITK spatial object that is contained inside this IGSTK spatial object. | |
![]() | |
LoggerType * | GetLogger () const |
Object (void) | |
Constructor is protected in order to enforce the use of the New() operator. | |
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. | |
void | RemoveFromObservedObjects () |
Remove observers that this object may have connected to other objects. |
Additional Inherited Members | |
![]() | |
static Pointer | New (void) |
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.
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.
typedef itk::TriangleCell<CellInterfaceType> igstk::MeshObject::TriangleCellType |
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.
|
protected |
The MeshReaderToMeshSpatialObject class is declared as a friend in order to be able to set the input mesh.
Constructor
|
protected |
Destructor.
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.
|
protectedvirtual |
Print object information.
Reimplemented from igstk::SpatialObject.
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.