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

#include <G4XXXSG.hh>

Inheritance diagram for G4XXXSG:
G4VGraphicsSystem

Public Member Functions

 G4XXXSG ()
 
virtual ~G4XXXSG ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="")
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
- Public Member Functions inherited from G4VGraphicsSystem
 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 ()
 
const G4StringGetName () const
 
const G4StringGetNickname () const
 
const G4StringGetDescription () const
 
Functionality GetFunctionality () const
 
virtual G4bool IsUISessionCompatible () const
 
void SetName (const G4String &)
 
void SetNickname (const G4String &)
 
void SetDescription (const G4String &)
 
void SetFunctionality (Functionality)
 

Additional Inherited Members

- Public Types inherited from G4VGraphicsSystem
enum  Functionality {
  noFunctionality, nonEuclidian, twoD, twoDStore,
  threeD, threeDInteractive, virtualReality
}
 
- Protected Attributes inherited from G4VGraphicsSystem
G4String fName
 
G4String fNickname
 
G4String fDescription
 
Functionality fFunctionality
 

Detailed Description

Definition at line 39 of file G4XXXSG.hh.

Constructor & Destructor Documentation

G4XXXSG::G4XXXSG ( )

Definition at line 38 of file G4XXXSG.cc.

38  :
39  G4VGraphicsSystem("G4XXXSG",
40  "XXXSG",
41  "Graphics driver with scene graph",
42  G4VGraphicsSystem::threeD) {} //?? Your functionality.
G4VGraphicsSystem(const G4String &name, Functionality f)
G4XXXSG::~G4XXXSG ( )
virtual

Definition at line 44 of file G4XXXSG.cc.

44 {}

Member Function Documentation

G4VSceneHandler * G4XXXSG::CreateSceneHandler ( const G4String name = "")
virtual

Implements G4VGraphicsSystem.

Definition at line 46 of file G4XXXSG.cc.

46  {
47  G4VSceneHandler* pScene = new G4XXXSGSceneHandler(*this, name);
48  return pScene;
49 }
G4VViewer * G4XXXSG::CreateViewer ( G4VSceneHandler scene,
const G4String name = "" 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 51 of file G4XXXSG.cc.

References G4cout, G4endl, and G4VViewer::GetViewId().

52  {
53  G4VViewer* pView =
54  new G4XXXSGViewer((G4XXXSGSceneHandler&) scene, name);
55  if (pView) {
56  if (pView->GetViewId() < 0) {
57  G4cout <<
58  "G4XXXSG::CreateViewer: ERROR flagged by negative"
59  " view id in G4XXXSGViewer creation."
60  "\n Destroying view and returning null pointer."
61  << G4endl;
62  delete pView;
63  pView = 0;
64  }
65  }
66  else {
67  G4cout <<
68  "G4XXXSG::CreateViewer: ERROR: null pointer on new G4XXXSGViewer."
69  << G4endl;
70  }
71  return pView;
72 }
G4int GetViewId() const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

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