SO_PIMPL_BASE_PUBLIC_DECLARATION(SoOffscreenRenderArea)
Base class for all event arguments.
Class representing an event.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class encapsulat...
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 4D vector class.
Class for representing a viewport.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea antia...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea inter...
RenderStatus
Returned by the render method.
ClearPolicy
Policy values to clear color and depth buffers beforing rendering.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea trans...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> OpenGL context m...
Renders a scene graph using Open Inventor's Render Engine.
TransparencyType
Transparency rendering algorithm.
Abstract base class for all database nodes.
Render to an off-screen buffer for printing or generating textures.
virtual float getClearDepth() const
virtual void setGLRenderAction(SoGLRenderAction *glAction)
Defines the render action used for rendering.
SbEventHandler< EventArg & > onTileRendered
Event raised when a tile has been rendered.
SbViewportRegion getViewportRegion() const
virtual void setClearPolicy(ClearPolicy policy)
Defines the color buffer and depth buffer clear policy.
void setTile(SbVec2i32 size, int numEdgePixels)
Defines the maximum sub-image (tile) size for rendering and the number of pixels on the border of eac...
virtual SbVec2i32 getSize() const
SbVec2i32 getTileSize() const
virtual ClearPolicy getClearPolicy() const
~SoOffscreenRenderArea()
Destructor.
virtual void setTransparencyType(SoGLRenderAction::TransparencyType type)
Defines the algorithm for rendering transparent objects.
int getNumEdgePixels() const
virtual float getAntialiasingQuality() const
bool renderToBuffer(SoBufferObject *buffer, OutputFormat outputFormat=RGB) const
Render the given scene graph and save the result in the given buffer.
SoOffscreenRenderArea(SoGLContext *glContex)
Builds a new offscreen render area by sharing the given SoGlContext.
virtual SbColorRGBA getClearColor() const
OutputFormat
Describes the format of the rendering output.
@ RGB
3 components: red, green and blue
@ RGBA
4 components: red, green, blue and alpha
SoOffscreenRenderArea()
Default constructor.
virtual SoSceneManager::AntialiasingMode getAntialiasingMode() const
void setViewportRegion(const SbViewportRegion &newRegion)
Defines viewport region (within the image) to use for rendering.
virtual void setClearDepth(float depth)
Defines the depth value used when the depth buffer is cleared.
virtual SbEventHandler< RenderEventArg & > & onStartRender()
Returns the event handler that raises when a new render starts.
bool renderToFile(const SbString &filename, OutputFormat outputFormat=RGB) const
Render the given scene graph and save the result in the given file.
virtual RenderStatus render()
Calling the render() method is useless and does nothing.
virtual void setAntialiasingQuality(float quality)
Define the antialiasing quality value.
virtual SoNode * getSceneGraph() const
SoOffscreenRenderArea(SoRenderAreaCore *renderAreaCore)
Builds a new offscreen render area by using the given renderAreaCore.
virtual void setClearColor(const SbColorRGBA &color)
Defines the RGBA value used when the color buffer is cleared.
SoSceneManager * getSceneManager() const
Returns the encapsulated scene manager.
virtual void setAntialiasingMode(SoSceneManager::AntialiasingMode mode)
Define the antialiasing mode.
virtual SoGLRenderAction::TransparencyType getTransparencyType() const
virtual SoGLRenderAction * getGLRenderAction() const
Returns the render action used for rendering.
static SbVec2i32 getMaxTileSize()
Gets the maximum subimage (tile) size for rendering.
virtual void setSize(const SbVec2i32 &size)
Defines the image size to use for rendering.
virtual void setSceneGraph(SoNode *newScene)
Defines the scene graph which will be traversed for rendering.
Base class for ref-counted objects.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
Manages scene graph rendering and event handling.
AntialiasingMode
Enum which indicates the desired antialiasing algorithm.
Event that can be sent to the application for each tile rendered.
friend class inventor::impl::SoOffscreenRenderAreaImpl
const SoOffscreenRenderArea * getSource() const
Returns the SoOffscreenRenderArea that raised this event.
const SbRasterImage & getTile() const
Returns the image of the rendered tile.
int getNumTiles() const
Returns the number of tiles used to generate the entire image.
const SbVec2i32 & getOrigin() const
Returns the origin of the tile in the entire image.