#include <ModelData.h>

Public Types

typedef std::unordered_map< std::string, GeometryDataPtrGroupMap
 

Public Member Functions

 ModelData ()
 Constructor. More...
 
 ModelData (const std::string &fileName, bool flipT=false, bool flipZ=false)
 Constructor. More...
 
 ModelData (bool flipT=false, bool flipZ=false)
 Constructor. More...
 
virtual ~ModelData ()
 Virtual destructor. More...
 
virtual ModelDataload (const std::string &fileName)
 Loads the model from a file. More...
 
virtual GroupMap getData () const
 Returns the geometry groups. More...
 
bool getFlipT ()
 Returns true if the T axis of texture is flipped. More...
 
bool getFlipZ ()
 Returns true if the Z axis of the geometry is flipped. More...
 

Member Typedef Documentation

typedef std::unordered_map< std::string, GeometryDataPtr > ModelData::GroupMap

Constructor & Destructor Documentation

ModelData::ModelData ( )
inline

Constructor.

ModelData::ModelData ( const std::string &  fileName,
bool  flipT = false,
bool  flipZ = false 
)

Constructor.

Parameters
[in]fileNameThe name of the OBJ file
[in]flipTFlip T axis of texture
[in]flipZFlip Z axis of the geometry
ModelData::ModelData ( bool  flipT = false,
bool  flipZ = false 
)

Constructor.

Parameters
[in]flipTFlip T axis of texture
[in]flipZFlip Z axis of the geometry
ModelData::~ModelData ( )
virtual

Virtual destructor.

Member Function Documentation

ModelData::GroupMap ModelData::getData ( ) const
virtual

Returns the geometry groups.

bool ModelData::getFlipT ( )
inline

Returns true if the T axis of texture is flipped.

bool ModelData::getFlipZ ( )
inline

Returns true if the Z axis of the geometry is flipped.

ModelData & ModelData::load ( const std::string &  fileName)
virtual

Loads the model from a file.

Parameters
[in]fileNameThe name of the OBJ file