A VgLine is created using Vg3DModule::VgInstanceFactory::instantiate. More...
Public Types | |
typedef VgLineDescriptor | Descriptor |
Public Member Functions | |
virtual VgEngine::VgConstRefPtr < Descriptor > | getDescriptor () const |
Retrieves the descriptor containing line information. | |
virtual Vg3DModule::VgIGeometryType | getType () const |
Protected Member Functions | |
VgLine () | |
Constructor. | |
virtual | ~VgLine () |
Destructor. | |
Friends | |
class | VgEngine::VgInstanceFactory |
class | VgEngine::VgObjectBridge |
A VgLine is created using Vg3DModule::VgInstanceFactory::instantiate.
Once created, it may be added to a layer using VgLine::setLayer.
... VgApplication::VgIApplication* mVgApplication; Vg3DModule::VgLineDescriptor lLineDesc; ... VgEngine::VgRefPtr< Vg3DModule::VgLine > lLine = mVgApplication->editEngine()->editInstanceFactory()->instantiate(lLineDesc); const VgEngine::VgLayerManager::LayerList& lLayers = mVgApplication->editEngine()->editLayerManager()->getLayers(); // Choose the first layer. VgEngine::VgRefPtr< VgEngine::VgLayer > lLayer = lLayers.at(0); // Note: The line will only be seen if it's associated layer is visible. lLine->setLayer(lLayer); // To remove the line from the layer lLine->setLayer(NULL); // If the line is no longer required, then release it's memory. // VgLine is reference counted, so just null-out the VgRefPtr. lLine = NULL;
Vg3DModule::VgLine::VgLine | ( | ) | [protected] |
Constructor.
virtual Vg3DModule::VgLine::~VgLine | ( | ) | [protected, virtual] |
Destructor.
virtual VgEngine::VgConstRefPtr< Descriptor > Vg3DModule::VgLine::getDescriptor | ( | ) | const [virtual] |
Retrieves the descriptor containing line information.
virtual Vg3DModule::VgIGeometryType Vg3DModule::VgLine::getType | ( | ) | const [virtual] |
Reimplemented from Vg3DModule::VgIGeometry.
friend class VgEngine::VgInstanceFactory [friend] |
friend class VgEngine::VgObjectBridge [friend] |
Reimplemented from Vg3DModule::VgIGeometry.