Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4VRML1FileViewer Class Reference

#include <G4VRML1FileViewer.hh>

Inheritance diagram for G4VRML1FileViewer:
G4VViewer

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 ()
 
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 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
G4VViewer(G4VSceneHandler &, G4int id, const G4String &name="")
Definition: G4VViewer.cc:45
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.

References G4VisManager::errors, G4cout, G4endl, and G4VisManager::GetVerbosity().

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
void G4VRML1FileViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 61 of file G4VRML1FileViewer.cc.

References G4VisManager::errors, FinishView(), G4cout, G4endl, G4VisManager::GetVerbosity(), G4VViewer::NeedKernelVisit(), G4VViewer::ProcessView(), and G4VRML1FileSceneHandler::VRMLBeginModeling().

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:86
#define G4endl
Definition: G4ios.hh:61
void ProcessView()
Definition: G4VViewer.cc:115
void G4VRML1FileViewer::FinishView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 100 of file G4VRML1FileViewer.cc.

References G4VisManager::errors, G4cout, G4endl, and G4VisManager::GetVerbosity().

Referenced by DrawView().

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
void G4VRML1FileViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 91 of file G4VRML1FileViewer.cc.

References G4VisManager::errors, G4cout, G4endl, G4VisManager::GetVerbosity(), and G4VRML1FileSceneHandler::VRMLEndModeling().

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

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