source: trunk/source/visualization/management/include/G4VGraphicsSystem.hh@ 1175

Last change on this file since 1175 was 954, checked in by garnier, 17 years ago

remise a jour

  • Property svn:mime-type set to text/cpp
File size: 3.4 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id: G4VGraphicsSystem.hh,v 1.11 2006/06/29 21:28:04 gunter Exp $
28// GEANT4 tag $Name: $
29//
30//
31// John Allison 27th March 1996
32//
33// Class description
34//
35// Abstract interface class for graphics systems.
36
37#ifndef G4VGRAPHICSSYSTEM_HH
38#define G4VGRAPHICSSYSTEM_HH
39
40#include "globals.hh"
41
42class G4VSceneHandler;
43class G4VViewer;
44
45class G4VGraphicsSystem {
46
47public: // With description
48
49 enum Functionality {
50 noFunctionality,
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 };
58
59 G4VGraphicsSystem (const G4String& name,
60 Functionality f);
61
62 G4VGraphicsSystem (const G4String& name,
63 const G4String& nickname,
64 Functionality f);
65
66 G4VGraphicsSystem (const G4String& name,
67 const G4String& nickname,
68 const G4String& description,
69 Functionality f);
70
71 virtual ~G4VGraphicsSystem ();
72
73 virtual G4VSceneHandler* CreateSceneHandler (const G4String& name) = 0;
74
75 virtual G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name) = 0;
76
77 // Access functions.
78 const G4String& GetName () const;
79 const G4String& GetNickname () const;
80 const G4String& GetDescription () const;
81 Functionality GetFunctionality () const;
82
83protected:
84 const G4String fName;
85 const G4String fNickname;
86 const G4String fDescription;
87 Functionality fFunctionality;
88};
89
90std::ostream& operator << (std::ostream& os, const G4VGraphicsSystem& gs);
91
92#include "G4VGraphicsSystem.icc"
93
94#endif
Note: See TracBrowser for help on using the repository browser.