Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4OpenGLSceneHandler.hh>
Public Types | |
enum | FlushAction { endOfEvent , endOfRun , eachPrimitive , NthPrimitive , NthEvent , never } |
Public Types inherited from G4VSceneHandler | |
enum | MarkerSizeType { world , screen } |
Public Member Functions | |
virtual void | BeginPrimitives (const G4Transform3D &objectTransformation) |
virtual void | EndPrimitives () |
virtual void | BeginPrimitives2D (const G4Transform3D &objectTransformation) |
virtual void | EndPrimitives2D () |
void | AddPrimitive (const G4Polyline &) |
void | AddPrimitive (const G4Polymarker &) |
void | AddPrimitive (const G4Text &) |
void | AddPrimitive (const G4Circle &) |
void | AddPrimitive (const G4Square &) |
void | AddPrimitivesCircle (const std::vector< G4VMarker > &) |
void | AddPrimitivesSquare (const std::vector< G4VMarker > &) |
void | AddPrimitive (const G4Polyhedron &) |
void | PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &) |
void | AddSolid (const G4Box &) |
void | AddSolid (const G4Cons &) |
void | AddSolid (const G4Tubs &) |
void | AddSolid (const G4Trd &) |
void | AddSolid (const G4Trap &) |
void | AddSolid (const G4Sphere &) |
void | AddSolid (const G4Para &) |
void | AddSolid (const G4Torus &) |
void | AddSolid (const G4Polycone &) |
void | AddSolid (const G4Polyhedra &) |
void | AddSolid (const G4Orb &) |
void | AddSolid (const G4Ellipsoid &) |
void | AddSolid (const G4TessellatedSolid &) |
void | AddSolid (const G4VSolid &) |
void | AddCompound (const G4VTrajectory &) |
void | AddCompound (const G4VHit &) |
void | AddCompound (const G4VDigi &) |
void | AddCompound (const G4THitsMap< G4double > &) |
void | AddCompound (const G4THitsMap< G4StatDouble > &) |
void | AddCompound (const G4Mesh &) |
virtual void | AddPrimitive (const G4Polyline &)=0 |
virtual void | AddPrimitive (const G4Text &)=0 |
virtual void | AddPrimitive (const G4Circle &)=0 |
virtual void | AddPrimitive (const G4Square &)=0 |
virtual void | AddPrimitive (const G4Polymarker &) |
virtual void | AddPrimitive (const G4Polyhedron &)=0 |
virtual void | AddPrimitive (const G4Plotter &) |
Public Member Functions inherited from G4VSceneHandler | |
G4VSceneHandler (G4VGraphicsSystem &system, G4int id, const G4String &name="") | |
virtual | ~G4VSceneHandler () |
virtual void | PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &) |
virtual void | PostAddSolid () |
virtual void | AddSolid (const G4Box &) |
virtual void | AddSolid (const G4Cons &) |
virtual void | AddSolid (const G4Orb &) |
virtual void | AddSolid (const G4Para &) |
virtual void | AddSolid (const G4Sphere &) |
virtual void | AddSolid (const G4Torus &) |
virtual void | AddSolid (const G4Trap &) |
virtual void | AddSolid (const G4Trd &) |
virtual void | AddSolid (const G4Tubs &) |
virtual void | AddSolid (const G4Ellipsoid &) |
virtual void | AddSolid (const G4Polycone &) |
virtual void | AddSolid (const G4Polyhedra &) |
virtual void | AddSolid (const G4TessellatedSolid &) |
virtual void | AddSolid (const G4VSolid &) |
virtual void | AddCompound (const G4VTrajectory &) |
virtual void | AddCompound (const G4VHit &) |
virtual void | AddCompound (const G4VDigi &) |
virtual void | AddCompound (const G4THitsMap< G4double > &) |
virtual void | AddCompound (const G4THitsMap< G4StatDouble > &) |
virtual void | AddCompound (const G4Mesh &) |
virtual void | BeginModeling () |
virtual void | EndModeling () |
virtual void | BeginPrimitives (const G4Transform3D &objectTransformation=G4Transform3D()) |
virtual void | EndPrimitives () |
virtual void | BeginPrimitives2D (const G4Transform3D &objectTransformation=G4Transform3D()) |
virtual void | EndPrimitives2D () |
virtual void | AddPrimitive (const G4Polyline &)=0 |
virtual void | AddPrimitive (const G4Text &)=0 |
virtual void | AddPrimitive (const G4Circle &)=0 |
virtual void | AddPrimitive (const G4Square &)=0 |
virtual void | AddPrimitive (const G4Polymarker &) |
virtual void | AddPrimitive (const G4Polyhedron &)=0 |
virtual void | AddPrimitive (const G4Plotter &) |
virtual const G4VisExtent & | GetExtent () const |
const G4String & | GetName () const |
G4int | GetSceneHandlerId () const |
G4int | GetViewCount () const |
G4VGraphicsSystem * | GetGraphicsSystem () const |
G4Scene * | GetScene () const |
const G4ViewerList & | GetViewerList () const |
G4VModel * | GetModel () const |
G4VViewer * | GetCurrentViewer () const |
G4bool | GetMarkForClearingTransientStore () const |
G4bool | IsReadyForTransients () const |
G4bool | GetTransientsDrawnThisEvent () const |
G4bool | GetTransientsDrawnThisRun () const |
const G4Transform3D & | GetObjectTransformation () const |
void | SetName (const G4String &) |
void | SetCurrentViewer (G4VViewer *) |
virtual void | SetScene (G4Scene *) |
G4ViewerList & | SetViewerList () |
void | SetModel (G4VModel *) |
void | SetMarkForClearingTransientStore (G4bool) |
void | SetTransientsDrawnThisEvent (G4bool) |
void | SetTransientsDrawnThisRun (G4bool) |
void | SetObjectTransformation (const G4Transform3D &) |
const G4Colour & | GetColour () |
const G4Colour & | GetColor () |
const G4Colour & | GetColour (const G4Visible &) |
const G4Colour & | GetColor (const G4Visible &) |
const G4Colour & | GetTextColour (const G4Text &) |
const G4Colour & | GetTextColor (const G4Text &) |
G4double | GetLineWidth (const G4VisAttributes *) |
G4ViewParameters::DrawingStyle | GetDrawingStyle (const G4VisAttributes *) |
G4int | GetNumberOfCloudPoints (const G4VisAttributes *) const |
G4bool | GetAuxEdgeVisible (const G4VisAttributes *) |
G4int | GetNoOfSides (const G4VisAttributes *) |
G4double | GetMarkerSize (const G4VMarker &, MarkerSizeType &) |
G4double | GetMarkerDiameter (const G4VMarker &, MarkerSizeType &) |
G4double | GetMarkerRadius (const G4VMarker &, MarkerSizeType &) |
G4ModelingParameters * | CreateModelingParameters () |
void | DrawEvent (const G4Event *) |
void | DrawEndOfRunModels () |
template<class T > | |
void | AddSolidT (const T &solid) |
template<class T > | |
void | AddSolidWithAuxiliaryEdges (const T &solid) |
G4int | IncrementViewCount () |
virtual void | ClearStore () |
virtual void | ClearTransientStore () |
void | AddViewerToList (G4VViewer *pView) |
void | RemoveViewerFromList (G4VViewer *pView) |
Public Member Functions inherited from G4VGraphicsScene | |
G4VGraphicsScene () | |
virtual | ~G4VGraphicsScene () |
virtual void | PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &visAttribs)=0 |
virtual void | PostAddSolid ()=0 |
virtual void | AddSolid (const G4Box &)=0 |
virtual void | AddSolid (const G4Cons &)=0 |
virtual void | AddSolid (const G4Orb &)=0 |
virtual void | AddSolid (const G4Para &)=0 |
virtual void | AddSolid (const G4Sphere &)=0 |
virtual void | AddSolid (const G4Torus &)=0 |
virtual void | AddSolid (const G4Trap &)=0 |
virtual void | AddSolid (const G4Trd &)=0 |
virtual void | AddSolid (const G4Tubs &)=0 |
virtual void | AddSolid (const G4Ellipsoid &)=0 |
virtual void | AddSolid (const G4Polycone &)=0 |
virtual void | AddSolid (const G4Polyhedra &)=0 |
virtual void | AddSolid (const G4TessellatedSolid &)=0 |
virtual void | AddSolid (const G4VSolid &)=0 |
virtual void | AddCompound (const G4VTrajectory &)=0 |
virtual void | AddCompound (const G4VHit &)=0 |
virtual void | AddCompound (const G4VDigi &)=0 |
virtual void | AddCompound (const G4THitsMap< G4double > &)=0 |
virtual void | AddCompound (const G4THitsMap< G4StatDouble > &)=0 |
virtual void | AddCompound (const G4Mesh &)=0 |
virtual void | BeginPrimitives (const G4Transform3D &objectTransformation=G4Transform3D())=0 |
virtual void | EndPrimitives ()=0 |
virtual void | BeginPrimitives2D (const G4Transform3D &objectTransformation=G4Transform3D())=0 |
virtual void | EndPrimitives2D ()=0 |
virtual void | AddPrimitive (const G4Polyline &)=0 |
virtual void | AddPrimitive (const G4Text &)=0 |
virtual void | AddPrimitive (const G4Circle &)=0 |
virtual void | AddPrimitive (const G4Square &)=0 |
virtual void | AddPrimitive (const G4Polymarker &)=0 |
virtual void | AddPrimitive (const G4Polyhedron &)=0 |
virtual void | AddPrimitive (const G4Plotter &)=0 |
virtual const G4VisExtent & | GetExtent () const |
Static Public Member Functions | |
static G4int | GetEntitiesFlushInterval () |
static FlushAction | GetFlushAction () |
static void | SetEntitiesFlushInterval (G4int interval) |
static void | SetFlushAction (FlushAction action) |
Protected Member Functions | |
G4OpenGLSceneHandler (G4VGraphicsSystem &system, G4int id, const G4String &name="") | |
virtual | ~G4OpenGLSceneHandler () |
void | ProcessScene () |
G4DisplacedSolid * | CreateSectionSolid () |
G4DisplacedSolid * | CreateCutawaySolid () |
void | ClearAndDestroyAtts () |
void | ScaledFlush () |
Protected Member Functions inherited from G4VSceneHandler | |
virtual void | ProcessScene () |
virtual void | RequestPrimitives (const G4VSolid &solid) |
virtual G4DisplacedSolid * | CreateSectionSolid () |
virtual G4DisplacedSolid * | CreateCutawaySolid () |
void | LoadAtts (const G4Visible &, G4AttHolder *) |
void | StandardSpecialMeshRendering (const G4Mesh &) |
void | Draw3DRectMeshAsDots (const G4Mesh &) |
void | Draw3DRectMeshAsSurfaces (const G4Mesh &) |
void | DrawTetMeshAsDots (const G4Mesh &) |
void | DrawTetMeshAsSurfaces (const G4Mesh &) |
G4ThreeVector | GetPointInBox (const G4ThreeVector &pos, G4double halfX, G4double halfY, G4double halfZ) const |
G4ThreeVector | GetPointInTet (const std::vector< G4ThreeVector > &vertices) const |
Protected Attributes | |
GLuint | fPickName |
std::map< GLuint, G4AttHolder * > | fPickMap |
G4bool | fThreePassCapable |
G4bool | fSecondPassForTransparencyRequested |
G4bool | fSecondPassForTransparency |
G4bool | fThirdPassForNonHiddenMarkersRequested |
G4bool | fThirdPassForNonHiddenMarkers |
bool | fEdgeFlag |
Protected Attributes inherited from G4VSceneHandler | |
G4VGraphicsSystem & | fSystem |
const G4int | fSceneHandlerId |
G4String | fName |
G4int | fViewCount |
G4ViewerList | fViewerList |
G4VViewer * | fpViewer |
G4Scene * | fpScene |
G4bool | fMarkForClearingTransientStore |
G4bool | fReadyForTransients |
G4bool | fTransientsDrawnThisEvent |
G4bool | fTransientsDrawnThisRun |
G4bool | fProcessingSolid |
G4bool | fProcessing2D |
G4VModel * | fpModel |
G4Transform3D | fObjectTransformation |
G4int | fNestingDepth |
const G4VisAttributes * | fpVisAttribs |
const G4Transform3D | fIdentityTransformation |
Static Protected Attributes | |
static FlushAction | fFlushAction = G4OpenGLSceneHandler::NthEvent |
static G4int | fEntitiesFlushInterval = 100 |
static const GLubyte | fStippleMaskHashed [128] |
Friends | |
class | G4OpenGLViewer |
Definition at line 46 of file G4OpenGLSceneHandler.hh.
Enumerator | |
---|---|
endOfEvent | |
endOfRun | |
eachPrimitive | |
NthPrimitive | |
NthEvent | |
never |
Definition at line 89 of file G4OpenGLSceneHandler.hh.
|
protected |
Definition at line 83 of file G4OpenGLSceneHandler.cc.
|
protectedvirtual |
Definition at line 100 of file G4OpenGLSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1026 of file G4OpenGLSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1018 of file G4OpenGLSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1022 of file G4OpenGLSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1014 of file G4OpenGLSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1010 of file G4OpenGLSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 1006 of file G4OpenGLSceneHandler.cc.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler, G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 554 of file G4OpenGLSceneHandler.cc.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler.
Definition at line 193 of file G4VSceneHandler.cc.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler, G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 571 of file G4OpenGLSceneHandler.cc.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler, G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 345 of file G4OpenGLSceneHandler.cc.
Referenced by AddPrimitive(), G4OpenGLImmediateSceneHandler::AddPrimitive(), and G4OpenGLStoredSceneHandler::AddPrimitive().
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler.
Definition at line 191 of file G4VSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Reimplemented in G4OpenGLImmediateSceneHandler, G4OpenGLStoredSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 396 of file G4OpenGLSceneHandler.cc.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler, G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 562 of file G4OpenGLSceneHandler.cc.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler, G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 544 of file G4OpenGLSceneHandler.cc.
|
virtual |
Implements G4VSceneHandler.
Reimplemented in G4OpenGLStoredSceneHandler.
void G4OpenGLSceneHandler::AddPrimitivesCircle | ( | const std::vector< G4VMarker > & | ) |
void G4OpenGLSceneHandler::AddPrimitivesSquare | ( | const std::vector< G4VMarker > & | ) |
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
|
virtual |
Reimplemented from G4VSceneHandler.
Reimplemented in G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 305 of file G4OpenGLSceneHandler.cc.
Referenced by G4OpenGLImmediateSceneHandler::BeginPrimitives(), and G4OpenGLStoredSceneHandler::BeginPrimitives().
|
virtual |
Reimplemented from G4VSceneHandler.
Reimplemented in G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 316 of file G4OpenGLSceneHandler.cc.
Referenced by G4OpenGLImmediateSceneHandler::BeginPrimitives2D(), and G4OpenGLStoredSceneHandler::BeginPrimitives2D().
|
protected |
Definition at line 105 of file G4OpenGLSceneHandler.cc.
Referenced by G4OpenGLStoredSceneHandler::ClearStore().
|
protectedvirtual |
Reimplemented from G4VSceneHandler.
Definition at line 336 of file G4OpenGLSceneHandler.cc.
|
protectedvirtual |
Reimplemented from G4VSceneHandler.
Definition at line 327 of file G4OpenGLSceneHandler.cc.
|
virtual |
Reimplemented from G4VSceneHandler.
Reimplemented in G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 311 of file G4OpenGLSceneHandler.cc.
Referenced by G4OpenGLImmediateSceneHandler::EndPrimitives(), and G4OpenGLStoredSceneHandler::EndPrimitives().
|
virtual |
Reimplemented from G4VSceneHandler.
Reimplemented in G4OpenGLImmediateSceneHandler, and G4OpenGLStoredSceneHandler.
Definition at line 322 of file G4OpenGLSceneHandler.cc.
Referenced by G4OpenGLImmediateSceneHandler::EndPrimitives2D(), and G4OpenGLStoredSceneHandler::EndPrimitives2D().
|
inlinestatic |
Definition at line 97 of file G4OpenGLSceneHandler.hh.
|
inlinestatic |
Definition at line 99 of file G4OpenGLSceneHandler.hh.
|
virtual |
Reimplemented from G4VSceneHandler.
Definition at line 298 of file G4OpenGLSceneHandler.cc.
|
protectedvirtual |
Reimplemented from G4VSceneHandler.
Definition at line 273 of file G4OpenGLSceneHandler.cc.
|
protected |
Definition at line 116 of file G4OpenGLSceneHandler.cc.
Referenced by G4OpenGLImmediateSceneHandler::EndPrimitives(), G4OpenGLStoredSceneHandler::EndPrimitives(), G4OpenGLImmediateSceneHandler::EndPrimitives2D(), and G4OpenGLStoredSceneHandler::EndPrimitives2D().
|
inlinestatic |
Definition at line 101 of file G4OpenGLSceneHandler.hh.
Referenced by G4OpenGLViewerMessenger::SetNewValue().
|
inlinestatic |
Definition at line 103 of file G4OpenGLSceneHandler.hh.
Referenced by G4OpenGLViewerMessenger::SetNewValue().
|
friend |
Definition at line 48 of file G4OpenGLSceneHandler.hh.
|
protected |
Definition at line 177 of file G4OpenGLSceneHandler.hh.
Referenced by AddPrimitive().
|
staticprotected |
Definition at line 165 of file G4OpenGLSceneHandler.hh.
Referenced by GetEntitiesFlushInterval(), ScaledFlush(), and SetEntitiesFlushInterval().
|
staticprotected |
Definition at line 163 of file G4OpenGLSceneHandler.hh.
Referenced by GetFlushAction(), ScaledFlush(), and SetFlushAction().
|
protected |
Definition at line 158 of file G4OpenGLSceneHandler.hh.
Referenced by ClearAndDestroyAtts(), and G4OpenGLViewer::GetPickDetails().
|
protected |
Definition at line 157 of file G4OpenGLSceneHandler.hh.
Referenced by G4OpenGLStoredSceneHandler::EndModeling(), G4OpenGLStoredSceneHandler::PO::operator=(), and G4OpenGLStoredSceneHandler::TO::operator=().
|
protected |
Definition at line 171 of file G4OpenGLSceneHandler.hh.
Referenced by ProcessScene().
|
protected |
Definition at line 170 of file G4OpenGLSceneHandler.hh.
Referenced by ProcessScene().
|
staticprotected |
Definition at line 176 of file G4OpenGLSceneHandler.hh.
|
protected |
Definition at line 174 of file G4OpenGLSceneHandler.hh.
Referenced by ProcessScene().
|
protected |
Definition at line 173 of file G4OpenGLSceneHandler.hh.
Referenced by ProcessScene().
|
protected |
Definition at line 168 of file G4OpenGLSceneHandler.hh.
Referenced by ProcessScene().