TDME2 1.9.121
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FacesEntity Class Referencefinal

Node faces entity A node can have multiple entities containing faces and a applied material. More...

#include <tdme/engine/model/FacesEntity.h>

Collaboration diagram for FacesEntity:
Collaboration graph

Public Member Functions

 FacesEntity ()
 Public constructor. More...
 
 FacesEntity (Node *node, const string &id)
 Public constructor. More...
 
const string & getId () const
 
void setMaterial (Material *material)
 Set up the entity's material. More...
 
const MaterialgetMaterial () const
 
const vector< Face > & getFaces () const
 
void setFaces (const vector< Face > &faces)
 Set up entity's faces. More...
 
bool isTextureCoordinatesAvailable () const
 
bool isTangentBitangentAvailable () const
 
float getLOD1Distance () const
 
void setLOD1Distance (float lod1Distance)
 Set LOD1 distance. More...
 
const vector< int32_t > & getLOD1Indices () const
 
void setLOD1Indices (const vector< int32_t > &lod1Indices)
 Set LOD1 indices. More...
 
float getLOD2Distance () const
 
void setLOD2Distance (float lod2Distance)
 Set LOD2 distance. More...
 
const vector< int32_t > & getLOD2Indices () const
 
void setLOD2Indices (const vector< int32_t > &lod2Indices)
 Set LOD2 indices. More...
 
float getLOD3Distance () const
 
void setLOD3Distance (float lod3Distance)
 Set LOD3 distance. More...
 
const vector< int32_t > & getLOD3Indices () const
 
void setLOD3Indices (const vector< int32_t > &lod3Indices)
 Set LOD3 indices. More...
 

Private Member Functions

void determineFeatures ()
 Determine features. More...
 

Private Attributes

string id
 
Nodenode
 
Materialmaterial
 
vector< Facefaces
 
bool textureCoordinatesAvailable
 
bool tangentBitangentAvailable
 
vector< int32_t > lod1Indices
 
vector< int32_t > lod2Indices
 
vector< int32_t > lod3Indices
 
float lod1Distance
 
float lod2Distance
 
float lod3Distance
 

Detailed Description

Node faces entity A node can have multiple entities containing faces and a applied material.

Author
Andreas Drewke
Version
$Id$

Definition at line 27 of file FacesEntity.h.

Constructor & Destructor Documentation

◆ FacesEntity() [1/2]

Public constructor.

Definition at line 23 of file FacesEntity.cpp.

◆ FacesEntity() [2/2]

FacesEntity ( Node node,
const string &  id 
)

Public constructor.

Parameters
nodenode
idid

Definition at line 35 of file FacesEntity.cpp.

Member Function Documentation

◆ determineFeatures()

void determineFeatures ( )
private

Determine features.

Definition at line 58 of file FacesEntity.cpp.

◆ getFaces()

const vector< Face > & getFaces ( ) const
inline
Returns
entity's faces

Definition at line 86 of file FacesEntity.h.

◆ getId()

const string & getId ( ) const
inline
Returns
faces entity id

Definition at line 64 of file FacesEntity.h.

◆ getLOD1Distance()

float getLOD1Distance ( ) const
inline
Returns
LOD1 distance

Definition at line 113 of file FacesEntity.h.

◆ getLOD1Indices()

const vector< int32_t > & getLOD1Indices ( ) const
inline
Returns
LOD1 indices

Definition at line 128 of file FacesEntity.h.

◆ getLOD2Distance()

float getLOD2Distance ( ) const
inline
Returns
LOD2 distance

Definition at line 141 of file FacesEntity.h.

◆ getLOD2Indices()

const vector< int32_t > & getLOD2Indices ( ) const
inline
Returns
LOD2 indices

Definition at line 156 of file FacesEntity.h.

◆ getLOD3Distance()

float getLOD3Distance ( ) const
inline
Returns
LOD3 distance

Definition at line 169 of file FacesEntity.h.

◆ getLOD3Indices()

const vector< int32_t > & getLOD3Indices ( ) const
inline
Returns
LOD3 indices

Definition at line 184 of file FacesEntity.h.

◆ getMaterial()

const Material * getMaterial ( ) const
inline
Returns
entity's material

Definition at line 79 of file FacesEntity.h.

◆ isTangentBitangentAvailable()

bool isTangentBitangentAvailable ( ) const
inline
Returns
if tangents and bitangents are available for the whole entity

Definition at line 106 of file FacesEntity.h.

◆ isTextureCoordinatesAvailable()

bool isTextureCoordinatesAvailable ( ) const
inline
Returns
if texture coordinates are available for the whole entity

Definition at line 99 of file FacesEntity.h.

◆ setFaces()

void setFaces ( const vector< Face > &  faces)

Set up entity's faces.

Parameters
facesfaces

Definition at line 47 of file FacesEntity.cpp.

◆ setLOD1Distance()

void setLOD1Distance ( float  lod1Distance)
inline

Set LOD1 distance.

Parameters
lod1DistanceLOD1 distance

Definition at line 121 of file FacesEntity.h.

◆ setLOD1Indices()

void setLOD1Indices ( const vector< int32_t > &  lod1Indices)

Set LOD1 indices.

Parameters
lod1Indiceslod1 indices

Definition at line 72 of file FacesEntity.cpp.

◆ setLOD2Distance()

void setLOD2Distance ( float  lod2Distance)
inline

Set LOD2 distance.

Parameters
lod2DistanceLOD2 distance

Definition at line 149 of file FacesEntity.h.

◆ setLOD2Indices()

void setLOD2Indices ( const vector< int32_t > &  lod2Indices)

Set LOD2 indices.

Parameters
lod1Indiceslod1 indices

Definition at line 80 of file FacesEntity.cpp.

◆ setLOD3Distance()

void setLOD3Distance ( float  lod3Distance)
inline

Set LOD3 distance.

Parameters
lod3DistanceLOD1 distance

Definition at line 177 of file FacesEntity.h.

◆ setLOD3Indices()

void setLOD3Indices ( const vector< int32_t > &  lod3Indices)

Set LOD3 indices.

Parameters
lod3Indiceslod3 indices

Definition at line 88 of file FacesEntity.cpp.

◆ setMaterial()

void setMaterial ( Material material)
inline

Set up the entity's material.

Parameters
materialmaterial

Definition at line 72 of file FacesEntity.h.

Member Data Documentation

◆ faces

vector<Face> faces
private

Definition at line 33 of file FacesEntity.h.

◆ id

string id
private

Definition at line 30 of file FacesEntity.h.

◆ lod1Distance

float lod1Distance
private

Definition at line 39 of file FacesEntity.h.

◆ lod1Indices

vector<int32_t> lod1Indices
private

Definition at line 36 of file FacesEntity.h.

◆ lod2Distance

float lod2Distance
private

Definition at line 40 of file FacesEntity.h.

◆ lod2Indices

vector<int32_t> lod2Indices
private

Definition at line 37 of file FacesEntity.h.

◆ lod3Distance

float lod3Distance
private

Definition at line 41 of file FacesEntity.h.

◆ lod3Indices

vector<int32_t> lod3Indices
private

Definition at line 38 of file FacesEntity.h.

◆ material

Material* material
private

Definition at line 32 of file FacesEntity.h.

◆ node

Node* node
private

Definition at line 31 of file FacesEntity.h.

◆ tangentBitangentAvailable

bool tangentBitangentAvailable
private

Definition at line 35 of file FacesEntity.h.

◆ textureCoordinatesAvailable

bool textureCoordinatesAvailable
private

Definition at line 34 of file FacesEntity.h.


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