Public Member Functions | Public Attributes
TomGine::tgModel Class Reference

Class tgModel. More...

#include <tgModel.h>

Inheritance diagram for TomGine::tgModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void add (tgVertex v)
void add (tgFace f)
virtual void Clear ()
 clears data of model (m_vertices and m_faces)
virtual void ComputeBoundingSphere ()
 computes bounding sphere which contains all vertices
virtual void ComputeFaceNormals ()
 computes normals of vertices of m_faces, m_polygons, m_quadstrips
virtual void ComputeNormals ()
 Compute normals of vertices using cross product of faces.
virtual void DrawFaces () const
 draws triangles and quadrangles given by m_faces
virtual void DrawLines (const vec3 &color=vec3(1, 0, 0)) const
 draws lines given by m_lines
virtual void DrawNormals (float normal_length) const
 draws normals of vertices in m_faces
virtual void DrawPoints (const vec3 &color=vec3(1, 0, 0)) const
 draws points given by m_points
tgFace getFace (unsigned int i)
unsigned getFaceSize ()
tgVertex getVertex (unsigned int i)
unsigned getVertexSize ()
virtual void Print () const
 Prints infos of model to console.

Public Attributes

BoundingSphere m_bs
 bounding sphere
std::vector< tgFacem_faces
 list of faces
std::vector< tgLinem_lines
 list of lines
std::vector< vec3m_points
 list of points
std::vector< tgVertexm_vertices
 list of vertices

Detailed Description

Class tgModel.

Definition at line 48 of file tgModel.h.


Member Function Documentation

void TomGine::tgModel::add ( tgVertex  v) [inline]

Definition at line 57 of file tgModel.h.

void TomGine::tgModel::add ( tgFace  f) [inline]

Definition at line 58 of file tgModel.h.

void tgModel::Clear ( ) [virtual]

clears data of model (m_vertices and m_faces)

Definition at line 180 of file tgModel.cpp.

void tgModel::ComputeBoundingSphere ( ) [virtual]

computes bounding sphere which contains all vertices

Definition at line 132 of file tgModel.cpp.

void tgModel::ComputeFaceNormals ( ) [virtual]

computes normals of vertices of m_faces, m_polygons, m_quadstrips

Definition at line 110 of file tgModel.cpp.

void tgModel::ComputeNormals ( ) [virtual]

Compute normals of vertices using cross product of faces.

Definition at line 84 of file tgModel.cpp.

void tgModel::DrawFaces ( ) const [virtual]

draws triangles and quadrangles given by m_faces

Definition at line 8 of file tgModel.cpp.

void tgModel::DrawLines ( const vec3 color = vec3(1,0,0)) const [virtual]

draws lines given by m_lines

Definition at line 35 of file tgModel.cpp.

void tgModel::DrawNormals ( float  normal_length) const [virtual]

draws normals of vertices in m_faces

Definition at line 63 of file tgModel.cpp.

void tgModel::DrawPoints ( const vec3 color = vec3(1,0,0)) const [virtual]

draws points given by m_points

Definition at line 50 of file tgModel.cpp.

tgFace TomGine::tgModel::getFace ( unsigned int  i) [inline]

Definition at line 60 of file tgModel.h.

unsigned TomGine::tgModel::getFaceSize ( ) [inline]

Definition at line 62 of file tgModel.h.

tgVertex TomGine::tgModel::getVertex ( unsigned int  i) [inline]

Definition at line 59 of file tgModel.h.

unsigned TomGine::tgModel::getVertexSize ( ) [inline]

Definition at line 61 of file tgModel.h.

void tgModel::Print ( ) const [virtual]

Prints infos of model to console.

Reimplemented in Tracking::TrackerModel.

Definition at line 190 of file tgModel.cpp.


Member Data Documentation

bounding sphere

Definition at line 54 of file tgModel.h.

list of faces

Definition at line 51 of file tgModel.h.

list of lines

Definition at line 52 of file tgModel.h.

list of points

Definition at line 53 of file tgModel.h.

list of vertices

Definition at line 50 of file tgModel.h.


The documentation for this class was generated from the following files:


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:27