Changeset 593 for trunk/geant4/visualization/OpenGL/include
- Timestamp:
- Nov 9, 2007, 3:32:25 PM (18 years ago)
- Location:
- trunk/geant4/visualization/OpenGL/include
- Files:
-
- 47 edited
-
G4OpenGL.hh (modified) (2 diffs)
-
G4OpenGLFontBaseStore.hh (modified) (1 diff)
-
G4OpenGLImmediateQt.hh (modified) (1 diff)
-
G4OpenGLImmediateQtViewer.hh (modified) (2 diffs)
-
G4OpenGLImmediateSceneHandler.hh (modified) (2 diffs)
-
G4OpenGLImmediateViewer.hh (modified) (1 diff)
-
G4OpenGLImmediateWin32.hh (modified) (1 diff)
-
G4OpenGLImmediateWin32Viewer.hh (modified) (1 diff)
-
G4OpenGLImmediateX.hh (modified) (1 diff)
-
G4OpenGLImmediateXViewer.hh (modified) (1 diff)
-
G4OpenGLImmediateXm.hh (modified) (1 diff)
-
G4OpenGLImmediateXmViewer.hh (modified) (1 diff)
-
G4OpenGLQtExportDialog.hh (modified) (5 diffs)
-
G4OpenGLQtViewer.hh (modified) (2 diffs)
-
G4OpenGLSceneHandler.hh (modified) (3 diffs)
-
G4OpenGLSceneHandler.icc (modified) (1 diff)
-
G4OpenGLStoredQt.hh (modified) (1 diff)
-
G4OpenGLStoredQtViewer.hh (modified) (2 diffs)
-
G4OpenGLStoredSceneHandler.hh (modified) (5 diffs)
-
G4OpenGLStoredViewer.hh (modified) (1 diff)
-
G4OpenGLStoredWin32.hh (modified) (1 diff)
-
G4OpenGLStoredWin32Viewer.hh (modified) (1 diff)
-
G4OpenGLStoredX.hh (modified) (1 diff)
-
G4OpenGLStoredXViewer.hh (modified) (1 diff)
-
G4OpenGLStoredXm.hh (modified) (1 diff)
-
G4OpenGLStoredXmViewer.hh (modified) (1 diff)
-
G4OpenGLTransform3D.hh (modified) (1 diff)
-
G4OpenGLViewer.hh (modified) (4 diffs)
-
G4OpenGLViewerMessenger.hh (modified) (4 diffs)
-
G4OpenGLWin32Viewer.hh (modified) (1 diff)
-
G4OpenGLXViewer.hh (modified) (5 diffs)
-
G4OpenGLXmBox.hh (modified) (1 diff)
-
G4OpenGLXmFourArrowButtons.hh (modified) (1 diff)
-
G4OpenGLXmFramedBox.hh (modified) (1 diff)
-
G4OpenGLXmPushButton.hh (modified) (1 diff)
-
G4OpenGLXmRadioButton.hh (modified) (1 diff)
-
G4OpenGLXmResources.hh (modified) (1 diff)
-
G4OpenGLXmSeparator.hh (modified) (1 diff)
-
G4OpenGLXmSliderBar.hh (modified) (1 diff)
-
G4OpenGLXmTextField.hh (modified) (1 diff)
-
G4OpenGLXmTopLevelShell.hh (modified) (1 diff)
-
G4OpenGLXmVWidgetComponent.hh (modified) (1 diff)
-
G4OpenGLXmVWidgetContainer.hh (modified) (1 diff)
-
G4OpenGLXmVWidgetObject.hh (modified) (1 diff)
-
G4OpenGLXmVWidgetShell.hh (modified) (1 diff)
-
G4OpenGLXmViewer.hh (modified) (1 diff)
-
G4OpenGLXmViewerMessenger.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/include/G4OpenGL.hh
r529 r593 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4OpenGL.hh,v 1. 4 2006/06/29 21:17:36 gunterExp $27 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $26 // $Id: G4OpenGL.hh,v 1.5 2007/02/08 14:01:55 allison Exp $ 27 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 28 28 // 29 29 // G.Barrand. … … 39 39 #include <GL/glu.h> 40 40 41 #define G4OPENGL_DBL_MAX 1.e308 42 41 43 #endif -
trunk/geant4/visualization/OpenGL/include/G4OpenGLFontBaseStore.hh
r529 r593 25 25 // 26 26 // $Id: G4OpenGLFontBaseStore.hh,v 1.3 2006/06/29 21:17:38 gunter Exp $ 27 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $27 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 28 28 // 29 29 // J.Allison Apr 2005. -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateQt.hh
r533 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLImmediateQt.hh,v 1. 7 2007/06/25 21:17:44$28 // GEANT4 tag $Name: geant4-08-01-patch-01$27 // $Id: G4OpenGLImmediateQt.hh,v 1.1 2007/09/28 14:44:13 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateQtViewer.hh
r561 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLImmediateQtViewer.hh,v 1. 9 2007/06/25 21:17:46$28 // GEANT4 tag $Name: geant4-08-01-patch-01$27 // $Id: G4OpenGLImmediateQtViewer.hh,v 1.2 2007/11/08 17:00:51 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 40 40 #include "G4OpenGLImmediateViewer.hh" 41 41 #include "G4OpenGLQtViewer.hh" 42 #include <QGLWidget> 42 43 #include <QtOpenGL/QGLWidget> 43 44 44 45 #include "globals.hh" -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateSceneHandler.hh
r529 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLImmediateSceneHandler.hh,v 1.1 1 2006/08/16 10:34:36 allison Exp $28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $27 // $Id: G4OpenGLImmediateSceneHandler.hh,v 1.13 2007/04/04 16:50:26 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // … … 59 59 void EndModeling (); 60 60 void AddPrimitive (const G4Polyline&); 61 void AddPrimitive (const G4Polymarker&); 62 void AddPrimitive (const G4Text& text); 61 63 void AddPrimitive (const G4Circle&); 62 64 void AddPrimitive (const G4Square&); 63 // Explicitly invoke base class methods to avoid warnings about 64 // hiding of base class methods... 65 void AddPrimitive (const G4Text& text) { 66 G4OpenGLSceneHandler::AddPrimitive (text); 67 } 68 void AddPrimitive (const G4Polyhedron& polyhedron) { 69 G4OpenGLSceneHandler::AddPrimitive (polyhedron); 70 } 71 void AddPrimitive (const G4NURBS& nurbs) { 72 G4OpenGLSceneHandler::AddPrimitive (nurbs); 73 } 74 void AddPrimitive(const G4Polymarker& polymarker) { 75 G4OpenGLSceneHandler::AddPrimitive (polymarker); 76 } 77 void AddPrimitive (const G4Scale& scale) { 78 G4OpenGLSceneHandler::AddPrimitive (scale); 79 } 65 void AddPrimitive (const G4Scale& scale); 66 void AddPrimitive (const G4Polyhedron&); 67 void AddPrimitive (const G4NURBS&); 80 68 void ClearTransientStore (); 81 69 -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateViewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLImmediateViewer.hh,v 1.9 2006/09/04 12:07:59 allison Exp $ 28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateWin32.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLImmediateWin32.hh,v 1.7 2006/06/29 21:17:44 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateWin32Viewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLImmediateWin32Viewer.hh,v 1.9 2006/06/29 21:17:46 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateX.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLImmediateX.hh,v 1.7 2006/06/29 21:17:48 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateXViewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLImmediateXViewer.hh,v 1.9 2006/07/03 16:38:13 allison Exp $ 28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateXm.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLImmediateXm.hh,v 1.7 2006/06/29 21:17:52 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLImmediateXmViewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLImmediateXmViewer.hh,v 1.9 2006/07/03 16:38:13 allison Exp $ 28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLQtExportDialog.hh
r586 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLQtExportDialog.hh,v 0.1 2007/09/20 15:18:20 garnier$28 // GEANT4 tag $Name: geant4-08-02-patch-01 $27 // $Id: G4OpenGLQtExportDialog.hh,v 1.2 2007/11/08 17:00:51 lgarnier Exp $ 28 // GEANT4 tag $Name: 29 29 // 30 30 // … … 35 35 #define G4OPENGLQTEXPORTDIALOG_HH 36 36 37 #include <qvariant.h> 38 #include <qdialog.h> 37 #include <QtGui/QDialog.h> 39 38 40 39 class QButtonGroup; … … 47 46 class QLineEdit; 48 47 48 /** The G4OpenGLQtExportDialog class provide a Dialog displaying differents options 49 for each file format 50 */ 49 51 class G4OpenGLQtExportDialog : public QDialog 50 52 { … … 52 54 53 55 public: 54 G4OpenGLQtExportDialog(QWidget* parent, QString name, int, int); 56 /** Construct a G4OpenGLQtExportDialog 57 @param parent : parent widget 58 @param name : name of the saved file with extention 59 @param height : height of the original file 60 @param width : width of the original file 61 */ 62 G4OpenGLQtExportDialog(QWidget* parent, QString name, int height =0, int width=0); 63 64 /** Destroys G4OpenGLQtExportDialog */ 55 65 ~G4OpenGLQtExportDialog(); 56 66 67 /** @return the value of the slider if format has a slider widget, instead return -1 */ 57 68 int getSliderValue(); 69 70 /** return the new width for file if format has a width widget, instead return -1 */ 58 71 int getWidth(); 72 73 /** return the new height for file if format has a height widget, instead return -1 */ 59 74 int getHeight(); 60 int getTransparency(); 75 76 /** return the value of the transparency if format has a transparency, instead return -1 */ 77 bool getTransparency(); 78 79 /** return the numbers of colors in the picture if format has a BW/Color widget, instead return -1 */ 61 80 int getNbColor(); 62 81 63 82 public slots: 83 84 /** Called by a clic on modify/original size button.This will 85 invert buttons and hide/unhide size 86 */ 64 87 void changeSizeBox(bool); 88 89 /** Called by changing value in height lineEdit. If ratio is keep, will also change the width 90 */ 65 91 void textWidthChanged(const QString &); 92 93 /** Called by changing value in width lineEdit. If ratio is keep, will also change the height 94 */ 66 95 void textHeightChanged(const QString &); 67 68 signals:69 void options(const QString&, const QString&, int, bool);70 void exportAll(const QString&, const QString&, int, bool);71 96 72 97 private: … … 80 105 QSlider * qualitySlider; 81 106 QLabel *formatLabel; 82 QRadioButton* color ,*BW;107 QRadioButton* colorButton,*BWButton; 83 108 QRadioButton* original,* modify; 84 109 QLineEdit* height,*width; -
trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh
r588 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLQtViewer.hh,v 1. 13 2006/06/29 21:18:20 gunter Exp $28 // GEANT4 tag $Name: geant4-08-01-patch-01$27 // $Id: G4OpenGLQtViewer.hh,v 1.2 2007/11/08 17:00:51 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 42 42 #include "G4OpenGLSceneHandler.hh" 43 43 44 #include <QObject> 45 #include <QGLWidget> 46 #include <QDialog> 47 #include <QContextMenuEvent> 48 #include <QMenu> 49 #include <QPoint> 50 #include <QImage> 44 #include <QtCore/QObject> 45 #include <QtCore/QPoint> 46 47 class QGLWidget; 48 class QDialog; 49 class QContextMenuEvent; 50 class QMenu; 51 class QImage; 52 class QAction; 51 53 52 54 class G4OpenGLSceneHandler; -
trunk/geant4/visualization/OpenGL/include/G4OpenGLSceneHandler.hh
r529 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLSceneHandler.hh,v 1.2 0 2006/08/30 11:37:34allison Exp $28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $27 // $Id: G4OpenGLSceneHandler.hh,v 1.23 2007/04/04 16:50:26 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // … … 45 45 #include "G4VSceneHandler.hh" 46 46 #include "G4OpenGLViewer.hh" 47 #include "G4OpenGLBitMapStore.hh" 48 #include <map> 47 49 48 // Base class for various OpenGLScene classes. 50 class G4AttHolder; 51 52 // Base class for various OpenGLSceneHandler classes. 49 53 class G4OpenGLSceneHandler: public G4VSceneHandler { 50 54 55 friend class G4OpenGLViewer; 56 51 57 public: 58 virtual void BeginPrimitives (const G4Transform3D& objectTransformation); 59 virtual void EndPrimitives (); 60 virtual void BeginPrimitives2D (); 61 virtual void EndPrimitives2D (); 52 62 void AddPrimitive (const G4Polyline&); 63 void AddPrimitive (const G4Polymarker&); 53 64 void AddPrimitive (const G4Text&); 54 65 void AddPrimitive (const G4Circle&); 55 66 void AddPrimitive (const G4Square&); 67 void AddPrimitive (const G4Scale&); 56 68 void AddPrimitive (const G4Polyhedron&); 57 69 void AddPrimitive (const G4NURBS&); 58 // Explicitly invoke base class methods to avoid warnings about59 // hiding of base class methods...60 void AddPrimitive(const G4Polymarker& polymarker) {61 G4VSceneHandler::AddPrimitive (polymarker);62 }63 void AddPrimitive (const G4Scale& scale) {64 G4VSceneHandler::AddPrimitive (scale);65 }66 70 71 void PreAddSolid (const G4Transform3D& objectTransformation, 72 const G4VisAttributes&); 67 73 void AddSolid (const G4Box&); 68 74 void AddSolid (const G4Cons&); … … 89 95 const G4Polyhedron* CreateCutawayPolyhedron (); 90 96 97 GLuint fPickName; 98 std::map<GLuint, G4AttHolder*> fPickMap; // For picking. 99 void ClearAndDestroyAtts(); // Destroys att holders and clears pick map. 100 91 101 private: 92 102 93 void AddCircleSquare (const G4VMarker&, G4int nSides); 94 /************************************************** 95 Not needed - but see note on future development in .cc. 96 void DrawScreenPolygon (G4double size, 97 const G4Point3D& centre, 98 G4int nSides); 99 // Draws in screen coordinates. 100 *********************************/ 103 void AddCircleSquare (const G4VMarker&, G4OpenGLBitMapStore::Shape); 101 104 102 void DrawXYPolygon (G4double size, 103 const G4Point3D& centre, 104 G4int nSides); 105 void DrawXYPolygon 106 (G4OpenGLBitMapStore::Shape, 107 G4double size, 108 const G4Point3D& centre, 109 const G4VisAttributes* pApplicableVisAtts); 105 110 // Draws in world coordinates a polygon in the screen plane knowing 106 111 // viewpoint direction and up vector. 107 112 108 113 static const GLubyte fStippleMaskHashed [128]; 114 115 G4bool fProcessingPolymarker; 109 116 }; 110 117 -
trunk/geant4/visualization/OpenGL/include/G4OpenGLSceneHandler.icc
r529 r593 26 26 // 27 27 // $Id: G4OpenGLSceneHandler.icc,v 1.7 2006/06/29 21:17:58 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredQt.hh
r561 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLStoredQt.hh,v 1. 7 2007/06/25 21:17:44$28 // GEANT4 tag $Name: geant4-08-01-patch-01$27 // $Id: G4OpenGLStoredQt.hh,v 1.1 2007/09/28 14:44:13 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredQtViewer.hh
r561 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLStoredQtViewer.hh,v 1. 9 2007/06/25 21:17:46$28 // GEANT4 tag $Name: geant4-08-01-patch-01$27 // $Id: G4OpenGLStoredQtViewer.hh,v 1.2 2007/11/08 17:00:51 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 40 40 #include "G4OpenGLStoredViewer.hh" 41 41 #include "G4OpenGLQtViewer.hh" 42 #include <QGLWidget> 43 #include <QApplication> 44 #include <QMouseEvent> 45 #include <QContextMenuEvent> 42 43 #include <QtOpenGL/QGLWidget> 44 45 class QMouseEvent; 46 class QContextMenuEvent; 46 47 47 48 class G4OpenGLStoredSceneHandler; -
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 -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredViewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLStoredViewer.hh,v 1.9 2006/06/29 21:18:02 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredWin32.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLStoredWin32.hh,v 1.7 2006/06/29 21:18:04 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredWin32Viewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLStoredWin32Viewer.hh,v 1.7 2006/06/29 21:18:06 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredX.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLStoredX.hh,v 1.7 2006/06/29 21:18:08 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredXViewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLStoredXViewer.hh,v 1.7 2006/07/03 16:38:13 allison Exp $ 28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredXm.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLStoredXm.hh,v 1.6 2006/06/29 21:18:12 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLStoredXmViewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLStoredXmViewer.hh,v 1.7 2006/07/03 16:38:13 allison Exp $ 28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLTransform3D.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLTransform3D.hh,v 1.7 2006/06/29 21:18:16 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLViewer.hh
r529 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLViewer.hh,v 1. 18 2006/09/19 16:13:15allison Exp $28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $27 // $Id: G4OpenGLViewer.hh,v 1.20 2007/05/08 11:04:11 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // … … 38 38 39 39 #include "G4VViewer.hh" 40 #include "G4OpenGL.hh" 40 41 41 42 class G4OpenGLSceneHandler; … … 62 63 void HLRThirdPass (); 63 64 void InitializeGLView (); 65 void Pick(GLdouble x, GLdouble y); 64 66 virtual void CreateFontLists () {} 67 virtual void print(); 68 //////////////////////////////Vectored PostScript production functions/// 69 void printBuffer(GLint, GLfloat*); 70 GLfloat* spewPrimitiveEPS (FILE*, GLfloat*); 71 void spewSortedFeedback (FILE*, GLint, GLfloat*); 72 void spewWireframeEPS (FILE*, GLint, GLfloat*, const char*); 73 void print3DcolorVertex(GLint, GLint*, GLfloat*); 74 G4float pointSize; 75 char print_string[50]; 76 G4bool print_colour; 77 G4bool vectored_ps; 78 79 G4OpenGLSceneHandler& fOpenGLSceneHandler; 65 80 G4Colour background; //the OpenGL clear colour 66 81 G4bool … … 80 95 }; 81 96 97 typedef struct G4OpenGLViewerFeedback3Dcolor { 98 GLfloat x; 99 GLfloat y; 100 GLfloat z; 101 GLfloat red; 102 GLfloat green; 103 GLfloat blue; 104 GLfloat alpha; 105 } Feedback3Dcolor; 106 82 107 #endif 83 108 -
trunk/geant4/visualization/OpenGL/include/G4OpenGLViewerMessenger.hh
r529 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLViewerMessenger.hh,v 1. 4 2006/09/19 16:14:21 allison Exp $28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $27 // $Id: G4OpenGLViewerMessenger.hh,v 1.5 2007/05/08 11:04:11 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 30 30 #ifndef G4OPENGLVIEWERMESSENGER_HH … … 37 37 class G4UIdirectory; 38 38 class G4UIcommand; 39 class G4UIcmdWithoutParameter; 39 40 class G4UIcmdWithADouble; 40 41 class G4UIcmdWithABool; 42 class G4UIcmdWithAString; 41 43 42 44 class G4OpenGLViewerMessenger: public G4UImessenger { … … 50 52 static G4OpenGLViewerMessenger* fpInstance; 51 53 G4UIdirectory* fpDirectory; 54 G4UIcmdWithoutParameter* fpCommandPrintEPS; 52 55 G4UIdirectory* fpDirectorySet; 53 56 G4UIcommand* fpCommandDisplayHeadTime; … … 55 58 G4UIcommand* fpCommandEndTime; 56 59 G4UIcmdWithADouble* fpCommandFade; 60 G4UIcmdWithAString* fpCommandPrintMode; 57 61 G4UIcommand* fpCommandStartTime; 58 62 G4UIcmdWithABool* fpCommandTransparency; -
trunk/geant4/visualization/OpenGL/include/G4OpenGLWin32Viewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLWin32Viewer.hh,v 1.13 2006/06/29 21:18:20 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXViewer.hh
r529 r593 25 25 // 26 26 // 27 // $Id: G4OpenGLXViewer.hh,v 1.2 6 2006/11/01 11:22:27allison Exp $28 // GEANT4 tag $Name: geant4-0 8-02-patch-01 $27 // $Id: G4OpenGLXViewer.hh,v 1.27 2007/05/08 11:04:11 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // … … 53 53 54 54 friend class G4OpenGLXViewerMessenger; 55 friend class G4OpenGLXmViewer; 55 56 56 57 public: … … 59 60 void SetView (); 60 61 void ShowView (); 61 void print();62 62 63 63 protected: … … 66 66 virtual void CreateMainWindow (); 67 67 virtual void CreateFontLists (); 68 void print(); 68 69 69 70 static int snglBuf_RGBA[12]; 70 71 static int dblBuf_RGBA[13]; 71 72 72 char print_string[50]; 73 G4bool print_colour, 74 vectored_ps; 75 76 //////////////////////////////Vectored PostScript production functions////////////////////////////// 77 void printBuffer(GLint, GLfloat*); 78 GLfloat* spewPrimitiveEPS (FILE*, GLfloat*); 79 void spewSortedFeedback (FILE*, GLint, GLfloat*); 80 void spewWireframeEPS (FILE*, GLint, GLfloat*, const char*); 81 void print3DcolorVertex(GLint, GLint*, GLfloat*); 82 G4float pointSize; 83 84 85 //////////////////////////////Pixmap (screen dump) production functions////////////////////////////// 73 //////////////////////////////Pixmap (screen dump) production functions///// 86 74 GLubyte* grabPixels (int inColor, 87 75 unsigned int width, … … 129 117 }; 130 118 131 typedef struct G4OpenGLXViewerFeedback3Dcolor {132 GLfloat x;133 GLfloat y;134 GLfloat z;135 GLfloat red;136 GLfloat green;137 GLfloat blue;138 GLfloat alpha;139 } Feedback3Dcolor;140 141 119 #endif 142 120 -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmBox.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmBox.hh,v 1.7 2006/06/29 21:18:24 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmFourArrowButtons.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmFourArrowButtons.hh,v 1.6 2006/06/29 21:18:26 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmFramedBox.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmFramedBox.hh,v 1.7 2006/06/29 21:18:28 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmPushButton.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmPushButton.hh,v 1.7 2006/06/29 21:18:30 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmRadioButton.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmRadioButton.hh,v 1.7 2006/06/29 21:18:32 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmResources.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmResources.hh,v 1.5 2006/06/29 21:18:34 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmSeparator.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmSeparator.hh,v 1.6 2006/06/29 21:18:36 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmSliderBar.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmSliderBar.hh,v 1.7 2006/06/29 21:18:38 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmTextField.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmTextField.hh,v 1.7 2006/06/29 21:18:40 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmTopLevelShell.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmTopLevelShell.hh,v 1.6 2006/06/29 21:18:42 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmVWidgetComponent.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmVWidgetComponent.hh,v 1.6 2006/06/29 21:18:44 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmVWidgetContainer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmVWidgetContainer.hh,v 1.6 2006/06/29 21:18:46 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmVWidgetObject.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmVWidgetObject.hh,v 1.6 2006/06/29 21:18:48 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmVWidgetShell.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmVWidgetShell.hh,v 1.6 2006/06/29 21:18:50 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmViewer.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmViewer.hh,v 1.10 2006/06/29 21:18:52 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 // 30 30 // -
trunk/geant4/visualization/OpenGL/include/G4OpenGLXmViewerMessenger.hh
r529 r593 26 26 // 27 27 // $Id: G4OpenGLXmViewerMessenger.hh,v 1.4 2006/06/29 21:18:54 gunter Exp $ 28 // GEANT4 tag $Name: geant4-0 8-01-patch-01 $28 // GEANT4 tag $Name: geant4-09-00-ref-01 $ 29 29 30 30 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
Note:
See TracChangeset
for help on using the changeset viewer.
