#include <Scene.hxx>
Inheritance diagram for RayGina::CORE::Scene:

Public Member Functions | |
| virtual const RExtension * | getInstanceExtension () const |
| Scene () | |
| virtual | ~Scene () |
| virtual const RStatus | setImage (RimBase *newImage) |
| set the image in which will be rendered. The image should contain the correct size for the result image and will be deleted automaticly. | |
| virtual RimBase * | getImage () const |
| return the a pointer to the result image(can be zero). | |
| const RStatus | setCamera (RcmBase *new_Camera) |
| sets the camera for the scene, the camera previouly used will NOT be deleted!!!! | |
| RcmBase * | getCamera () const |
| returns the actual camera from the scene (NULL if no camera) | |
| const RStatus | addObject (RobBase *new_object) |
| adds a objects to the scene | |
| const RStatus | addLightSource (RlsBase *new_light) |
| adds a objects to the scene | |
| RobGroup * | getObjects () const |
| returns all objects of the scene as RobGroup | |
| RobAccelerator * | getAccelerationStructure () const |
| returns the acceleartion structure of the scene | |
| const RStatus | setAccelerationStructure (RobAccelerator *newAcc, bool deleteCurrent=false) |
| sets the acceleartion structure of the scene | |
| RsmBase * | getImageSampler () const |
| returns the image sampler of the scene | |
| const RStatus | setImageSampler (RsmBase *newSampler) |
| sets the image sampler of the scene | |
| RvsBase * | getStartVolumeShader () const |
| returns the start volume shader for the scene | |
| const RStatus | setStartVolumeShader (RvsBase *newVolumeShader) |
| sets the volume shader for the scene to start with | |
| RlsGroup * | getLightSet () const |
| returns all objects of the scene as RobGroup | |
| const RUInt32 | getNumberOfLights () const |
| return the number of lights in the scene | |
| RnvBase * | getEnvironment () const |
| returns all objects of the scene as RobGroup | |
| const RStatus | setEnvironment (RnvBase *newEnvironment) |
| returns all objects of the scene as RobGroup | |
| RRenderCom * | getRenderCom (const unsigned int threadNum) |
| returns a pointer to the actual rendercom | |
| const RStatus | startRender () |
| const RStatus | endRender () |
| const RStatus | render () |
| start the rendering of the scene | |
| const RStatus | mainLoop () |
| waits for the rendering to finish | |
| const RStatus | initRender () |
| const RStatus | renderLoop () |
| const RUInt32 | getNumOfThreads () const |
| bool | intersect (RRay *ray) |
| bool | occlude (RRay *ray) |
Static Public Member Functions | |
| RExtension * | __getExtension () |
Static Private Member Functions | |
| RObject * | _createInstance () |
| const RStatus | _setImageAttr (RObject *myScene, RObject *image) |
| RObject * | _getImageAttr (const RObject *myScene, RRenderCom *) |
| const RStatus | _setCameraAttr (RObject *myScene, RObject *image) |
| RObject * | _getCameraAttr (const RObject *myScene, RRenderCom *) |
| const RStatus | _setImageSamplerAttr (RObject *myScene, RObject *image) |
| RObject * | _getImageSamplerAttr (const RObject *myScene, RRenderCom *) |
| const RStatus | _setLightAttr (RObject *myScene, RObject *light, const RUInt32 index) |
| RObject * | _getLightAttr (const RObject *myScene, const RUInt32 index, RRenderCom *) |
| const RStatus | _setLightSizeAttr (RObject *myScene, const RUInt32 newSize) |
| const RUInt32 | _getLightSizeAttr (const RObject *myScene) |
| const RStatus | _setObjectsAttr (RObject *myScene, RObject *object, const RUInt32 index) |
| RObject * | _getObjectsAttr (const RObject *myScene, const RUInt32 index, RRenderCom *) |
| const RStatus | _setObjectsSizeAttr (RObject *myScene, const RUInt32 newSize) |
| const RUInt32 | _getObjectsSizeAttr (const RObject *myScene) |
| const RStatus | _initialize (RatStaticContainer *attributes) |
Private Attributes | |
| RTime | _start_time |
| start time | |
| RTime | _end_time |
| finish time | |
| RTime | _length |
| scene length | |
| RTime | _frame_length |
| length of one frame | |
| RTime | _motion_blur_time |
| how long is the shutter open? | |
| unsigned int | _start_frame |
| start frame | |
| unsigned int | _end_frame |
| last frame | |
| bool | _motion_blur |
| if true motion blur is activated | |
| RimBase * | _target_image |
| where we save the calculated colors ;-) | |
| RRect | _render_rect |
| the rectangle with will be rendered(it is not necessity that this rect is equal to the size of the image) | |
| RcmBase * | _camera |
| the camera for the scene | |
| RobGroup * | _objects |
| the objects in a scene | |
| RobAccelerator * | _accStructure |
| used for speeding up ray-tracing | |
| RRenderCom * | _rendercom |
| the RRenderCom for shader communication and light caching | |
| RlsGroup * | _lightset |
| the light sources for the scene | |
| RsmBase * | _sampler |
| the light sources for the scene | |
| RnvBase * | _environment |
| the light sources for the scene | |
| RvsBase * | _startVolumeShader |
| the start volume for the scene | |
| RspBase * | _rsp |
| RspFinishedRects * | _finishedRectsList |
| RtList | _renderthreads |
| RUInt32 | _numOfThreads |
Static Private Attributes | |
| RExtension | _extensionData |
| RatStaticContainer * | _attributes = NULL |
Friends | |
| class | rayGina |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
adds a objects to the scene
|
|
|
adds a objects to the scene
|
|
|
notifies the scene that rendering is finished returns true if an error occured (why????) |
|
|
returns the acceleartion structure of the scene
|
|
|
returns the actual camera from the scene (NULL if no camera)
|
|
|
returns all objects of the scene as RobGroup
|
|
|
return the a pointer to the result image(can be zero).
|
|
|
returns the image sampler of the scene
|
|
|
returns the RExtension for the instance If it returns NULL this instance is not able to act as an extension Implements RayGina::CORE::RObject. |
|
|
returns all objects of the scene as RobGroup
|
|
|
return the number of lights in the scene
|
|
|
|
|
|
returns all objects of the scene as RobGroup
|
|
|
returns a pointer to the actual rendercom
|
|
|
returns the start volume shader for the scene
|
|
|
|
|
|
|
|
|
waits for the rendering to finish
|
|
|
|
|
|
start the rendering of the scene
|
|
|
|
|
||||||||||||
|
sets the acceleartion structure of the scene
|
|
|
sets the camera for the scene, the camera previouly used will NOT be deleted!!!!
|
|
|
returns all objects of the scene as RobGroup
|
|
|
set the image in which will be rendered. The image should contain the correct size for the result image and will be deleted automaticly.
|
|
|
sets the image sampler of the scene
|
|
|
sets the volume shader for the scene to start with
|
|
|
notifies the scene that rendering is about to begin returns true if an error occured and rendering can not be proceeded |
|
|
|
|
|
used for speeding up ray-tracing
|
|
|
|
|
|
the camera for the scene
|
|
|
last frame
|
|
|
finish time
|
|
|
the light sources for the scene
|
|
|
Initial value: RExtension(RExtension::SUPERCLASSID_SCENE,
RExtension::CLASSID_CORE_SCENE,
1,
1,
"Scene",
"Scene",
"rayGina::CORE::Team",
"core@raygina.de",
"www.raygina.de",
Scene::_createInstance,
Scene::_initialize)
|
|
|
|
|
|
length of one frame
|
|
|
scene length
|
|
|
the light sources for the scene
|
|
|
if true motion blur is activated
|
|
|
how long is the shutter open?
|
|
|
|
|
|
the objects in a scene
|
|
|
the rectangle with will be rendered(it is not necessity that this rect is equal to the size of the image)
|
|
|
the RRenderCom for shader communication and light caching
|
|
|
|
|
|
|
|
|
the light sources for the scene
|
|
|
start frame
|
|
|
start time
|
|
|
the start volume for the scene
|
|
|
where we save the calculated colors ;-)
|
1.3.9.1