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

mitkTriangleMesh Class Reference

mitkTriangleMesh - an abstract class for triangle meshes More...

#include <mitkTriangleMesh.h>

Inherits mitkMesh.

Inherited by mitkICTriangleMesh, and mitkOoCTriangleMesh.

Inheritance diagram for mitkTriangleMesh:

Inheritance graph
[legend]
Collaboration diagram for mitkTriangleMesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
 mitkTriangleMesh ()
bool CreateFrom (mitkHETriangleMesh *mesh)
virtual int GetDataObjectType () const
virtual void Initialize ()
virtual void ShallowCopy (mitkDataObject *src)
virtual void DeepCopy (mitkDataObject *src)
virtual size_type GetVertexNumber () const
virtual size_type GetFaceNumber () const
index_type AddFace (TriangleFace &face)

Detailed Description

mitkTriangleMesh - an abstract class for triangle meshes

mitkTriangleMesh is an abstract class for triangle meshes.

See also:
mitkICTriangleMesh and mitkOoCTriangleMesh


Constructor & Destructor Documentation

mitkTriangleMesh::mitkTriangleMesh  ) 
 

Default constructor of this class.


Member Function Documentation

index_type mitkTriangleMesh::AddFace TriangleFace &  face  )  [inline]
 

Add a triangle face.

Parameters:
face the face to add
Returns:
Return the index of the face added.
Note:
The struct TriangleFace is equal to follows:
        struct TriangleFace
        {
            enum { vertNum = 3 };
            index_type verts[vertNum];
        };
Warning:
Each index in the ``verts'' array of the face must be valid, i.e. represents a existent vertex in the mesh (has been added before).
See also:
mitkGeometryTypes.h

Reimplemented from mitkMesh.

bool mitkTriangleMesh::CreateFrom mitkHETriangleMesh mesh  ) 
 

Create mitkTriangleMesh object from a mitkHETriangleMesh object which is based on half edge structure.

Parameters:
mesh the pointer to a mitkHETriangleMesh object this mitkTriangleMesh object is created from
Returns:
Return true if this operation succeed, otherwise return false.

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

Deep copy.

Parameters:
src pointer to the source mitkDataObject

Reimplemented from mitkMesh.

Reimplemented in mitkICTriangleMesh, and mitkOoCTriangleMesh.

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

Return what type of data object this is.

Returns:
Return the type of this data object.

Reimplemented from mitkMesh.

Reimplemented in mitkICTriangleMesh, and mitkOoCTriangleMesh.

virtual size_type mitkTriangleMesh::GetFaceNumber  )  const [inline, virtual]
 

Get the mesh's face number.

Returns:
Return the number of faces.

Implements mitkMesh.

virtual size_type mitkTriangleMesh::GetVertexNumber  )  const [inline, virtual]
 

Get the mesh's vertex number.

Returns:
Return the number of vertices.

Implements mitkMesh.

virtual void mitkTriangleMesh::Initialize  )  [virtual]
 

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

Reimplemented from mitkMesh.

Reimplemented in mitkICTriangleMesh, and mitkOoCTriangleMesh.

virtual void mitkTriangleMesh::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 mitkMesh.

Reimplemented in mitkICTriangleMesh, and mitkOoCTriangleMesh.

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

Shallowcopy.

Parameters:
src pointer to the source mitkDataObject

Reimplemented from mitkMesh.

Reimplemented in mitkICTriangleMesh, and mitkOoCTriangleMesh.


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