Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4RayTracerSceneHandler Class Reference

#include <G4RayTracerSceneHandler.hh>

Inheritance diagram for G4RayTracerSceneHandler:
Collaboration diagram for G4RayTracerSceneHandler:

Public Member Functions

 G4RayTracerSceneHandler (G4VGraphicsSystem &system, const G4String &name="")
 
virtual ~G4RayTracerSceneHandler ()
 
void AddPrimitive (const G4Polyline &)
 
void AddPrimitive (const G4Text &)
 
void AddPrimitive (const G4Circle &)
 
void AddPrimitive (const G4Square &)
 
void AddPrimitive (const G4Polyhedron &)
 
void AddPrimitive (const G4Polymarker &)
 
void AddPrimitive (const G4Scale &)
 
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 G4VSolid &)
 
void AddCompound (const G4VTrajectory &)
 
void AddCompound (const G4VHit &)
 
void AddCompound (const G4VDigi &)
 
void AddCompound (const G4THitsMap< G4double > &)
 
void AddCompound (const G4THitsMap< G4StatDouble > &)
 
- 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 BeginModeling ()
 
virtual void EndModeling ()
 
virtual void BeginPrimitives (const G4Transform3D &objectTransformation)
 
virtual void EndPrimitives ()
 
virtual void BeginPrimitives2D (const G4Transform3D &objectTransformation)
 
virtual void EndPrimitives2D ()
 
virtual const G4VisExtentGetExtent () const
 
const G4StringGetName () const
 
G4int GetSceneHandlerId () const
 
G4int GetViewCount () const
 
G4VGraphicsSystemGetGraphicsSystem () const
 
G4SceneGetScene () const
 
const G4ViewerListGetViewerList () const
 
G4VModelGetModel () const
 
G4VViewerGetCurrentViewer () const
 
G4bool GetMarkForClearingTransientStore () const
 
G4bool IsReadyForTransients () const
 
G4bool GetTransientsDrawnThisEvent () const
 
G4bool GetTransientsDrawnThisRun () const
 
const G4Transform3DGetObjectTransformation () const
 
void SetName (const G4String &)
 
void SetCurrentViewer (G4VViewer *)
 
virtual void SetScene (G4Scene *)
 
G4ViewerListSetViewerList ()
 
void SetModel (G4VModel *)
 
void SetMarkForClearingTransientStore (G4bool)
 
void SetTransientsDrawnThisEvent (G4bool)
 
void SetTransientsDrawnThisRun (G4bool)
 
void SetObjectTransformation (const G4Transform3D &)
 
const G4ColourGetColour ()
 
const G4ColourGetColor ()
 
const G4ColourGetTextColour (const G4Text &)
 
const G4ColourGetTextColor (const G4Text &)
 
G4double GetLineWidth (const G4VisAttributes *)
 
G4ViewParameters::DrawingStyle GetDrawingStyle (const G4VisAttributes *)
 
G4bool GetAuxEdgeVisible (const G4VisAttributes *)
 
G4int GetNoOfSides (const G4VisAttributes *)
 
G4double GetMarkerSize (const G4VMarker &, MarkerSizeType &)
 
G4double GetMarkerDiameter (const G4VMarker &, MarkerSizeType &)
 
G4double GetMarkerRadius (const G4VMarker &, MarkerSizeType &)
 
G4ModelingParametersCreateModelingParameters ()
 
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 ()
 

Additional Inherited Members

- Public Types inherited from G4VSceneHandler
enum  MarkerSizeType { world, screen }
 
- Protected Member Functions inherited from G4VSceneHandler
virtual void ProcessScene ()
 
virtual void RequestPrimitives (const G4VSolid &solid)
 
virtual G4VSolidCreateSectionSolid ()
 
virtual G4VSolidCreateCutawaySolid ()
 
void LoadAtts (const G4Visible &, G4AttHolder *)
 
- Protected Attributes inherited from G4VSceneHandler
G4VGraphicsSystemfSystem
 
const G4int fSceneHandlerId
 
G4String fName
 
G4int fViewCount
 
G4ViewerList fViewerList
 
G4VViewerfpViewer
 
G4ScenefpScene
 
G4bool fMarkForClearingTransientStore
 
G4bool fReadyForTransients
 
G4bool fTransientsDrawnThisEvent
 
G4bool fTransientsDrawnThisRun
 
G4bool fProcessingSolid
 
G4bool fProcessing2D
 
G4VModelfpModel
 
G4Transform3D fObjectTransformation
 
G4int fNestingDepth
 
const G4VisAttributesfpVisAttribs
 
const G4Transform3D fIdentityTransformation
 

Detailed Description

Definition at line 36 of file G4RayTracerSceneHandler.hh.

Constructor & Destructor Documentation

G4RayTracerSceneHandler::G4RayTracerSceneHandler ( G4VGraphicsSystem system,
const G4String name = "" 
)

Definition at line 32 of file G4RayTracerSceneHandler.cc.

