Viz World User Guide

Version 17.0 | Published March 11, 2019 ©

Best Practices

When using a geo-reference (VWGeoref) object it is best to use a class member that will be initialized in the constructor or only when you would like to explicitly do a refresh, doing so on the ExePerField will impact performance.

The scene object (VWScene) has to be initialized in the constructor and has to be freed on the destructor, avoiding to do so will result a performance impact as Viz World’s memory consumption will not be freed.

Example

class MyPlugin
{
....
private:
VWScene * m_pVWScene;
}
MyPlugin::MyPlugin()
{
m_pVWScene = VWScene::AddVWSceneInstance(this);
}
MyPlugin::~MyPlugin()
{
VWScene::RemoveVWSceneInstance(m_pVWScene, this);
}