[PREVIEW] Utility class to render a scene with an OpenGl context. More...
#include <Inventor/ViewerComponents/SoRenderAreaCore.h>
[C++] Reference counting:
This is a reference counted object, similar to a node or path. It can only be destroyed by incrementing and decrementing the reference count. The initial reference count is 0. You may use the ref() and unref() methods, but we recommend using the SoRef "smart pointer" template.
MFCRenderArea, MFCRenderAreaExaminer, MFCRenderAreaGuiIntegration, QtRenderArea, QtRenderAreaExaminer, QtRenderAreaGuiIntegration, WinRenderArea, WinRenderAreaExaminer
SoRenderAreaCore::SoRenderAreaCore | ( | SoGLContext * | glContext | ) |
Build a new SoRenderAreaCore that uses an existing glContext.
virtual void SoRenderAreaCore::activateStereo | ( | bool | activate | ) | [virtual] |
Activate (or deactivate) stereo rendering with specified parameters (see setStereoParameters).
The stereo mode is determined by which subclass is used to set the parameters. For example, passing an SoRawStereoParameters object activates OpenGL "quad buffered" stereo (if possible on the current graphics board).
Implements SiRenderAreaStereo.
virtual SoSceneManager::AntialiasingMode SoRenderAreaCore::getAntialiasingMode | ( | ) | const [virtual] |
Implements SiRenderAreaAntialiasing.
virtual float SoRenderAreaCore::getAntialiasingQuality | ( | ) | const [virtual] |
Implements SiRenderAreaAntialiasing.
virtual SbColorRGBA SoRenderAreaCore::getClearColor | ( | ) | const [virtual] |
Implements SiRenderArea.
virtual float SoRenderAreaCore::getClearDepth | ( | ) | const [virtual] |
Implements SiRenderArea.
virtual ClearPolicy SoRenderAreaCore::getClearPolicy | ( | ) | const [virtual] |
Implements SiRenderArea.
virtual SoInteractiveComplexity::InteractiveMode SoRenderAreaCore::getInteractiveMode | ( | ) | const [virtual] |
Implements SiRenderAreaInteractive.
virtual SoNode* SoRenderAreaCore::getSceneGraph | ( | ) | const [virtual] |
Gets the scene graph which is managed here.
This is the Open Inventor scene which will be traversed for rendering and event processing.
Implements SiRenderArea.
SoSceneManager* SoRenderAreaCore::getSceneManager | ( | ) | const |
virtual SbVec2i32 SoRenderAreaCore::getSize | ( | ) | const [virtual] |
Implements SiRenderArea.
virtual SoStereoParameters* SoRenderAreaCore::getStereoParameters | ( | ) | const [virtual] |
Implements SiRenderAreaStereo.
virtual unsigned int SoRenderAreaCore::getStillSuperSamplingDelay | ( | ) | const [virtual] |
Implements SiRenderAreaStillSuperSampling.
virtual float SoRenderAreaCore::getStillSuperSamplingQuality | ( | ) | const [virtual] |
Implements SiRenderAreaStillSuperSampling.
virtual SoGLRenderAction::TransparencyType SoRenderAreaCore::getTransparencyType | ( | ) | const [virtual] |
Implements SiRenderAreaTransparency.
virtual bool SoRenderAreaCore::isStereoActivated | ( | ) | const [virtual] |
Implements SiRenderAreaStereo.
virtual SbEventHandler<RenderEventArg&>& SoRenderAreaCore::onStartRender | ( | ) | [virtual] |
Returns the event handler that raises when a new render starts.
Implements SiRenderArea.
Processes the passed event by applying an SoHandleEventAction to the scene graph managed here.
Returns TRUE if the event was handled by a node.
Implements SiRenderAreaInteractive.
virtual SbBool SoRenderAreaCore::processEvents | ( | const std::vector< const SoEvent * > & | eventList | ) | [virtual] |
Processes the passed event by applying an SoHandleEventAction to the scene graph managed here.
Returns TRUE if at least one event was handled by a node.
Implements SiRenderAreaInteractive.
virtual RenderStatus SoRenderAreaCore::render | ( | ) | [virtual] |
Applies an SoGLRenderAction to the scene graph managed here.
See RenderStatus documentation for details on the returned value. The rendering may have been aborted, so check this function result before calling swap buffer for example
Implements SiRenderArea.
virtual void SoRenderAreaCore::setAntialiasingMode | ( | SoSceneManager::AntialiasingMode | mode | ) | [virtual] |
Define the antialiasing mode.
mode | The antialiasing algorithm. Default is NO_ANTIALIASING which turns off antialiasing. |
Implements SiRenderAreaAntialiasing.
virtual void SoRenderAreaCore::setAntialiasingQuality | ( | float | quality | ) | [virtual] |
Define the antialiasing quality value.
quality | The quality is a factor in the range [0.0,1.0]. Default is 0.0. The value 0.0 turns off antialiasing. |
Implements SiRenderAreaAntialiasing.
virtual void SoRenderAreaCore::setClearColor | ( | const SbColorRGBA & | color | ) | [virtual] |
Defines the RGBA value used when the color buffer is cleared.
See also setClearPolicy. Default is transparent black (0,0,0,0).
This is equivalent to setBackgroundColor() in the classical view classes.
color | RGBA value used to clear the color buffer. |
Implements SiRenderArea.
virtual void SoRenderAreaCore::setClearDepth | ( | float | depth | ) | [virtual] |
Defines the depth value used when the depth buffer is cleared.
See also setClearPolicy. Default is 1. Range is 0..1.
depth | value used to clear the depth buffer. |
Implements SiRenderArea.
virtual void SoRenderAreaCore::setClearPolicy | ( | ClearPolicy | policy | ) | [virtual] |
Defines the color buffer and depth buffer clear policy.
See also setClearColor and setClearDepth. Use enum ClearPolicy Default is COLORBUFFER_AND_DEPTHBUFFER.
policy | color buffer and depth buffer clear policy. |
Implements SiRenderArea.
virtual void SoRenderAreaCore::setInteractiveMode | ( | SoInteractiveComplexity::InteractiveMode | mode | ) | [virtual] |
Set the current interactive mode.
mode | interactive mode. Default is AUTO. |
Implements SiRenderAreaInteractive.
virtual void SoRenderAreaCore::setSceneGraph | ( | SoNode * | newScene | ) | [virtual] |
Sets the scene graph which is managed here.
This is the Open Inventor scene which will be traversed for rendering and event processing.
Implements SiRenderArea.
virtual void SoRenderAreaCore::setSize | ( | const SbVec2i32 & | size | ) | [virtual] |
Defines the size to use for rendering.
Typically this method must be called when the render area has been resized or moved.
Implements SiRenderArea.
virtual void SoRenderAreaCore::setStereoParameters | ( | SoStereoParameters * | parameters | ) | [virtual] |
Defines the stereo parameters.
parameters | Provides specific parameters for a stereo mode. Use one of the subclasses of SoStereoParameters. |
Implements SiRenderAreaStereo.
virtual void SoRenderAreaCore::setStillSuperSamplingDelay | ( | unsigned int | delay | ) | [virtual] |
Set delay for supersampling when "still" (not interacting).
If greater than 0, images will be supersampled after the specified delay.
delay | The delay is in milliseconds. If greater than 0, images will be supersampled after the specified delay See also setStillSuperSamplingQuality. |
Implements SiRenderAreaStillSuperSampling.
virtual void SoRenderAreaCore::setStillSuperSamplingQuality | ( | float | quality | ) | [virtual] |
Set quality for supersampling when "still" (not interacting).
When quality is greater than 0, still images will be automatically supersampled.
quality | The quality is a factor in the range [0.0,1.0]. Default value is 0.0. Use the value 0.0 to turn off still supersampling. 0.5 is a typical value. See also setStillSuperSamplingDelay. |
Implements SiRenderAreaStillSuperSampling.
virtual void SoRenderAreaCore::setTransparencyType | ( | SoGLRenderAction::TransparencyType | type | ) | [virtual] |
Sets the algorithm for rendering transparent objects.
Default is SCREEN_DOOR. See SoGLRenderAction for possible transparency types. See also the SoTransparencyType node.
Note: When using transparency types with DELAYED in the name, the depth buffer is not updated (depth buffer writes are disabled) while rendering transparent objects. As a result complex 3D shapes may not be rendered correctly.
Implements SiRenderAreaTransparency.