- Timestamp:
- Nov 9, 2007, 3:32:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredSceneHandler.hh
r529 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLStoredSceneHandler.hh,v 1.2 1 2006/08/30 11:43:57allison Exp $28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $27 // $Id: G4OpenGLStoredSceneHandler.hh,v 1.24 2007/04/04 16:50:26 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // … … 63 63 void EndModeling (); 64 64 void AddPrimitive (const G4Polyline&); 65 void AddPrimitive (const G4Polymarker&); 65 66 void AddPrimitive (const G4Circle&); 66 67 void AddPrimitive (const G4Square&); 67 void AddPrimitive (const G4Polymarker& polymarker); 68 // Explicitly invoke base class methods to avoid warnings about 69 // hiding of base class methods... 70 void AddPrimitive (const G4Text& text) { 71 G4OpenGLSceneHandler::AddPrimitive (text); 72 } 73 void AddPrimitive (const G4Polyhedron& polyhedron) { 74 G4OpenGLSceneHandler::AddPrimitive (polyhedron); 75 } 76 void AddPrimitive (const G4NURBS& nurbs) { 77 G4OpenGLSceneHandler::AddPrimitive (nurbs); 78 } 79 void AddPrimitive (const G4Scale& scale) { 80 G4OpenGLSceneHandler::AddPrimitive (scale); 81 } 68 void AddPrimitive (const G4Text&); 69 void AddPrimitive (const G4Scale&); 70 void AddPrimitive (const G4Polyhedron&); 71 void AddPrimitive (const G4NURBS&); 82 72 void ClearStore (); 83 73 void ClearTransientStore (); … … 98 88 struct PO { 99 89 PO(G4int id, const G4Transform3D& tr = G4Transform3D()): 100 fDisplayListId(id), fTransform(tr) {}90 fDisplayListId(id), fTransform(tr), fPickName(0) {} 101 91 G4int fDisplayListId; 102 92 G4Transform3D fTransform; 93 GLuint fPickName; 103 94 }; 104 95 std::vector<PO> fPOList; … … 107 98 struct TO { 108 99 TO(G4int id, const G4Transform3D& tr = G4Transform3D()): 109 fDisplayListId(id), fTransform(tr), 110 fStartTime(- DBL_MAX), fEndTime(DBL_MAX) {}100 fDisplayListId(id), fTransform(tr), fPickName(0), 101 fStartTime(-G4OPENGL_DBL_MAX), fEndTime(G4OPENGL_DBL_MAX) {} 111 102 G4int fDisplayListId; 112 103 G4Transform3D fTransform; 104 GLuint fPickName; 113 105 G4double fStartTime, fEndTime; // Time range (e.g., for trajectory steps). 114 106 G4Colour fColour; … … 119 111 // A proper implementation would use geometry hierarchy. 120 112 std::map <const G4VSolid*, G4int, std::less <const G4VSolid*> > fSolidMap; 113 114 private: 115 G4bool fProcessing2D; 121 116 }; 122 117
Note: See TracChangeset
for help on using the changeset viewer.