#include <mitkMesh.h>
Inherits mitkDataObject.
Inherited by mitkHEMesh, and mitkTriangleMesh.
Inheritance diagram for mitkMesh:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
virtual void | Initialize () |
virtual void | ShallowCopy (mitkDataObject *src) |
virtual void | DeepCopy (mitkDataObject *src) |
bool | CopyMesh (mitkMesh *src) |
virtual int | GetDataObjectType () const |
virtual void | SetVertexNumber (size_type number)=0 |
virtual size_type | GetVertexNumber () const =0 |
virtual void | SetFaceNumber (size_type number)=0 |
virtual size_type | GetFaceNumber () const =0 |
virtual float * | GetVertexData ()=0 |
virtual index_type * | GetFaceData ()=0 |
float const * | GetBoundingBox () |
void | GetBoundingBox (float &minX, float &maxX, float &minY, float &maxY, float &minZ, float &maxZ) |
void | GetBoundingBox (float bounds[6]) |
void | SetBoundingBox (float minX, float maxX, float minY, float maxY, float minZ, float maxZ) |
void | SetBoundingBox (float bounds[6]) |
bool | IsNormalReversed () const |
bool | IsClockwise () const |
void | SetClockwise (bool isClockwise=true) |
virtual bool | TestClockwise ()=0 |
virtual void | ReverseNormals () |
index_type | AddVertex (Vertex3f &vert) |
template<typename IndexType, unsigned int indexNum> | |
index_type | AddFace (_face_type< IndexType, indexNum > &face) |
index_type | AddFace (TriangleFace &face) |
bool | GetVertex (index_type vertIdx, Vertex3f &vert) |
size_type | GetVertices (index_type startIdx, size_type num, Vertex3f *verts) |
template<typename IndexType, unsigned int indexNum> | |
bool | GetFace (index_type faceIdx, _face_type< IndexType, indexNum > &face) |
bool | GetFace (index_type faceIdx, TriangleFace &face) |
size_type | GetTriangleFaces (index_type startIdx, size_type num, TriangleFace *faces) |
size_type | GetTriangleFaces (index_type startIdx, size_type num, Vertex3f *verts) |
bool | SetVertex (index_type vertIdx, Vertex3f const &vert) |
template<typename IndexType, unsigned int indexNum> | |
bool | SetFace (index_type faceIdx, _face_type< IndexType, indexNum > &face) |
bool | SetFace (index_type faceIdx, TriangleFace &face) |
mitkMesh is an abstract class for mesh types which are used to represent 3D objects with their surfaces.
|
An explicit instantiation of AddFace(). Reimplemented in mitkTriangleMesh. |
|
A general interface for adding a face.
Reimplemented in mitkTriangleMesh. |
|
A general interface for adding a vertex.
|
|
Copy the contents from another mesh. It is used to transfer between different concrete mesh type, i.e. in-core mesh <=> out-of-core mesh.
|
|
Deep copy.
Implements mitkDataObject. Reimplemented in mitkHEICTriangleMesh, mitkHEMesh, mitkHEOoCTriangleMesh, mitkICTriangleMesh, mitkOoCTriangleMesh, and mitkTriangleMesh. |
|
Get the bounds for this mesh data as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Get the bounds for this mesh data as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Get the bounds for this mesh data as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Return what type of data object this is.
Reimplemented from mitkDataObject. Reimplemented in mitkHEICTriangleMesh, mitkHEMesh, mitkHEOoCTriangleMesh, mitkICTriangleMesh, mitkOoCTriangleMesh, and mitkTriangleMesh. |
|
An explicit instantiation of GetFace(). |
|
A general interface for getting a face.
|
|
Get data pointer of this face data.
Implemented in mitkHEICTriangleMesh, mitkHEOoCTriangleMesh, mitkICTriangleMesh, and mitkOoCTriangleMesh. |
|
Get the mesh's face number.
Implemented in mitkHEMesh, and mitkTriangleMesh. |
|
A general interface for getting all the vertices of a set of triangle faces.
|
|
A general interface for getting a set of triangle faces.
|
|
A general interface for getting a vertex.
|
|
Get data pointer of this vertex data.
Implemented in mitkHEICTriangleMesh, mitkHEOoCTriangleMesh, mitkICTriangleMesh, and mitkOoCTriangleMesh. |
|
Get the mesh's vertex number.
Implemented in mitkHEMesh, and mitkTriangleMesh. |
|
A general interface for getting a set of vertices.
|
|
Delete the allocated memory (if any) and initialize to default status.
Implements mitkDataObject. Reimplemented in mitkHEICTriangleMesh, mitkHEMesh, mitkHEOoCTriangleMesh, mitkHETriangleMesh, mitkICTriangleMesh, mitkOoCTriangleMesh, and mitkTriangleMesh. |
|
Get the orientation of front-facing polygons.
|
|
Indicate if the normals are reversed.
|
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkDataObject. Reimplemented in mitkHEICTriangleMesh, mitkHEMesh, mitkHEOoCTriangleMesh, mitkHETriangleMesh, mitkICTriangleMesh, mitkOoCTriangleMesh, and mitkTriangleMesh. |
|
Reverse normals. Reimplemented in mitkICTriangleMesh, and mitkOoCTriangleMesh. |
|
Set the bounds for this mesh data as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Set the bounds for this mesh data as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Set the orientation of front-facing polygons to isClockwise.
|
|
An explicit instantiation of SetFace(). |
|
A general interface for setting a face.
|
|
Set the mesh's faces' number and allocate memory.
Implemented in mitkHEICTriangleMesh, mitkHEOoCTriangleMesh, mitkICTriangleMesh, and mitkOoCTriangleMesh. |
|
A general interface for setting a vertex.
|
|
Set the mesh's vertices' number and allocate memory.
Implemented in mitkHEICTriangleMesh, mitkHEOoCTriangleMesh, mitkICTriangleMesh, and mitkOoCTriangleMesh. |
|
Shallowcopy.
Implements mitkDataObject. Reimplemented in mitkHEICTriangleMesh, mitkHEMesh, mitkHEOoCTriangleMesh, mitkICTriangleMesh, mitkOoCTriangleMesh, and mitkTriangleMesh. |
|
Test the orientation of front-facing polygons.
Implemented in mitkHEMesh, mitkICTriangleMesh, and mitkOoCTriangleMesh. |