ATLAS Offline Software
SoGL2PSAction.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef HEPVis_SoGL2PSAction_h
6 #define HEPVis_SoGL2PSAction_h
7 
8 #include <Inventor/C/errors/debugerror.h>
9 #include <Inventor/actions/SoGLRenderAction.h>
10 
17 class SoGL2PSAction : public SoGLRenderAction {
19 public:
20  SoGL2PSAction(const SbViewportRegion&);
21  // gl2ps file formats (mapping of GL2PS_PS, etc...)
22 /* in gl2ps.h 1.3.2 :
23 #define GL2PS_PS 0
24 #define GL2PS_EPS 1
25 #define GL2PS_TEX 2
26 #define GL2PS_PDF 3
27 #define GL2PS_SVG 4
28 #define GL2PS_PGF 5
29 */
30  enum Format {
31  PS = 0,
32  EPS = 1,
33  TEX = 2,
34  PDF = 3,
35  SVG = 4,
36  PGF = 5
37  };
38  void setFileFormat(Format);
39  void setFileName(const char*);
40  SbBool setPageOptions(const SbString& options);
41  void enableFileWriting();
42  void disableFileWriting();
43  SbBool fileWritingEnabled() const;
44  SbBool addBitmap(int,int,float=0,float=0,float=0,float=0);
45  void beginViewport(SbBool draw_back = TRUE);
46  void endViewport();
47 public: /*SoINTERNAL*/
48  static void initClass();
49 protected:
50  virtual void beginTraversal(SoNode*);
51 private:
52  void gl2psBegin();
53  static void separatorAction(SoAction*,SoNode*);
54  static void drawStyleAction(SoAction*,SoNode*);
55 private:
57  SbString m_fileName;
58  FILE* m_file;
60 };
61 
62 #endif
63 
SoGL2PSAction::PGF
@ PGF
Definition: SoGL2PSAction.h:36
SoGL2PSAction::SVG
@ SVG
Definition: SoGL2PSAction.h:35
SoGL2PSAction::TEX
@ TEX
Definition: SoGL2PSAction.h:33
SoGL2PSAction::gl2psBegin
void gl2psBegin()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:274
SoGL2PSAction::SoGL2PSAction
SoGL2PSAction(const SbViewportRegion &)
Definition: SoGL2PSAction.cxx:37
SoGL2PSAction::addBitmap
SbBool addBitmap(int, int, float=0, float=0, float=0, float=0)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:188
SoGL2PSAction::EPS
@ EPS
Definition: SoGL2PSAction.h:32
SoGL2PSAction::endViewport
void endViewport()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:245
SoGL2PSAction::SO_ACTION_HEADER
SO_ACTION_HEADER(SoGL2PSAction)
SoGL2PSAction::m_fileName
SbString m_fileName
Definition: SoGL2PSAction.h:57
SoGL2PSAction::setPageOptions
SbBool setPageOptions(const SbString &options)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:65
SoGL2PSAction::m_pageOptions
int m_pageOptions
Definition: SoGL2PSAction.h:59
SoGL2PSAction::PS
@ PS
Definition: SoGL2PSAction.h:31
python.Constants.TRUE
bool TRUE
for job options legacy (TODO: get rid of these!) ----------------------—
Definition: Control/AthenaCommon/python/Constants.py:22
python.AtlRunQueryLib.options
options
Definition: AtlRunQueryLib.py:379
SoGL2PSAction::enableFileWriting
void enableFileWriting()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:154
SoGL2PSAction::disableFileWriting
void disableFileWriting()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:171
SoGL2PSAction::m_fileFormat
Format m_fileFormat
Definition: SoGL2PSAction.h:56
SoGL2PSAction::fileWritingEnabled
SbBool fileWritingEnabled() const
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:180
SoGL2PSAction::PDF
@ PDF
Definition: SoGL2PSAction.h:34
SoGL2PSAction
SoGL2PSAction inherits Inventor/SoGLRenderAction.
Definition: SoGL2PSAction.h:17
SoGL2PSAction::m_file
FILE * m_file
Definition: SoGL2PSAction.h:58
SoGL2PSAction::initClass
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:24
SoGL2PSAction::beginTraversal
virtual void beginTraversal(SoNode *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:254
SoGL2PSAction::separatorAction
static void separatorAction(SoAction *, SoNode *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:309
SoGL2PSAction::Format
Format
Definition: SoGL2PSAction.h:30
SoGL2PSAction::setFileName
void setFileName(const char *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:145
SoGL2PSAction::drawStyleAction
static void drawStyleAction(SoAction *, SoNode *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:325
SoGL2PSAction::setFileFormat
void setFileFormat(Format)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:56
SoGL2PSAction::beginViewport
void beginViewport(SbBool draw_back=TRUE)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoGL2PSAction.cxx:225