Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VGraphicsSystem Class Referenceabstract

#include <G4VGraphicsSystem.hh>

+ Inheritance diagram for G4VGraphicsSystem:

Public Types

enum  Functionality {
  noFunctionality , nonEuclidian , twoD , twoDStore ,
  threeD , threeDInteractive , virtualReality , fileWriter
}
 

Public Member Functions

 G4VGraphicsSystem (const G4String &name, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, const G4String &description, Functionality f)
 
virtual ~G4VGraphicsSystem ()
 
virtual G4VSceneHandlerCreateSceneHandler (const G4String &name)=0
 
virtual G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name)=0
 
const G4StringGetName () const
 
const G4StringGetNickname () const
 
const std::vector< G4String > & GetNicknames () const
 
const G4StringGetDescription () const
 
Functionality GetFunctionality () const
 
virtual G4bool IsUISessionCompatible () const
 
void AddNickname (const G4String &nickname)
 

Protected Attributes

G4String fName
 
std::vector< G4StringfNicknames
 
G4String fDescription
 
Functionality fFunctionality
 

Detailed Description

Definition at line 45 of file G4VGraphicsSystem.hh.

Member Enumeration Documentation

◆ Functionality

Enumerator
noFunctionality 
nonEuclidian 
twoD 
twoDStore 
threeD 
threeDInteractive 
virtualReality 
fileWriter 

Definition at line 49 of file G4VGraphicsSystem.hh.

49 {
51 ,nonEuclidian // e.g., tree representation of geometry hierarchy.
52 ,twoD // Simple 2D, e.g., X (no stored structures).
53 ,twoDStore // 2D with stored structures.
54 ,threeD // Passive 3D (with stored structures).
55 ,threeDInteractive // 3D with "pick" functionality.
56 ,virtualReality // Virtual Reality functionality.
57 ,fileWriter // File writer
58 };

Constructor & Destructor Documentation

◆ G4VGraphicsSystem() [1/3]

G4VGraphicsSystem::G4VGraphicsSystem ( const G4String & name,
Functionality f )

Definition at line 38 of file G4VGraphicsSystem.cc.

39 :
40 fName (name),
41 fDescription ("No description"),
43{
44 fNicknames.push_back("No Nickname");
45}
Functionality fFunctionality
std::vector< G4String > fNicknames

◆ G4VGraphicsSystem() [2/3]

G4VGraphicsSystem::G4VGraphicsSystem ( const G4String & name,
const G4String & nickname,
Functionality f )

Definition at line 47 of file G4VGraphicsSystem.cc.

49 :
50 fName (name),
51 fDescription ("No description"),
53{
54 fNicknames.push_back(nickname);
55}

◆ G4VGraphicsSystem() [3/3]

G4VGraphicsSystem::G4VGraphicsSystem ( const G4String & name,
const G4String & nickname,
const G4String & description,
Functionality f )

Definition at line 57 of file G4VGraphicsSystem.cc.

60 :
61 fName (name),
62 fDescription (description),
64{
65 fNicknames.push_back(nickname);
66}

◆ ~G4VGraphicsSystem()

G4VGraphicsSystem::~G4VGraphicsSystem ( )
virtual

Definition at line 36 of file G4VGraphicsSystem.cc.

36{}

Member Function Documentation

◆ AddNickname()

void G4VGraphicsSystem::AddNickname ( const G4String & nickname)
inline

Definition at line 85 of file G4VGraphicsSystem.hh.

85{fNicknames.push_back(nickname);}

◆ CreateSceneHandler()

◆ CreateViewer()

◆ GetDescription()

const G4String & G4VGraphicsSystem::GetDescription ( ) const
inline

Definition at line 82 of file G4VGraphicsSystem.hh.

82{return fDescription;}

◆ GetFunctionality()

Functionality G4VGraphicsSystem::GetFunctionality ( ) const
inline

Definition at line 83 of file G4VGraphicsSystem.hh.

83{return fFunctionality;}

◆ GetName()

const G4String & G4VGraphicsSystem::GetName ( ) const
inline

Definition at line 79 of file G4VGraphicsSystem.hh.

79{return fName;}

Referenced by G4VSceneHandler::AddPrimitive().

◆ GetNickname()

const G4String & G4VGraphicsSystem::GetNickname ( ) const
inline

Definition at line 80 of file G4VGraphicsSystem.hh.

80{return fNicknames[0];}

Referenced by G4VisCommandViewerList::SetNewValue().

◆ GetNicknames()

const std::vector< G4String > & G4VGraphicsSystem::GetNicknames ( ) const
inline

Definition at line 81 of file G4VGraphicsSystem.hh.

81{return fNicknames;}

◆ IsUISessionCompatible()

G4bool G4VGraphicsSystem::IsUISessionCompatible ( ) const
virtual

Reimplemented in G4OpenGLQt, G4OpenGLXm, G4OpenInventor, G4Qt3D, G4ToolsSGQtGLES, G4ToolsSGQtZB, and G4VtkQt.

Definition at line 68 of file G4VGraphicsSystem.cc.

69{
70 return true;
71}

Member Data Documentation

◆ fDescription

G4String G4VGraphicsSystem::fDescription
protected

Definition at line 90 of file G4VGraphicsSystem.hh.

Referenced by GetDescription().

◆ fFunctionality

Functionality G4VGraphicsSystem::fFunctionality
protected

Definition at line 91 of file G4VGraphicsSystem.hh.

Referenced by GetFunctionality().

◆ fName

G4String G4VGraphicsSystem::fName
protected

Definition at line 88 of file G4VGraphicsSystem.hh.

Referenced by GetName().

◆ fNicknames

std::vector<G4String> G4VGraphicsSystem::fNicknames
protected

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