1 #ifndef COIN_SOOFFSCREENRENDERER_H
2 #define COIN_SOOFFSCREENRENDERER_H
27 #include <Inventor/SbViewportRegion.h>
28 #include <Inventor/SbColor.h>
29 #include <Inventor/lists/SbList.h>
30 #include <Inventor/lists/SbPList.h>
31 #include <Inventor/SbString.h>
32 #include <Inventor/SbName.h>
44 class SoOffscreenRendererP;
51 LUMINANCE_TRANSPARENCY = 2,
60 static float getScreenPixelsPerInch(
void);
61 static SbVec2s getMaximumResolution(
void);
62 void setComponents(
const Components components);
63 Components getComponents(
void)
const;
66 void setBackgroundColor(
const SbColor & color);
67 const SbColor & getBackgroundColor(
void)
const;
70 SbBool render(
SoNode * scene);
71 SbBool render(
SoPath * scene);
72 unsigned char * getBuffer(
void)
const;
74 SbBool writeToRGB(FILE * fp)
const;
75 SbBool writeToPostScript(FILE * fp)
const;
76 SbBool writeToPostScript(FILE * fp,
const SbVec2f & printsize)
const;
78 SbBool writeToRGB(
const char * filename)
const;
79 SbBool writeToPostScript(
const char * filename)
const;
80 SbBool writeToPostScript(
const char * filename,
const SbVec2f & printsize)
const;
82 SbBool isWriteSupported(
const SbName & filetypeextension)
const;
83 int getNumWriteFiletypes(
void)
const;
84 void getWriteFiletypeInfo(
const int idx,
88 SbBool writeToFile(
const SbString & filename,
const SbName & filetypeextension)
const;
92 void getWriteFiletypeInfo(
const int idx,
98 friend class SoOffscreenRendererP;
99 class SoOffscreenRendererP * pimpl;
The SbColor class contains the red, green and blue components which make up a color value.
Definition: SbColor.h:30
The SbName class stores strings by reference.
Definition: SbName.h:31
The SbPList class is a container class for void pointers.
Definition: SbPList.h:31
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:42
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:37
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:31
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:39
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
The SoOffscreenRenderer class is used for rendering scenes in offscreen buffers.
Definition: SoOffscreenRenderer.h:47
Components
Definition: SoOffscreenRenderer.h:49
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:43