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

#include <G4VRML1FileViewer.hh>

Inheritance diagram for G4VRML1FileViewer:
Collaboration 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 ()
 
void RefreshView ()
 
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 40 of file G4VRML1FileViewer.hh.

Constructor & Destructor Documentation

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

Definition at line 42 of file G4VRML1FileViewer.cc.

43  :
44  G4VViewer(sceneHandler,
45  sceneHandler.IncrementViewCount(),
46  name),
47  fSceneHandler(sceneHandler)
48 {}
const XML_Char * name
Definition: expat.h:151
G4VViewer(G4VSceneHandler &, G4int id, const G4String &name="")
Definition: G4VViewer.cc:46
G4VRML1FileViewer::~G4VRML1FileViewer ( )
virtual

Definition at line 50 of file G4VRML1FileViewer.cc.

51 {}

Member Function Documentation

void G4VRML1FileViewer::ClearView ( void  )
virtual

Implements G4VViewer.

Definition at line 76 of file G4VRML1FileViewer.cc.

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

Here is the call graph for this function:

void G4VRML1FileViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 61 of file G4VRML1FileViewer.cc.

62 {
63 #if defined DEBUG_FR_VIEW
65  G4cout << "***** G4VRML1FileViewer::DrawView()" << G4endl;
66 #endif
67 
68  fSceneHandler.VRMLBeginModeling();
69 
70  // Here is a minimal DrawView() function.
72  ProcessView();
73  FinishView();
74 }
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
void NeedKernelVisit()
Definition: G4VViewer.cc:78
#define G4endl
Definition: G4ios.hh:61
void ProcessView()
Definition: G4VViewer.cc:105

Here is the call graph for this function:

void G4VRML1FileViewer::FinishView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 100 of file G4VRML1FileViewer.cc.

101 {
102 #if defined DEBUG_FR_VIEW
104  G4cout << "***** G4VRML1FileViewer::FinishView(): No effects" << G4endl;
105 #endif
106 }
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Here is the caller graph for this function:

void G4VRML1FileViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 91 of file G4VRML1FileViewer.cc.

92 {
93 #if defined DEBUG_FR_VIEW
95  G4cout << "***** G4VRML1FileViewer::ShowView()" << G4endl;
96 #endif
97  fSceneHandler.VRMLEndModeling();
98 }
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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