1#ifndef COIN_SOOFFSCREENRENDERER_H
2#define COIN_SOOFFSCREENRENDERER_H
36#include <Inventor/SbViewportRegion.h>
37#include <Inventor/SbColor.h>
38#include <Inventor/lists/SbList.h>
39#include <Inventor/lists/SbPList.h>
40#include <Inventor/SbString.h>
41#include <Inventor/SbName.h>
53class SoOffscreenRendererP;
60 LUMINANCE_TRANSPARENCY = 2,
69 static float getScreenPixelsPerInch(
void);
70 static SbVec2s getMaximumResolution(
void);
71 void setComponents(
const Components components);
72 Components getComponents(
void)
const;
75 void setBackgroundColor(
const SbColor & color);
76 const SbColor & getBackgroundColor(
void)
const;
79 SbBool render(
SoNode * scene);
80 SbBool render(
SoPath * scene);
81 unsigned char * getBuffer(
void)
const;
82 const void *
const & getDC(
void)
const;
84 SbBool writeToRGB(
FILE * fp)
const;
85 SbBool writeToPostScript(
FILE * fp)
const;
88 SbBool writeToRGB(
const char * filename)
const;
89 SbBool writeToPostScript(
const char * filename)
const;
90 SbBool writeToPostScript(
const char * filename,
const SbVec2f &
printsize)
const;
93 int getNumWriteFiletypes(
void)
const;
94 void getWriteFiletypeInfo(
const int idx,
100 void setPbufferEnable(SbBool enable);
101 SbBool getPbufferEnable(
void)
const;
104 friend class SoOffscreenRendererP;
105 class SoOffscreenRendererP * pimpl;
The SbColor class contains the red, green and blue components which make up a color value.
Definition SbColor.h:39
The SbList class is a template container class for lists.
Definition SbList.h:70
The SbName class stores strings by reference.
Definition SbName.h:40
The SbPList class is a container class for void pointers.
Definition lists/SbPList.h:40
The SbString class is a string class with convenience functions for string operations.
Definition SbString.h:52
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:49
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:51
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:40
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition SoBase.h:45
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition SoGLRenderAction.h:50
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:56
The SoOffscreenRenderer class is used for rendering scenes to offscreen buffers.
Definition SoOffscreenRenderer.h:56
Components
Definition SoOffscreenRenderer.h:58
The SoPath class is a container class for traversal path descriptions.
Definition SoPath.h:52