Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VRML2FileViewer Class Reference

#include <G4VRML2FileViewer.hh>

Inheritance diagram for G4VRML2FileViewer:
Collaboration diagram for G4VRML2FileViewer:

Public Member Functions

 G4VRML2FileViewer (G4VRML2FileSceneHandler &scene, const G4String &name="")
 
virtual ~G4VRML2FileViewer ()
 
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 41 of file G4VRML2FileViewer.hh.

Constructor & Destructor Documentation

G4VRML2FileViewer::G4VRML2FileViewer ( G4VRML2FileSceneHandler scene,
const G4String name = "" 
)

Definition at line 45 of file G4VRML2FileViewer.cc.

46  :
47  G4VViewer(sceneHandler,
48  sceneHandler.IncrementViewCount(),
49  name),
50  fSceneHandler(sceneHandler),
51  fDest(sceneHandler.fDest)
52 {
53  fViewHalfAngle = 30. * deg;
54  fsin_VHA = std::sin ( fViewHalfAngle ) ;
55 }
const XML_Char * name
Definition: expat.h:151
G4VViewer(G4VSceneHandler &, G4int id, const G4String &name="")
Definition: G4VViewer.cc:46
static constexpr double deg
Definition: G4SIunits.hh:152
G4VRML2FileViewer::~G4VRML2FileViewer ( )
virtual

Definition at line 57 of file G4VRML2FileViewer.cc.

58 {}

Member Function Documentation

void G4VRML2FileViewer::ClearView ( void  )
virtual

Implements G4VViewer.

Definition at line 90 of file G4VRML2FileViewer.cc.

91 {
92 #if defined DEBUG_FR_VIEW
94  G4cout << "***** G4VRML2File1View::ClearView()" << G4endl;
95 #endif
96  if(fSceneHandler.fFlagDestOpen) {
97  fSceneHandler.fDest.close();
98  // Re-open with same filename...
99  fSceneHandler.fDest.open(fSceneHandler.fVRMLFileName);
100  fSceneHandler.fDest << "#VRML V2.0 utf8" << "\n";
101  fSceneHandler.fDest << "# Generated by VRML 2.0 driver of GEANT4\n" << "\n";
102  }
103 }
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void G4VRML2FileViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 72 of file G4VRML2FileViewer.cc.

73 {
74 #if defined DEBUG_FR_VIEW
76  G4cout << "***** G4VRML2FileViewer::DrawView()" << G4endl;
77 #endif
78 
79  fSceneHandler.VRMLBeginModeling() ;
80 
81  // Viewpoint node
82  SendViewParameters();
83 
84  // Here is a minimal DrawView() function.
86  ProcessView();
87  FinishView();
88 }
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 G4VRML2FileViewer::FinishView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 114 of file G4VRML2FileViewer.cc.

115 {
116 #if defined DEBUG_FR_VIEW
118  G4cout << "***** G4VRML2FileViewer::FinishView(): No effects" << G4endl;
119 #endif
120 }
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 G4VRML2FileViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 105 of file G4VRML2FileViewer.cc.

106 {
107 #if defined DEBUG_FR_VIEW
109  G4cout << "***** G4VRML2FileViewer::ShowView()" << G4endl;
110 #endif
111  fSceneHandler.VRMLEndModeling();
112 }
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: