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