Colobot
Public Member Functions | List of all members
Gfx::CModelMesh Class Reference

Mesh data saved in model file. More...

#include <model_mesh.h>

Public Member Functions

void AddTriangle (const ModelTriangle &triangle)
 Adds a new triangle. More...
 
void SetTriangles (std::vector< ModelTriangle > &&triangles)
 Sets the list of triangles. More...
 
const std::vector< ModelTriangle > & GetTriangles () const
 Returns the list of triangles. More...
 
int GetTriangleCount () const
 Returns number of triangles. More...
 
const Math::VectorGetPosition () const
 Returns the mesh position. More...
 
void SetPosition (const Math::Vector &position)
 Sets the mesh rotation. More...
 
const Math::VectorGetRotation () const
 Returns the mesh rotation. More...
 
void SetRotation (const Math::Vector &rotation)
 Sets the mesh rotation. More...
 
const Math::VectorGetScale () const
 Returns the mesh scale. More...
 
void SetScale (const Math::Vector &scale)
 Sets the mesh scale. More...
 
const std::string & GetParent () const
 Returns the name of parent mesh. More...
 
void SetParent (const std::string &parent)
 Sets the name of parent mesh. More...
 

Detailed Description

Mesh data saved in model file.

Member Function Documentation

void Gfx::CModelMesh::AddTriangle ( const ModelTriangle triangle)

Adds a new triangle.

void Gfx::CModelMesh::SetTriangles ( std::vector< ModelTriangle > &&  triangles)

Sets the list of triangles.

const std::vector< ModelTriangle > & Gfx::CModelMesh::GetTriangles ( ) const

Returns the list of triangles.

int Gfx::CModelMesh::GetTriangleCount ( ) const

Returns number of triangles.

const Math::Vector & Gfx::CModelMesh::GetPosition ( ) const

Returns the mesh position.

void Gfx::CModelMesh::SetPosition ( const Math::Vector position)

Sets the mesh rotation.

const Math::Vector & Gfx::CModelMesh::GetRotation ( ) const

Returns the mesh rotation.

void Gfx::CModelMesh::SetRotation ( const Math::Vector rotation)

Sets the mesh rotation.

const Math::Vector & Gfx::CModelMesh::GetScale ( ) const

Returns the mesh scale.

void Gfx::CModelMesh::SetScale ( const Math::Vector scale)

Sets the mesh scale.

const std::string & Gfx::CModelMesh::GetParent ( ) const

Returns the name of parent mesh.

void Gfx::CModelMesh::SetParent ( const std::string &  parent)

Sets the name of parent mesh.


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