This class stores information on one 3D scene, including cameras, lights and objects.
More...
|
virtual void | init () |
| Initializes the scene. It is called by CGFapplication when the scene is associated through CGFapplication::setScene()
|
|
virtual void | display () |
| Renders the scene. When this scene is active in the current application, it is called by CGFapplication::display(), which in turn is registered as GLUT display handler, thus being called at every frame refresh.
|
|
virtual void | update (unsigned long millis) |
| Periodic update function. This is a generic update handler for use in animations. It is called periodically at the time interval set with setUpdatePeriod(). When called, receives as parameter the actual timestamp in millisseconds, to be used in animations and other computations.
|
|
virtual void | initCameras () |
| Initializes default cameras. Usually called at the end of the constructor.
|
|
void | activateCamera (int i) |
| If a default set of cameras is available in scene_cameras, activates the camera at position i
|
|
void | setInterface (CGFinterface *i) |
| Registers a CGFinterface instance with this scene. This is typically called by CGFapplication when a CGFinterface is registered through CGFapplication::setInterface()
|
|
This class stores information on one 3D scene, including cameras, lights and objects.