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);
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.This vector class is used...
Definition: SbVec2f.h:49
The SoBase class is the top-level superclass for a number of class-hierarchies.SoBase provides the ba...
Definition: SoBase.h:45
The SoOffscreenRenderer class is used for rendering scenes in offscreen buffers.If you want to render...
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.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:56
The SbPList class is a container class for void pointers.
Definition: SbPList.h:40
Components
Definition: SoOffscreenRenderer.h:58
The SoPath class is a container class for traversal path descriptions.SoPath objects contain a list o...
Definition: SoPath.h:52
The SbViewportRegion class is a viewport within a full window.The SbViewportRegion class contains inf...
Definition: SbViewportRegion.h:40
The SbString class is a string class with convenience functions for string operations.This is the class used for storing and working with character strings. It automatically takes care of supporting all the "bookkeeping" tasks usually associated with working with character strings, like memory allocation and deallocation etc.
Definition: SbString.h:52
The SbVec2s class is a 2 dimensional vector with short integer coordinates.This vector class is used ...
Definition: SbVec2s.h:51
The SbName class stores strings by reference.The class is used by Coin for storing keywords...
Definition: SbName.h:40
The SoGLRenderAction class renders the scene graph with OpenGL calls.Applying this method at a root n...
Definition: SoGLRenderAction.h:50