VisioMove SDK (iOS)
2.1.22
|
Public Member Functions | |
VgModelManager () | |
~VgModelManager () | |
VgEngine::VgRefPtr< Vg3DModule::VgIGeometry > | createModel (VgEngine::VgConstRefPtr< VgEngine::VgBinaryBuffer >const &pBuffer) |
VgEngine::VgRefPtr< Vg3DModule::VgIGeometry > | createModel (VgEngine::VgConstRefPtr< VgEngine::VgBinaryBuffer >const &pBuffer, const std::string &pID) |
Protected Attributes | |
Private * | mPrivate |
Friends | |
class | VgEngine::VgObjectBridge |
The VgModelManager class is used to create 3D models as VgIGeometry instances given a VgBinaryBuffer.
The VgModelManager class is in charge of passing the VgBinaryBuffer data to the graphics engine and creates internal objects that allows usage of the returned model.
The below code snippet demonstrates how a VgIGeometry can be created.
Vg3DModule::VgModelManager::VgModelManager | ( | ) |
Constructor. Creates an useless instance. A working instance can be acquired from the Vg3DModule::VgI3DModule.
Vg3DModule::VgModelManager::~VgModelManager | ( | ) |
Destructor.
VgEngine::VgRefPtr< Vg3DModule::VgIGeometry > Vg3DModule::VgModelManager::createModel | ( | VgEngine::VgConstRefPtr< VgEngine::VgBinaryBuffer >const & | pBuffer | ) |
Creates a model from a VgBinaryBuffer. The model will not be visible until it is added to a layer via Vg3DModule::VgIGeometry::setLayer.
pBuffer | The buffer from where the model will be loaded. |
VgEngine::VgRefPtr< Vg3DModule::VgIGeometry > Vg3DModule::VgModelManager::createModel | ( | VgEngine::VgConstRefPtr< VgEngine::VgBinaryBuffer >const & | pBuffer, |
const std::string & | pID | ||
) |
Creates a model from a VgBinaryBuffer with an ID and that notifies VgMapModule::VgIPlaceListener by default. The model will not be visible until it is added to a layer via Vg3DModule::VgIGeometry::setLayer.
pBuffer | The buffer from where the model will be loaded. |
pID | ID of model, if ID is empty, the model will not be clickable by default, although it can be clickable via Vg3DModule::VgIGeometry::addListener |
|
friend |
|
protected |