Public Member Functions | Protected Attributes | Friends

Vg3DModule::VgModelManager Interface Reference

The VgModelManager class is used to create 3D models as VgIGeometry instances given a VgBinaryBuffer. More...

List of all members.

Public Member Functions

 VgModelManager ()
 Constructor.
 ~VgModelManager ()
 Destructor.
VgEngine::VgRefPtr
< Vg3DModule::VgIGeometry
createModel (VgEngine::VgConstRefPtr< VgEngine::VgBinaryBuffer >const &pBuffer)
 Creates a model from a VgBinaryBuffer.

Protected Attributes

Private * mPrivate

Friends

class VgEngine::VgObjectBridge

Detailed Description

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::VgI3DModule* l3dModule;
     ...
     
     // Create VgIGeometry from an vsg4 file and assign it to a member variable
     VgEngine::VgRefPtr< VgEngine::VgBinaryBuffer > lBuffer = mVgApplication->editEngine()->editResourceManager()->readFromFileOrURL("/path/to/file.vsg4");
     Vg3DModule::VgModelManager* lModelManager = l3dModule->editModelManager();
     VgEngine::VgRefPtr< Vg3DModule::VgIGeometry > lModel = lModelManager->createModel(*lBuffer);
     
     mModel = lModel.get();
     ...
Date:
20/02/2013
Version:
2.0.8744

Constructor & Destructor Documentation

Vg3DModule::VgModelManager::VgModelManager (  )

Constructor.

Creates an useless instance. A working instance can be acquired from the Vg3DModule::VgI3DModule.

Vg3DModule::VgModelManager::~VgModelManager (  )

Destructor.


Member Function Documentation

VgEngine::VgRefPtr< Vg3DModule::VgIGeometry > Vg3DModule::VgModelManager::createModel ( VgEngine::VgConstRefPtr< VgEngine::VgBinaryBuffer >const &  pBuffer )

Creates a model from a VgBinaryBuffer.

Parameters:
pBufferThe buffer from where the model will be loaded.

Friends And Related Function Documentation

friend class VgEngine::VgObjectBridge [friend]

Member Data Documentation


The documentation for this interface was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013