Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkHEICTriangleMesh Class Reference

mitkHEICTriangleMesh - a concrete class for in-core triangle meshes represented by Half Edges More...

#include <mitkHEICTriangleMesh.h>

Inherits mitkHETriangleMesh.

Inheritance diagram for mitkHEICTriangleMesh:

Inheritance graph
[legend]
Collaboration diagram for mitkHEICTriangleMesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
 mitkHEICTriangleMesh ()
virtual int GetDataObjectType () const
virtual void Initialize ()
virtual unsigned long long GetActualMemorySize () const
virtual void ShallowCopy (mitkDataObject *src)
virtual void DeepCopy (mitkDataObject *src)
virtual void SetVertexNumber (size_type number)
virtual void SetFaceNumber (size_type number)
virtual Vertex & GetVertex (VertexHandle v) const
virtual Edge & GetEdge (EdgeHandle e) const
virtual Edge & GetEdge (HalfEdgeHandle he) const
virtual HalfEdge & GetHalfEdge (HalfEdgeHandle he) const
virtual Face & GetFace (FaceHandle f) const
virtual VertexHandle GetHandle (Vertex const &vert) const
virtual EdgeHandle GetHandle (Edge const &edge) const
virtual HalfEdgeHandle GetHandle (HalfEdge const &he) const
virtual FaceHandle GetHandle (Face const &face) const
virtual float * GetVertexData ()
virtual index_type * GetFaceData ()
void ClearTempVertArray ()
void ClearTempFaceArray ()

Detailed Description

mitkHEICTriangleMesh - a concrete class for in-core triangle meshes represented by Half Edges

mitkHEICTriangleMesh is a concrete class for in-core triangle meshes represented by Half Edges. It supports in-core data sets which can be loaded into the main memory entirely.

See also:
mitkHEMesh and mitkHETriangleMesh for access interfaces

mitkHEOoCTriangleMesh for out-of-core data set


Constructor & Destructor Documentation

mitkHEICTriangleMesh::mitkHEICTriangleMesh  ) 
 

Default constructor.


Member Function Documentation

void mitkHEICTriangleMesh::ClearTempFaceArray  ) 
 

Clear the temporary memory allocated in the function GetFaceData().

Warning:
Do not call this function until you no longer use the face data gotten from GetFaceData();

void mitkHEICTriangleMesh::ClearTempVertArray  ) 
 

Clear the temporary memory allocated in the function GetVertexData().

Warning:
Do not call this function until you no longer use the vertex data gotten from GetVertexData();

virtual void mitkHEICTriangleMesh::DeepCopy mitkDataObject src  )  [virtual]
 

Deep copy.

Parameters:
src pointer to the source mitkDataObject

Reimplemented from mitkHEMesh.

virtual unsigned long long mitkHEICTriangleMesh::GetActualMemorySize  )  const [virtual]
 

Get the actual size of the data in bytes.

Returns:
Return the actual size of the data in bytes.

Implements mitkDataObject.

virtual int mitkHEICTriangleMesh::GetDataObjectType  )  const [inline, virtual]
 

Return what type of data object this is.

Returns:
Return the type of this data object.

Reimplemented from mitkHEMesh.

virtual Edge& mitkHEICTriangleMesh::GetEdge HalfEdgeHandle  he  )  const [inline, virtual]
 

Get edge by half edge handle.

Parameters:
he one half edge handle of the required edge
Returns:
Return the reference to the required edge.
Note:
An edge is composed by two opposite half edges.

virtual Edge& mitkHEICTriangleMesh::GetEdge EdgeHandle  e  )  const [inline, virtual]
 

Get edge by handle.

Parameters:
e the handle of the required edge
Returns:
Return the reference to the required edge.

virtual Face& mitkHEICTriangleMesh::GetFace FaceHandle  f  )  const [inline, virtual]
 

Get face by handle.

Parameters:
f the handle of the required face
Returns:
Return the reference to the required face.

virtual index_type* mitkHEICTriangleMesh::GetFaceData  )  [virtual]
 

Get data pointer of this face data. This is for compatibility with mitkTriangleMesh which is used more frequently.

Returns:
Return a unsigned int pointer to the face data (indices to vertices).
Warning:
  • This function is obsolete. It is provided to keep old codes working. We strongly advise against using it in new codes;
  • DO NOT delete the pointer you got from this function. If you must release the memory, call ClearTempVertArray() to do this.

Implements mitkMesh.

virtual HalfEdge& mitkHEICTriangleMesh::GetHalfEdge HalfEdgeHandle  he  )  const [inline, virtual]
 

Get half edge by handle.

Parameters:
he the handle of the required half edge
Returns:
Return the reference to the required half edge.

virtual FaceHandle mitkHEICTriangleMesh::GetHandle Face const &  face  )  const [inline, virtual]
 

Get the handle of a face.

Parameters:
face the reference to the face
Returns:
Return the handle of the face.

virtual HalfEdgeHandle mitkHEICTriangleMesh::GetHandle HalfEdge const &  he  )  const [inline, virtual]
 

Get the handle of a half edge.

Parameters:
he the reference to the half edge
Returns:
Return the handle of the half edge.

virtual EdgeHandle mitkHEICTriangleMesh::GetHandle Edge const &  edge  )  const [inline, virtual]
 

Get the handle of an edge.

Parameters:
edge the reference to the edge
Returns:
Return the handle of the edge.

virtual VertexHandle mitkHEICTriangleMesh::GetHandle Vertex const &  vert  )  const [inline, virtual]
 

Get the handle of a vertex.

Parameters:
vert the reference to the vertex
Returns:
Return the handle of the vertex.

virtual Vertex& mitkHEICTriangleMesh::GetVertex VertexHandle  v  )  const [inline, virtual]
 

Get vertex by handle.

Parameters:
v the handle of the required vertex
Returns:
Return the reference to the required vertex.

virtual float* mitkHEICTriangleMesh::GetVertexData  )  [virtual]
 

Get data pointer of this vertex data. This is for compatibility with mitkTriangleMesh which is used more frequently.

Returns:
Return a float pointer to the vertex data.
Warning:
This function is obsolete. It is provided to keep old codes working. We strongly advise against using it in new codes.

Implements mitkMesh.

virtual void mitkHEICTriangleMesh::Initialize  )  [virtual]
 

Make the output data ready for new data to be inserted.

Reimplemented from mitkHETriangleMesh.

virtual void mitkHEICTriangleMesh::PrintSelf ostream &  os  )  [virtual]
 

Print the necessary information about this object for the debugging purpose.

Parameters:
os The specified ostream to output information.

Reimplemented from mitkHETriangleMesh.

virtual void mitkHEICTriangleMesh::SetFaceNumber size_type  number  )  [virtual]
 

Set the faces' number and allocate memory.

Parameters:
number the number of faces
Warning:
This function is obsolete. It is provided to keep old codes working. We strongly advise against using it in new codes.

Implements mitkMesh.

virtual void mitkHEICTriangleMesh::SetVertexNumber size_type  number  )  [virtual]
 

Set the vertices' number and allocate memory.

Parameters:
number the number of vertices
Note:
This function is obsolete. It is provided to keep old codes working. We strongly advise against using it in new codes.

Implements mitkMesh.

virtual void mitkHEICTriangleMesh::ShallowCopy mitkDataObject src  )  [virtual]
 

Shallowcopy.

Parameters:
src pointer to the source mitkDataObject

Reimplemented from mitkHEMesh.


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:02:59 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3