Choreonoid
1.5
|
#include <SceneProvider.h>
Public Member Functions | |
virtual | ~SceneProvider () |
virtual SgNode * | getScene ()=0 |
virtual SgNode * | getScene (SgCloneMap &cloneMap) |
|
virtual |
|
pure virtual |
If the scene has some state that affect the rendering, the scene node should be cloned for each call of this function. Otherwise, the same instance can be returned.
Implemented in cnoid::BodyItem, cnoid::MultiPointSetItem, cnoid::WorldItem, cnoid::OpenHRPOnlineViewerItem, cnoid::PointSetItem, cnoid::BodyTrackingCameraItem, cnoid::SensorVisualizerItem, and cnoid::SceneItem.
|
virtual |
Whether the getScene function returns the shared instance or a cloned instance, this function must always returns a cloned instance. If the getScene function returns a clone instance, this function should be overridden to avoid redundant cloning.