Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4gl2ps.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27
28#ifndef G4gl2ps_h
29#define G4gl2ps_h
30
31#include "G4String.hh"
32
33#include <tools/gl2ps_def.h>
34
35class G4gl2ps {
36
37public:
38 G4gl2ps();
39 ~G4gl2ps();
40
42 void setFileName(const char*);
43 void setExportImageFormat(unsigned int);
44
51
52 bool enableFileWriting();
53 void disableFileWriting();
54 bool fileWritingEnabled() const;
55
56 bool beginPage();
57 bool endPage();
58
59 void setLineWidth(int);
60 void setPointSize(int);
61 void addTextOpt(const char*,const char*,
63 void setViewport(int,int,int,int);
64 bool extendBufferSize();
66 void setBufferSize(int);
67
69protected:
72 FILE* fFile;
74 int fViewport[4];
77private:
78 unsigned int fExportImageFormat;
79};
80
81#endif
82
void setOpenGLFunctions(tools_gl2ps_gl_funcs_t *)
Definition: G4gl2ps.cc:73
void disableFileWriting()
Definition: G4gl2ps.cc:146
void setPointSize(int)
Definition: G4gl2ps.cc:95
int fViewport[4]
Definition: G4gl2ps.hh:74
tools_GL2PScontextPointer fContext
Definition: G4gl2ps.hh:71
G4String fFileName
Definition: G4gl2ps.hh:73
bool fileWritingEnabled() const
Definition: G4gl2ps.cc:157
void setBufferSize(int)
Definition: G4gl2ps.cc:172
G4gl2ps()
Definition: G4gl2ps.cc:38
bool extendBufferSize()
Definition: G4gl2ps.cc:161
void resetBufferSizeParameters()
Definition: G4gl2ps.cc:86
void setExportImageFormat_SVG()
Definition: G4gl2ps.hh:49
void setExportImageFormat_PDF()
Definition: G4gl2ps.hh:48
void setExportImageFormat_TEX()
Definition: G4gl2ps.hh:47
void setExportImageFormat_PGF()
Definition: G4gl2ps.hh:50
void setFileName(const char *)
Definition: G4gl2ps.cc:114
void setExportImageFormat(unsigned int)
Definition: G4gl2ps.cc:215
int fBufferSize
Definition: G4gl2ps.hh:75
tools_GL2PScontextPointer context() const
Definition: G4gl2ps.hh:68
void addTextOpt(const char *, const char *, tools_GLshort, tools_GLint, tools_GLfloat)
Definition: G4gl2ps.cc:100
void setLineWidth(int)
Definition: G4gl2ps.cc:90
FILE * fFile
Definition: G4gl2ps.hh:72
bool beginPage()
Definition: G4gl2ps.cc:178
tools_gl2ps_gl_funcs_t fOpenGLFuncs
Definition: G4gl2ps.hh:70
void setExportImageFormat_PS()
Definition: G4gl2ps.hh:45
void setViewport(int, int, int, int)
Definition: G4gl2ps.cc:107
void setExportImageFormat_EPS()
Definition: G4gl2ps.hh:46
~G4gl2ps()
Definition: G4gl2ps.cc:62
int fBufferSizeLimit
Definition: G4gl2ps.hh:76
bool enableFileWriting()
Definition: G4gl2ps.cc:118
bool endPage()
Definition: G4gl2ps.cc:206
struct tools_GL2PScontextRec * tools_GL2PScontextPointer
Definition: gl2ps_def.h:186
short tools_GLshort
Definition: gl2ps_def.h:11
float tools_GLfloat
Definition: gl2ps_def.h:9
int tools_GLint
Definition: gl2ps_def.h:7
#define TOOLS_GL2PS_PGF
Definition: gl2ps_def.h:39
#define TOOLS_GL2PS_EPS
Definition: gl2ps_def.h:35
#define TOOLS_GL2PS_PS
Definition: gl2ps_def.h:34
#define TOOLS_GL2PS_PDF
Definition: gl2ps_def.h:37
#define TOOLS_GL2PS_SVG
Definition: gl2ps_def.h:38
#define TOOLS_GL2PS_TEX
Definition: gl2ps_def.h:36