Geant4  10.00.p04
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4OpenGLViewer Class Reference
Inheritance diagram for G4OpenGLViewer:
G4VViewer G4OpenGLImmediateViewer G4OpenGLQtViewer G4OpenGLStoredViewer G4OpenGLWin32Viewer G4OpenGLXViewer G4OpenGLImmediateQtViewer G4OpenGLImmediateWin32Viewer G4OpenGLImmediateXmViewer G4OpenGLImmediateXViewer G4OpenGLImmediateQtViewer G4OpenGLStoredQtViewer G4OpenGLStoredQtViewer G4OpenGLStoredWin32Viewer G4OpenGLStoredXmViewer G4OpenGLStoredXViewer G4OpenGLImmediateWin32Viewer G4OpenGLStoredWin32Viewer G4OpenGLImmediateXViewer G4OpenGLStoredXViewer G4OpenGLXmViewer

Public Member Functions

void ClearView ()
 
void printEPS ()
 
- Public Member Functions inherited from G4VViewer
 G4VViewer (G4VSceneHandler &, G4int id, const G4String &name="")
 
virtual ~G4VViewer ()
 
virtual void Initialise ()
 
virtual void DrawView ()=0
 
void RefreshView ()
 
virtual void ShowView ()
 
virtual void FinishView ()
 
const G4StringGetName () const
 
const G4StringGetShortName () const
 
void SetName (const G4String &)
 
G4int GetViewId () const
 
G4VSceneHandlerGetSceneHandler () const
 
const G4ViewParametersGetViewParameters () const
 
const G4ViewParametersGetDefaultViewParameters () const
 
virtual const std::vector
< G4ModelingParameters::VisAttributesModifier > * 
GetPrivateVisAttributesModifiers () const
 
void SetViewParameters (const G4ViewParameters &vp)
 
void SetDefaultViewParameters (const G4ViewParameters &vp)
 
const G4VisAttributesGetApplicableVisAttributes (const G4VisAttributes *) const
 
void SetNeedKernelVisit (G4bool need)
 
void NeedKernelVisit ()
 
void ProcessView ()
 

Protected Member Functions

 G4OpenGLViewer (G4OpenGLSceneHandler &scene)
 
virtual ~G4OpenGLViewer ()
 
void SetView ()
 
void ResetView ()
 
virtual void DrawText (const G4Text &)
 
void ChangePointSize (G4double size)
 
void ChangeLineWidth (G4double width)
 
void HaloingFirstPass ()
 
void HaloingSecondPass ()
 
void HLRFirstPass ()
 
void HLRSecondPass ()
 
void HLRThirdPass ()
 
void InitializeGLView ()
 
void ResizeGLView ()
 
void ResizeWindow (unsigned int, unsigned int)
 
void Pick (GLdouble x, GLdouble y)
 
virtual void CreateFontLists ()
 
void rotateScene (G4double dx, G4double dy)
 
void rotateSceneToggle (G4double dx, G4double dy)
 
void setPrintSize (G4int, G4int)
 
void setPrintFilename (G4String name, G4bool inc)
 
std::string getRealPrintFilename ()
 
unsigned int getWinWidth () const
 
unsigned int getWinHeight () const
 
G4bool sizeHasChanged ()
 
GLdouble getSceneNearWidth ()
 
GLdouble getSceneFarWidth ()
 
GLdouble getSceneDepth ()
 
G4bool isGl2psWriting ()
 

Protected Attributes

G4bool fPrintColour
 
G4bool fVectoredPs
 
G4OpenGLSceneHandlerfOpenGLSceneHandler
 
G4Colour background
 
G4bool transparency_enabled
 
G4bool antialiasing_enabled
 
G4bool haloing_enabled
 
G4double fStartTime
 
G4double fEndTime
 
G4double fFadeFactor
 
G4bool fDisplayHeadTime
 
G4double fDisplayHeadTimeX
 
G4double fDisplayHeadTimeY
 
G4double fDisplayHeadTimeSize
 
G4double fDisplayHeadTimeRed
 
G4double fDisplayHeadTimeGreen
 
G4double fDisplayHeadTimeBlue
 
G4bool fDisplayLightFront
 
G4double fDisplayLightFrontX
 
G4double fDisplayLightFrontY
 
G4double fDisplayLightFrontZ
 
G4double fDisplayLightFrontT
 
G4double fDisplayLightFrontRed
 
G4double fDisplayLightFrontGreen
 
G4double fDisplayLightFrontBlue
 
G4OpenGL2PSActionfGL2PSAction
 
G4double fRot_sens
 
G4double fPan_sens
 
- Protected Attributes inherited from G4VViewer
G4VSceneHandlerfSceneHandler
 
G4int fViewId
 
G4String fName
 
G4String fShortName
 
G4ViewParameters fVP
 
G4ViewParameters fDefaultVP
 
G4bool fNeedKernelVisit
 

Private Member Functions

 G4OpenGLViewer (const G4OpenGLViewer &)
 
G4OpenGLVieweroperator= (const G4OpenGLViewer &)
 
void rotateSceneThetaPhi (G4double dx, G4double dy)
 
void rotateSceneInViewDirection (G4double dx, G4double dy)
 
bool printGl2PS ()
 
G4int getRealPrintSizeX ()
 
G4int getRealPrintSizeY ()
 
GLubyte * grabPixels (int inColor, unsigned int width, unsigned int height)
 
