32#ifndef G4OPENGLVIEWER_HH
33#define G4OPENGLVIEWER_HH
60 fAttributes.push_back(att);
90 std::vector <G4String > fAttributes;
107 virtual bool exportImage(std::string name=
"",
int width=-1,
int height=-1);
134 const std::vector < G4OpenGLViewerPickMap* > &
GetPickDetails(GLdouble x, GLdouble y);
163 void g4GluPickMatrix(GLdouble x, GLdouble y, GLdouble width, GLdouble height,
167 void g4GluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
168 GLdouble centerx, GLdouble centery, GLdouble
170 GLdouble upx, GLdouble upy, GLdouble upz );
172 void g4GlOrtho (GLdouble left, GLdouble right,
173 GLdouble bottom, GLdouble top,
174 GLdouble near, GLdouble far);
177 GLdouble bottom, GLdouble top,
178 GLdouble near, GLdouble far);
209 int fGl2psDefaultLineWith;
210 int fGl2psDefaultPointSize;
211 bool fGlViewInitialized;
217 G4int getRealExportWidth();
218 G4int getRealExportHeight();
219 GLubyte* grabPixels (
int inColor,
221 unsigned int height);
222 bool printNonVectoredEPS ();
225 bool printVectoredEPS();
228 bool fIsGettingPickInfos;
void setSubHitNumber(G4int n)
std::vector< G4String > getAttributes()
void setHitNumber(G4int n)
void addAttributes(G4String att)
void setPickName(G4int n)
void g4GluPickMatrix(GLdouble x, GLdouble y, GLdouble width, GLdouble height, GLint viewport[4])
void g4GlFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near, GLdouble far)
std::vector< std::string > fExportImageFormatVector
void g4GluLookAt(GLdouble eyex, GLdouble eyey, GLdouble eyez, GLdouble centerx, GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy, GLdouble upz)
void rotateSceneToggle(G4double dx, G4double dy)
virtual void CreateFontLists()
bool setExportImageFormat(std::string format, bool quiet=false)
unsigned int getWinHeight() const
std::string fExportImageFormat
void ClearViewWithoutFlush()
void ResizeWindow(unsigned int, unsigned int)
unsigned int getWinWidth() const
std::string fDefaultExportImageFormat
bool setExportFilename(G4String name, G4bool inc=true)
G4OpenGLViewer(G4OpenGLSceneHandler &scene)
void addExportImageFormat(std::string format)
G4bool antialiasing_enabled
void ChangeLineWidth(G4double width)
virtual void DrawText(const G4Text &)
GLdouble getSceneFarWidth()
void setExportSize(G4int, G4int)
virtual G4String Pick(GLdouble x, GLdouble y)
void rotateScene(G4double dx, G4double dy)
void ChangePointSize(G4double size)
G4bool isFramebufferReady()
G4bool transparency_enabled
virtual bool exportImage(std::string name="", int width=-1, int height=-1)
void g4GlOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near, GLdouble far)
G4OpenGLSceneHandler & fOpenGLSceneHandler
virtual ~G4OpenGLViewer()
friend class G4OpenGLFileSceneHandler
std::string getRealPrintFilename()
GLdouble getSceneNearWidth()
const std::vector< G4OpenGLViewerPickMap * > & GetPickDetails(GLdouble x, GLdouble y)