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> 53 class 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;
86 SbBool writeToPostScript(FILE * fp,
const SbVec2f & printsize)
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;
92 SbBool isWriteSupported(
const SbName & filetypeextension)
const;
93 int getNumWriteFiletypes(
void)
const;
94 void getWriteFiletypeInfo(
const int idx,
98 SbBool writeToFile(
const SbString & filename,
const SbName & filetypeextension)
const;
100 void setPbufferEnable(SbBool enable);
101 SbBool getPbufferEnable(
void)
const;
104 friend class SoOffscreenRendererP;
105 class SoOffscreenRendererP * pimpl;
108 #endif // !COIN_SOOFFSCREENRENDERER_H The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:49
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:45
The SoOffscreenRenderer class is used for rendering scenes in offscreen buffers.
Definition: SoOffscreenRenderer.h:56
The SbColor class contains the red, green and blue components which make up a color value...
Definition: SbColor.h:39
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
The SbPList class is a container class for void pointers.
Definition: lists/SbPList.h:40
Components
Definition: SoOffscreenRenderer.h:58
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:52
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:40
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:52
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:51
The SbName class stores strings by reference.
Definition: SbName.h:40
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:50