bool printNonVectoredEPS ()
 
bool printVectoredEPS ()
 

Private Attributes

unsigned int fWinSize_x
 
unsigned int fWinSize_y
 
G4float fPointSize
 
G4bool fSizeHasChanged
 
int fGl2psDefaultLineWith
 
int fGl2psDefaultPointSize
 

Static Private Attributes

static G4int fPrintSizeX
 
static G4int fPrintSizeY
 
static G4String fPrintFilename
 
static int fPrintFilenameIndex
 

Friends

class G4OpenGLSceneHandler
 
class G4OpenGLImmediateSceneHandler
 
class G4OpenGLStoredSceneHandler
 
class G4OpenGLFileSceneHandler
 
class G4OpenGLViewerMessenger
 

Constructor & Destructor Documentation

G4OpenGLViewer ( G4OpenGLSceneHandler scene)
protected
virtual ~G4OpenGLViewer ( )
protectedvirtual

Member Function Documentation

void ClearView ( )
virtual

Implements G4VViewer.

void printEPS ( )
G4OpenGLViewer& operator= ( const G4OpenGLViewer )
private
void SetView ( )
protectedvirtual

Implements G4VViewer.

Reimplemented in G4OpenGLXViewer, and G4OpenGLWin32Viewer.

void ResetView ( )
protectedvirtual

Reimplemented from G4VViewer.

Reimplemented in G4OpenGLXmViewer.

virtual void DrawText ( const G4Text )
protectedvirtual

Reimplemented in G4OpenGLQtViewer, and G4OpenGLXViewer.

void ChangePointSize ( G4double  size)
protected
void ChangeLineWidth ( G4double  width)
protected
void HaloingFirstPass ( )
protected
void HaloingSecondPass ( )
protected
void HLRFirstPass ( )
protected
void HLRSecondPass ( )
protected
void HLRThirdPass ( )
protected
void InitializeGLView ( )
protected
void ResizeGLView ( )
protected
void ResizeWindow ( unsigned  int,
unsigned  int 
)
protected
void Pick ( GLdouble  x,
GLdouble  y 
)
protected
virtual void CreateFontLists ( )
protectedvirtual

Reimplemented in G4OpenGLXViewer.

void rotateScene ( G4double  dx,
G4double  dy 
)
protected
void rotateSceneToggle ( G4double  dx,
G4double  dy 
)
protected
void setPrintSize ( G4int  ,
G4int   
)
protected
void setPrintFilename ( G4String  name,
G4bool  inc 
)
protected
std::string getRealPrintFilename ( )
protected
unsigned int getWinWidth ( ) const
protected
unsigned int getWinHeight ( ) const
protected
G4bool sizeHasChanged ( )
protected
GLdouble getSceneNearWidth ( )
protected
GLdouble getSceneFarWidth ( )
protected
GLdouble getSceneDepth ( )
protected
G4bool isGl2psWriting ( )
protected
void rotateSceneThetaPhi ( G4double  dx,
G4double  dy 
)
private
void rotateSceneInViewDirection ( G4double  dx,
G4double  dy 
)
private
bool printGl2PS ( )
private
G4int getRealPrintSizeX ( )
private
G4int getRealPrintSizeY ( )
private
GLubyte* grabPixels ( int  inColor,
unsigned int  width,
unsigned int  height 
)
private
bool printNonVectoredEPS ( )
private
bool printVectoredEPS ( )
private

Friends And Related Function Documentation

friend class G4OpenGLSceneHandler
friend
friend class G4OpenGLImmediateSceneHandler
friend
friend class G4OpenGLStoredSceneHandler
friend
friend class G4OpenGLFileSceneHandler
friend
friend class G4OpenGLViewerMessenger
friend

Member Data Documentation

G4bool fPrintColour
protected
G4bool fVectoredPs
protected
G4OpenGLSceneHandler& fOpenGLSceneHandler
protected
G4Colour background
protected
G4bool transparency_enabled
protected
G4bool antialiasing_enabled
protected
G4bool haloing_enabled
protected
G4double fStartTime
protected
G4double fEndTime
protected
G4double fFadeFactor
protected
G4bool fDisplayHeadTime
protected
G4double fDisplayHeadTimeX
protected
G4double fDisplayHeadTimeY
protected
G4double fDisplayHeadTimeSize
protected
G4double fDisplayHeadTimeRed
protected
G4double fDisplayHeadTimeGreen
protected
G4double fDisplayHeadTimeBlue
protected
G4bool fDisplayLightFront
protected
G4double fDisplayLightFrontX
protected
G4double fDisplayLightFrontY
protected
G4double fDisplayLightFrontZ
protected
G4double fDisplayLightFrontT
protected
G4double fDisplayLightFrontRed
protected
G4double fDisplayLightFrontGreen
protected
G4double fDisplayLightFrontBlue
protected
G4OpenGL2PSAction* fGL2PSAction
protected
G4double fRot_sens
protected
G4double fPan_sens
protected
G4int fPrintSizeX
staticprivate
G4int fPrintSizeY
staticprivate
G4String fPrintFilename
staticprivate
int fPrintFilenameIndex
staticprivate
unsigned int fWinSize_x
private
unsigned int fWinSize_y
private
G4float fPointSize
private
G4bool fSizeHasChanged
private
int fGl2psDefaultLineWith
private
int fGl2psDefaultPointSize
private