33  :
34  G4VSceneHandler(system, fSceneIdCount++, name)
35 {
36  // Ray Tracer does not use the vis concept of scene (G4Scene) - keep
37  // vis manager happy when someone opens a ray tracer with "/vis/open
38  // RayTracer" but uses the ray tracer with "/vis/rayTracer" commands
39  // before creating any scenes, for example, instead of using
40  // "/vis/drawVolume"...
42  if(visManager) {
43  G4Scene* pScene = visManager->GetCurrentScene();
44  if (!pScene) {
45  // Create new scene like /vis/scene/create...
46  fpScene = new G4Scene("dummy-ray-tracer-scene");
47  // Add dummy run-duration model to avoid world being added and
48  // notifyHandler being invoked...
50  // Add to vis manager list; ownership thereby passes to vis manager...
51  visManager->SetSceneList().push_back(fpScene);
52  // ...and make current...
53  visManager->SetCurrentScene(fpScene);
54  }
55  }
56 }
void SetCurrentScene(G4Scene *)
G4VSceneHandler(G4VGraphicsSystem &system, G4int id, const G4String &name="")
G4SceneList & SetSceneList()
static G4VisManager * GetInstance()
G4bool AddWorldIfEmpty(G4bool warn=false)
Definition: G4Scene.cc:156
G4Scene * GetCurrentScene() const

Here is the call graph for this function:

G4RayTracerSceneHandler::~G4RayTracerSceneHandler ( )
virtual

Definition at line 58 of file G4RayTracerSceneHandler.cc.

59 {}

Member Function Documentation

void G4RayTracerSceneHandler::AddCompound ( const G4VTrajectory )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 65 of file G4RayTracerSceneHandler.hh.

65 {}
void G4RayTracerSceneHandler::AddCompound ( const G4VHit )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 66 of file G4RayTracerSceneHandler.hh.

66 {}
void G4RayTracerSceneHandler::AddCompound ( const G4VDigi )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 67 of file G4RayTracerSceneHandler.hh.

67 {}
void G4RayTracerSceneHandler::AddCompound ( const G4THitsMap< G4double > &  )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 68 of file G4RayTracerSceneHandler.hh.

68 {}
void G4RayTracerSceneHandler::AddCompound ( const G4THitsMap< G4StatDouble > &  )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 69 of file G4RayTracerSceneHandler.hh.

69 {}
void G4RayTracerSceneHandler::AddPrimitive ( const G4Polyline )
inlinevirtual

Implements G4VSceneHandler.

Definition at line 44 of file G4RayTracerSceneHandler.hh.

44 {}
void G4RayTracerSceneHandler::AddPrimitive ( const G4Text )
inlinevirtual

Implements G4VSceneHandler.

Definition at line 45 of file G4RayTracerSceneHandler.hh.

45 {}
void G4RayTracerSceneHandler::AddPrimitive ( const G4Circle )
inlinevirtual

Implements G4VSceneHandler.

Definition at line 46 of file G4RayTracerSceneHandler.hh.

46 {}
void G4RayTracerSceneHandler::AddPrimitive ( const G4Square )
inlinevirtual

Implements G4VSceneHandler.

Definition at line 47 of file G4RayTracerSceneHandler.hh.

47 {}
void G4RayTracerSceneHandler::AddPrimitive ( const G4Polyhedron )
inlinevirtual

Implements G4VSceneHandler.

Definition at line 48 of file G4RayTracerSceneHandler.hh.

48 {}
void G4RayTracerSceneHandler::AddPrimitive ( const G4Polymarker )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 49 of file G4RayTracerSceneHandler.hh.

49 {}
void G4RayTracerSceneHandler::AddPrimitive ( const G4Scale )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 50 of file G4RayTracerSceneHandler.hh.

50 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Box )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 52 of file G4RayTracerSceneHandler.hh.

52 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Cons )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 53 of file G4RayTracerSceneHandler.hh.

53 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Tubs )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 54 of file G4RayTracerSceneHandler.hh.

54 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Trd )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 55 of file G4RayTracerSceneHandler.hh.

55 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Trap )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 56 of file G4RayTracerSceneHandler.hh.

56 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Sphere )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 57 of file G4RayTracerSceneHandler.hh.

57 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Para )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 58 of file G4RayTracerSceneHandler.hh.

58 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Torus )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 59 of file G4RayTracerSceneHandler.hh.

59 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Polycone )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 60 of file G4RayTracerSceneHandler.hh.

60 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Polyhedra )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 61 of file G4RayTracerSceneHandler.hh.

61 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Orb )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 62 of file G4RayTracerSceneHandler.hh.

62 {}
void G4RayTracerSceneHandler::AddSolid ( const G4Ellipsoid )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 63 of file G4RayTracerSceneHandler.hh.

63 {}
void G4RayTracerSceneHandler::AddSolid ( const G4VSolid )
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 64 of file G4RayTracerSceneHandler.hh.

64 {}

The documentation for this class was generated from the following files: