Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VRML1FileViewer Class Reference

#include <G4VRML1FileViewer.hh>

+ Inheritance diagram for G4VRML1FileViewer:

Public Member Functions

 G4VRML1FileViewer (G4VRML1FileSceneHandler &scene, const G4String &name="")
 
virtual ~G4VRML1FileViewer ()
 
void ClearView ()
 
void DrawView ()
 
void ShowView ()
 
void FinishView ()
 
- Public Member Functions inherited from G4VViewer
 G4VViewer (G4VSceneHandler &, G4int id, const G4String &name="")
 
virtual ~G4VViewer ()
 
virtual void Initialise ()
 
virtual void ResetView ()
 
virtual void SetView ()=0
 
virtual void ClearView ()=0
 
virtual void DrawView ()=0
 
void RefreshView ()
 
virtual void ShowView ()
 
virtual void FinishView ()
 
std::vector< G4ThreeVectorComputeFlyThrough (G4Vector3D *)
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4VViewer
void SetTouchable (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath)
 
void TouchableSetVisibility (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath, G4bool visibility)
 
void TouchableSetColour (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath, const G4Colour &)
 
- Protected Attributes inherited from G4VViewer
G4VSceneHandlerfSceneHandler
 
G4int fViewId
 
G4String fName
 
G4String fShortName
 
G4ViewParameters fVP
 
G4ViewParameters fDefaultVP
 
G4bool fNeedKernelVisit
 

Detailed Description

Definition at line 39 of file G4VRML1FileViewer.hh.

Constructor & Destructor Documentation

◆ G4VRML1FileViewer()

G4VRML1FileViewer::G4VRML1FileViewer ( G4VRML1FileSceneHandler scene,
const G4String name = "" 
)

Definition at line 41 of file G4VRML1FileViewer.cc.

42 :
43 G4VViewer(sceneHandler,
44 sceneHandler.IncrementViewCount(),
45 name),
46 fSceneHandler(sceneHandler)
47{}

◆ ~G4VRML1FileViewer()

G4VRML1FileViewer::~G4VRML1FileViewer ( )
virtual

Definition at line 49 of file G4VRML1FileViewer.cc.

50{}

Member Function Documentation

◆ ClearView()

void G4VRML1FileViewer::ClearView ( void  )
virtual

Implements G4VViewer.

Definition at line 75 of file G4VRML1FileViewer.cc.

76{
77 #if defined DEBUG_FR_VIEW
79 G4cout << "***** G4VRML1File1View::ClearView()" << G4endl;
80 #endif
81 if(fSceneHandler.fFlagDestOpen) {
82 fSceneHandler.fDest.close();
83 // Re-open with same filename...
84 fSceneHandler.fDest.open(fSceneHandler.fVRMLFileName);
85 fSceneHandler.fDest << "#VRML V1.0 ascii" << "\n";
86 fSceneHandler.fDest << "# Generated by VRML 1.0 driver of GEANT4\n" << "\n";
87 }
88}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()

◆ DrawView()

void G4VRML1FileViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 60 of file G4VRML1FileViewer.cc.

61{
62#if defined DEBUG_FR_VIEW
64 G4cout << "***** G4VRML1FileViewer::DrawView()" << G4endl;
65#endif
66
67 fSceneHandler.VRMLBeginModeling();
68
69 // Here is a minimal DrawView() function.
72 FinishView();
73}
void ProcessView()
Definition: G4VViewer.cc:104
void NeedKernelVisit()
Definition: G4VViewer.cc:77

◆ FinishView()

void G4VRML1FileViewer::FinishView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 99 of file G4VRML1FileViewer.cc.

100{
101#if defined DEBUG_FR_VIEW
103 G4cout << "***** G4VRML1FileViewer::FinishView(): No effects" << G4endl;
104#endif
105}

Referenced by DrawView().

◆ ShowView()

void G4VRML1FileViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 90 of file G4VRML1FileViewer.cc.

91{
92#if defined DEBUG_FR_VIEW
94 G4cout << "***** G4VRML1FileViewer::ShowView()" << G4endl;
95#endif
96 fSceneHandler.VRMLEndModeling();
97}

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