ATLAS Offline Software
Loading...
Searching...
No Matches
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
16
17class SoGL2PSAction : public SoGLRenderAction {
19public:
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 };
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();
47public: /*SoINTERNAL*/
48 static void initClass();
49protected:
50 virtual void beginTraversal(SoNode*);
51private:
52 void gl2psBegin();
53 static void separatorAction(SoAction*,SoNode*);
54 static void drawStyleAction(SoAction*,SoNode*);
55private:
57 SbString m_fileName;
58 FILE* m_file;
60};
61
62#endif
63
SbString m_fileName
SoGL2PSAction(const SbViewportRegion &)
void setFileFormat(Format)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Format m_fileFormat
void setFileName(const char *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
void endViewport()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
void gl2psBegin()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
void enableFileWriting()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
virtual void beginTraversal(SoNode *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
void disableFileWriting()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void separatorAction(SoAction *, SoNode *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
SbBool addBitmap(int, int, float=0, float=0, float=0, float=0)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void drawStyleAction(SoAction *, SoNode *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
SbBool fileWritingEnabled() const
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
void beginViewport(SbBool draw_back=TRUE)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
SO_ACTION_HEADER(SoGL2PSAction)
SbBool setPageOptions(const SbString &options)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//