Public Types | |
typedef CoreModel::Textures2D | Textures2D |
typedef std::vector< osg::ref_ptr< osg::Drawable > > | Drawables |
typedef std::map< int, Drawables > | CoreMeshId2Drawables |
Public Member Functions | |
META_Object (osgCal, Model) | |
Model () | |
Model (const Model &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
bool | create (void) |
Create model from a templated CoreModel. Remember to set CoreModel with setCoreModel function. | |
void | update (void) |
CoreModel * | getCoreModel () |
Retrieves CoreModel. | |
bool | setCoreModel (CoreModel *coreModel) |
Sets CoreModel. | |
CalCoreModel * | getCalCoreModel (void) |
Retrieves the Cal3d CalCoreModel. | |
CalModel * | getCalModel (void) |
Retrieves the Cal3d CalModel associated with the current osgCalModel instance. | |
Textures2D * | getTextures2D (const std::string &materialName) |
Retrieves the 2D textures given a material name. | |
Textures2D * | getTextures2D (int coreMaterialId) |
Retrieves the 2D textures given a material id. | |
Drawables * | getDrawables (const std::string &materialName) |
Retrieves the drawables given a material name. | |
Drawables * | getDrawables (int coreMaterialId) |
Retrieves the drawables given a material id. | |
bool | hasDrawables (int coreMeshId) |
bool | setPrivateTextures (const std::vector< std::string > &privateTextures) |
bool | setActiveMesh (const std::string &meshName) |
Acivates meshes. | |
bool | setActiveMeshes (const std::vector< int > &activeMeshes) |
const std::vector< int > & | getActiveMeshes (void) const |
bool | bindMaterials (const std::string &meshName, const std::vector< std::string > &materials) |
bool | setInvisibleMesh (const std::string &meshName) |
bool | setInvisibleMeshes (const std::vector< int > &invisibleMeshes) |
const std::vector< int > & | getInvisibleMeshes (void) const |
bool | setCollisionMesh (const std::string &meshName) |
bool | setCollisionMeshNames (const std::vector< std::string > &meshNames) |
const std::vector< std::string > & | getCollisionMeshNames (void) const |
bool | setCollisionMeshes (const std::vector< int > &collisionMeshes) |
const std::vector< int > & | getCollisionMeshes (void) const |
bool | setUseVertexProgram (bool useVertexProgram) |
bool | getUseVertexProgram (void) |
bool | setUseColorOrTexture (bool useColorOrTexture) |
bool | getUseColorOrTexture (void) |
Protected Member Functions | |
virtual | ~Model () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Create model from a templated CoreModel. Remember to set CoreModel with setCoreModel function.
|
|
|
|
Retrieves the Cal3d CalCoreModel.
|
|
Retrieves the Cal3d CalModel associated with the current osgCalModel instance.
|
|
|
|
|
|
Retrieves CoreModel.
|
|
Retrieves the drawables given a material id.
|
|
Retrieves the drawables given a material name.
|
|
|
|
Retrieves the 2D textures given a material id.
|
|
Retrieves the 2D textures given a material name.
|
|
|
|
|
|
|
|
|
|
Acivates meshes.
|
|
|
|
|
|
|
|
|
|
Sets CoreModel.
|
|
|
|
|
|
Set private textures of current model.
|
|
|
|
|
|
|