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;
73 const void *
const & getDC(
void)
const;
75 SbBool writeToRGB(FILE * fp)
const;
76 SbBool writeToPostScript(FILE * fp)
const;
77 SbBool writeToPostScript(FILE * fp,
const SbVec2f & printsize)
const;
79 SbBool writeToRGB(
const char * filename)
const;
80 SbBool writeToPostScript(
const char * filename)
const;
81 SbBool writeToPostScript(
const char * filename,
const SbVec2f & printsize)
const;
83 SbBool isWriteSupported(
const SbName & filetypeextension)
const;
84 int getNumWriteFiletypes(
void)
const;
85 void getWriteFiletypeInfo(
const int idx,
89 SbBool writeToFile(
const SbString & filename,
const SbName & filetypeextension)
const;
91 void setPbufferEnable(SbBool enable);
92 SbBool getPbufferEnable(
void)
const;
96 void getWriteFiletypeInfo(
const int idx,
102 friend class SoOffscreenRendererP;
103 class SoOffscreenRendererP * pimpl;
106 #endif // !COIN_SOOFFSCREENRENDERER_H