SoDirectVizManagerGetInstance Method |
Returns a pointer to a DirectVizManager object associated with the specified scene manager.
Namespace: OIV.DirectVizAssembly: OIV.DirectViz (in OIV.DirectViz.dll) Version: 9.9.36.0 (9.9.36.0)
Syntaxpublic static SoDirectVizManager GetInstance(
SoSceneManager mgr
)
Public Shared Function GetInstance (
mgr As SoSceneManager
) As SoDirectVizManager
public:
static SoDirectVizManager^ GetInstance(
SoSceneManager^ mgr
)
static member GetInstance :
mgr : SoSceneManager -> SoDirectVizManager
Parameters
- mgr
- Type: OIV.InventorSoSceneManager
Return Value
Type:
SoDirectVizManager
Remarks
If DirectViz was already associated with a scene manager, calling getInstance() with another scene manager will deactivate DirectViz on the previously associated scene manager. To retrieve the scene manager corresponding to a viewer or render area, you can use code similar to:
pViewer->getSceneManager();
See Also