Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/visualization/management/include/G4ViewParameters.hh

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /visualization/management/include/G4ViewParameters.hh (Version 11.3.0) and /visualization/management/include/G4ViewParameters.hh (Version 5.0.p1)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                    <<   3 // * DISCLAIMER                                                       *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th <<   5 // * The following disclaimer summarizes all the specific disclaimers *
  6 // * the Geant4 Collaboration.  It is provided <<   6 // * of contributors to this software. The specific disclaimers,which *
  7 // * conditions of the Geant4 Software License <<   7 // * govern, are listed with their locations in:                      *
  8 // * LICENSE and available at  http://cern.ch/ <<   8 // *   http://cern.ch/geant4/license                                  *
  9 // * include a list of copyright holders.      << 
 10 // *                                                9 // *                                                                  *
 11 // * Neither the authors of this software syst     10 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     11 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     12 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     13 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file  <<  14 // * use.                                                             *
 16 // * for the full disclaimer and the limitatio << 
 17 // *                                               15 // *                                                                  *
 18 // * This  code  implementation is the result  <<  16 // * This  code  implementation is the  intellectual property  of the *
 19 // * technical work of the GEANT4 collaboratio <<  17 // * GEANT4 collaboration.                                            *
 20 // * By using,  copying,  modifying or  distri <<  18 // * By copying,  distributing  or modifying the Program (or any work *
 21 // * any work based  on the software)  you  ag <<  19 // * based  on  the Program)  you indicate  your  acceptance of  this *
 22 // * use  in  resulting  scientific  publicati <<  20 // * statement, and all its terms.                                    *
 23 // * acceptance of all terms of the Geant4 Sof << 
 24 // *******************************************     21 // ********************************************************************
 25 //                                                 22 //
 26 //                                                 23 //
                                                   >>  24 // $Id: G4ViewParameters.hh,v 1.13 2001/07/11 10:09:15 gunter Exp $
                                                   >>  25 // GEANT4 tag $Name: geant4-05-00 $
 27 //                                                 26 //
 28 //                                                 27 // 
 29 // John Allison  19th July 1996                    28 // John Allison  19th July 1996
 30 //                                                 29 //
 31 // Class description                               30 // Class description
 32 //                                                 31 //
 33 // View parameters and options.                    32 // View parameters and options.
 34 //                                                 33 //
 35 // THE STANDARD VIEW AND ALL THAT.                 34 // THE STANDARD VIEW AND ALL THAT.
 36 //                                                 35 //
 37 // In GEANT4 visualization, we have the concep     36 // In GEANT4 visualization, we have the concept of a "Standard
 38 // View".  This is the view when the complete      37 // View".  This is the view when the complete set of objects being
 39 // viewed is comfortably in view from any view     38 // viewed is comfortably in view from any viewpoint.  It is defined by
 40 // the "Bounding Extent" of "visible" objects  <<  39 // the "Bounding Sphere" of "visible" objects when initially
 41 // registered in the scene, and by the View Pa     40 // registered in the scene, and by the View Parameters.
 42 //                                                 41 //
 43 // There is also the "Standard Target Point",      42 // There is also the "Standard Target Point", which is the centre of
 44 // the Bounding Extent (note that this belongs <<  43 // the Bounding Sphere (note that this belongs to the scene and is
 45 // stored in the G4Scene object).  The "Curren     44 // stored in the G4Scene object).  The "Current Target Point", defined
 46 // relative to the Standard Target Point, is c     45 // relative to the Standard Target Point, is changed by the
 47 // "dolly" and "zoom" commands, and can be res     46 // "dolly" and "zoom" commands, and can be reset to the Standard
 48 // Target Point with the "/vis/viewer/reset" c     47 // Target Point with the "/vis/viewer/reset" command.
 49 //                                                 48 //
 50 // Also, the "Standard Camera Position" is the     49 // Also, the "Standard Camera Position" is the "Standard Camera
 51 // Distance" along the Viewpoint Direction vec     50 // Distance" along the Viewpoint Direction vector from the Standard
 52 // Target Point.  The Standard Camera Distance     51 // Target Point.  The Standard Camera Distance is the radius of the
 53 // Bounding Extent divided by fFieldHalfAngle. <<  52 // Bounding Sphere divided by fFieldHalfAngle.  It is not stored
 54 // explicitly because of the singularity at fF     53 // explicitly because of the singularity at fFieldHalfAngle = 0,
 55 // which implies parallel projection.              54 // which implies parallel projection.
 56 //                                                 55 //
 57 // Similarly, the "Current Camera Position" is     56 // Similarly, the "Current Camera Position" is the "Current Camera
 58 // Distance" along the Viewpoint Direction vec     57 // Distance" along the Viewpoint Direction vector from the Current
 59 // Target Point.  The Current Camera Distance      58 // Target Point.  The Current Camera Distance is given by the formulae
 60 // below, but note that it can be negative, me     59 // below, but note that it can be negative, meaning that the camera
 61 // has moved *beyond* the Current Target Point     60 // has moved *beyond* the Current Target Point, which is
 62 // conceptually possible, but which might give     61 // conceptually possible, but which might give some problems when
 63 // setting up the view matrix - see, for examp     62 // setting up the view matrix - see, for example, G4OpenGLView::SetView ().
 64 //                                                 63 //
 65 // All viewers are expected to keep the "Up Ve <<  64 // All viewers are expected to keep the "Up Vector" vertical.
 66 // RotationStyle is freeRotation.              << 
 67 //                                                 65 //
 68 // Finally, the view is magnified by the "Zoom     66 // Finally, the view is magnified by the "Zoom Factor" which is
 69 // reset to 1 by the "/vis/viewer/reset" comma     67 // reset to 1 by the "/vis/viewer/reset" command.
 70 //                                                 68 //
 71 // The algorithms for calculating various usef     69 // The algorithms for calculating various useful quantities from the
 72 // View Parameters, such as GetCameraDistance,     70 // View Parameters, such as GetCameraDistance, are described below.
 73                                                    71 
 74 #ifndef G4VIEWPARAMETERS_HH                        72 #ifndef G4VIEWPARAMETERS_HH
 75 #define G4VIEWPARAMETERS_HH                        73 #define G4VIEWPARAMETERS_HH
 76                                                    74 
 77 #include <CLHEP/Units/SystemOfUnits.h>         <<  75 #include "g4std/vector"
 78 #include "G4Vector3D.hh"                           76 #include "G4Vector3D.hh"
 79 #include "G4Point3D.hh"                            77 #include "G4Point3D.hh"
 80 #include "G4Plane3D.hh"                            78 #include "G4Plane3D.hh"
 81 #include "G4VisAttributes.hh"                      79 #include "G4VisAttributes.hh"
 82 #include "G4VMarker.hh"                            80 #include "G4VMarker.hh"
 83 #include "G4ModelingParameters.hh"             << 
 84                                                    81 
 85 #include <vector>                              <<  82 typedef G4std::vector<G4Plane3D> G4Planes;
 86 #include <utility>                             << 
 87                                                << 
 88 typedef std::vector<G4Plane3D> G4Planes;       << 
 89                                                    83 
 90 class G4ViewParameters {                           84 class G4ViewParameters {
 91                                                    85 
 92 public: // With description                        86 public: // With description
 93                                                    87 
 94   enum DrawingStyle {                              88   enum DrawingStyle {
 95     wireframe,  // Draw edges    - no hidden l     89     wireframe,  // Draw edges    - no hidden line removal.
 96     hlr,        // Draw edges    - hidden line     90     hlr,        // Draw edges    - hidden lines removed.
 97     hsr,        // Draw surfaces - hidden surf     91     hsr,        // Draw surfaces - hidden surfaces removed.
 98     hlhsr,      // Draw surfaces and edges - h <<  92     hlhsr       // Draw surfaces and edges - hidden removed.
 99     cloud       // Draw volume as a cloud of d << 
100   };                                           << 
101                                                << 
102   enum CutawayMode {                           << 
103     cutawayUnion,       // Union (addition) of << 
104     cutawayIntersection // Intersection (multi << 
105   };                                           << 
106                                                << 
107   enum RotationStyle {                         << 
108     constrainUpDirection,  // Standard, HEP co << 
109     freeRotation           // Free, Google-lik << 
110   };                                               93   };
111                                                    94 
112   enum SMROption {  // Special Mesh Rendering  <<  95   enum RepStyle {
113     meshAsDefault,                             <<  96     polyhedron, // Use G4Polyhedron.
114     meshAsDots,                                <<  97     nurbs       // Use G4NURBS.
115     meshAsSurfaces                             << 
116   };                                               98   };
117                                                    99 
118   friend std::ostream& operator <<             << 100   friend G4std::ostream& operator << (G4std::ostream&,
119   (std::ostream&, DrawingStyle);               << 101               const DrawingStyle&);
120                                                << 
121   friend std::ostream& operator <<             << 
122   (std::ostream&, SMROption);                  << 
123                                                   102 
124   friend std::ostream& operator <<             << 103   friend G4std::ostream& operator << (G4std::ostream&,
125   (std::ostream&, const G4ViewParameters&);    << 104               const G4ViewParameters&);
126                                                   105 
127   G4ViewParameters ();                            106   G4ViewParameters ();
128   ~G4ViewParameters ();                           107   ~G4ViewParameters ();
129                                                   108 
130   // Note: uses default assignment operator an    109   // Note: uses default assignment operator and copy constructor.
131                                                   110 
132   G4bool operator != (const G4ViewParameters&)    111   G4bool operator != (const G4ViewParameters&) const;
133                                                   112 
134   // Get and Is functions.                        113   // Get and Is functions.
135         DrawingStyle     GetDrawingStyle          114         DrawingStyle     GetDrawingStyle         () const;
136         G4int            GetNumberOfCloudPoint << 115         RepStyle         GetRepStyle             () const;
137         G4bool           IsAuxEdgeVisible      << 
138         G4bool           IsCulling                116         G4bool           IsCulling               () const;
139         G4bool           IsCullingInvisible       117         G4bool           IsCullingInvisible      () const;
140         G4bool           IsDensityCulling         118         G4bool           IsDensityCulling        () const;
141         G4double         GetVisibleDensity        119         G4double         GetVisibleDensity       () const;
142         G4bool           IsCullingCovered         120         G4bool           IsCullingCovered        () const;
143         G4int            GetCBDAlgorithmNumber << 
144   const std::vector<G4double>& GetCBDParameter << 
145         G4bool           IsSection                121         G4bool           IsSection               () const;
146   const G4Plane3D&       GetSectionPlane          122   const G4Plane3D&       GetSectionPlane         () const;
147         G4bool           IsCutaway                123         G4bool           IsCutaway               () const;
148         CutawayMode      GetCutawayMode        << 
149   const G4Planes&        GetCutawayPlanes         124   const G4Planes&        GetCutawayPlanes        () const;
150         G4bool           IsExplode                125         G4bool           IsExplode               () const;
151         G4double         GetExplodeFactor         126         G4double         GetExplodeFactor        () const;
152   const G4Point3D&       GetExplodeCentre      << 
153         G4int            GetNoOfSides             127         G4int            GetNoOfSides            () const;
154   const G4Vector3D&      GetViewpointDirection    128   const G4Vector3D&      GetViewpointDirection   () const;
155   const G4Vector3D&      GetUpVector              129   const G4Vector3D&      GetUpVector             () const;
156         G4double         GetFieldHalfAngle        130         G4double         GetFieldHalfAngle       () const;
157         G4double         GetZoomFactor            131         G4double         GetZoomFactor           () const;
158   const G4Vector3D&      GetScaleFactor        << 
159   const G4Point3D&       GetCurrentTargetPoint    132   const G4Point3D&       GetCurrentTargetPoint   () const;
160         G4double         GetDolly                 133         G4double         GetDolly                () const;
161         G4bool           GetLightsMoveWithCame    134         G4bool           GetLightsMoveWithCamera () const;
162   const G4Vector3D&      GetLightpointDirectio    135   const G4Vector3D&      GetLightpointDirection  () const;  // Relative...
163         G4Vector3D&      GetActualLightpointDi    136         G4Vector3D&      GetActualLightpointDirection  ();  // Actual...
164   // ... depending on GetLightsMoveWithCamera.    137   // ... depending on GetLightsMoveWithCamera.
                                                   >> 138         G4bool           IsViewGeom              () const;
                                                   >> 139         G4bool           IsViewHits              () const;
                                                   >> 140         G4bool           IsViewDigis             () const;
165   const G4VisAttributes* GetDefaultVisAttribut    141   const G4VisAttributes* GetDefaultVisAttributes () const;
166   const G4VisAttributes* GetDefaultTextVisAttr    142   const G4VisAttributes* GetDefaultTextVisAttributes () const;
167   const G4VMarker&       GetDefaultMarker         143   const G4VMarker&       GetDefaultMarker        () const;
168         G4double         GetGlobalMarkerScale     144         G4double         GetGlobalMarkerScale    () const;
169         G4double         GetGlobalLineWidthSca << 
170         G4bool           IsMarkerNotHidden        145         G4bool           IsMarkerNotHidden       () const;
171         unsigned int     GetWindowSizeHintX    << 146         G4int            GetWindowSizeHintX      () const;
172         unsigned int     GetWindowSizeHintY    << 147         G4int            GetWindowSizeHintY      () const;
173         G4int            GetWindowAbsoluteLoca << 
174         G4int            GetWindowAbsoluteLoca << 
175         G4int            GetWindowLocationHint << 
176         G4int            GetWindowLocationHint << 
177         G4bool           IsWindowLocationHintX << 
178         G4bool           IsWindowLocationHintY << 
179   const G4String&        GetXGeometryString    << 
180   // GetXGeometryString is intended to be pars << 
181   // It contains the size information, as in G << 
182   // may also contain the window position, e.g << 
183   // viewer should use this in preference to G << 
184   // it contains more information.  (The size  << 
185   // GetXGeometryString and GetWindowSizeHint  << 
186   // identical.)                               << 
187         bool             IsWindowSizeHintX     << 
188         bool             IsWindowSizeHintY     << 
189         bool             IsWindowLocationHintX << 
190         bool             IsWindowLocationHintY << 
191         G4bool           IsAutoRefresh            148         G4bool           IsAutoRefresh           () const;
192   const G4Colour&  GetBackgroundColour         << 
193         G4bool           IsPicking             << 
194         RotationStyle    GetRotationStyle      << 
195   const std::vector<G4ModelingParameters::VisA << 
196                          GetVisAttributesModif << 
197         G4double         GetStartTime          << 
198         G4double         GetEndTime            << 
199         G4double         GetFadeFactor         << 
200         G4bool           IsDisplayHeadTime     << 
201         G4double         GetDisplayHeadTimeX   << 
202         G4double         GetDisplayHeadTimeY   << 
203         G4double         GetDisplayHeadTimeSiz << 
204         G4double         GetDisplayHeadTimeRed << 
205         G4double         GetDisplayHeadTimeGre << 
206         G4double         GetDisplayHeadTimeBlu << 
207         G4bool           IsDisplayLightFront   << 
208         G4double         GetDisplayLightFrontX << 
209         G4double         GetDisplayLightFrontY << 
210         G4double         GetDisplayLightFrontZ << 
211         G4double         GetDisplayLightFrontT << 
212         G4double         GetDisplayLightFrontR << 
213         G4double         GetDisplayLightFrontG << 
214         G4double         GetDisplayLightFrontB << 
215         G4bool           IsSpecialMeshRenderin << 
216         SMROption        GetSpecialMeshRenderi << 
217   const std::vector<G4ModelingParameters::PVNa << 
218                                                   149 
219   // Here Follow functions to evaluate useful  << 150   // Here Follow functions to evaluate the above algorithms as a
220   // function of the radius of the Bounding Ex << 151   // function of the radius of the Bounding Sphere of the object being
221   // viewed.  Call them in the order given - f    152   // viewed.  Call them in the order given - for efficiency, later
222   // functions depend on the results of earlie    153   // functions depend on the results of earlier ones (Store the
223   // results of earlier functions in your own     154   // results of earlier functions in your own temporary variables -
224   // see, for example, G4OpenGLView::SetView (    155   // see, for example, G4OpenGLView::SetView ().)
225   G4double GetCameraDistance  (G4double radius    156   G4double GetCameraDistance  (G4double radius) const;
226   G4double GetNearDistance    (G4double camera    157   G4double GetNearDistance    (G4double cameraDistance, G4double radius) const;
227   G4double GetFarDistance     (G4double camera    158   G4double GetFarDistance     (G4double cameraDistance,
228              G4double nearDistance, G4double r    159              G4double nearDistance, G4double radius) const;
229   G4double GetFrontHalfHeight (G4double nearDi    160   G4double GetFrontHalfHeight (G4double nearDistance, G4double radius) const;
230                                                   161 
231   // Set, Add, Multiply, Increment, Unset and     162   // Set, Add, Multiply, Increment, Unset and Clear functions.
232   void SetDrawingStyle         (G4ViewParamete    163   void SetDrawingStyle         (G4ViewParameters::DrawingStyle style);
233   G4int SetNumberOfCloudPoints (G4int);  // Re << 164   void SetRepStyle             (G4ViewParameters::RepStyle style);
234   void SetAuxEdgeVisible       (G4bool);       << 
235   void SetCulling              (G4bool);          165   void SetCulling              (G4bool);
236   void SetCullingInvisible     (G4bool);          166   void SetCullingInvisible     (G4bool);
237   void SetDensityCulling       (G4bool);          167   void SetDensityCulling       (G4bool);
238   void SetVisibleDensity       (G4double visib    168   void SetVisibleDensity       (G4double visibleDensity);
239   void SetCullingCovered       (G4bool);          169   void SetCullingCovered       (G4bool);
240   void SetCBDAlgorithmNumber   (G4int);        << 
241   void SetCBDParameters        (const std::vec << 
242   void SetSectionPlane         (const G4Plane3    170   void SetSectionPlane         (const G4Plane3D& sectionPlane);
243   void UnsetSectionPlane       ();                171   void UnsetSectionPlane       ();
244   void SetCutawayMode          (CutawayMode);  << 
245   void AddCutawayPlane         (const G4Plane3    172   void AddCutawayPlane         (const G4Plane3D& cutawayPlane);
246   void ChangeCutawayPlane      (size_t index,  << 
247   void ClearCutawayPlanes      ();                173   void ClearCutawayPlanes      ();
248   void SetExplodeFactor        (G4double explo    174   void SetExplodeFactor        (G4double explodeFactor);
249   void UnsetExplodeFactor      ();                175   void UnsetExplodeFactor      ();
250   void SetExplodeCentre        (const G4Point3 << 176   void SetNoOfSides            (G4int nSides);
251   G4int SetNoOfSides           (G4int nSides); << 
252   void SetViewpointDirection   (const G4Vector    177   void SetViewpointDirection   (const G4Vector3D& viewpointDirection);
253   // Calls the following to get lightpoint dir << 178   // Prefer the following to get lightpoint direction right too.
254   void SetViewAndLights        (const G4Vector    179   void SetViewAndLights        (const G4Vector3D& viewpointDirection);
255   // Also sets lightpoint direction according     180   // Also sets lightpoint direction according to G4bool fLightsMoveWithCamera.
256   void SetUpVector             (const G4Vector    181   void SetUpVector             (const G4Vector3D& upVector);
257   void SetFieldHalfAngle       (G4double field    182   void SetFieldHalfAngle       (G4double fieldHalfAngle);
258   void SetOrthogonalProjection ();  // This an << 
259   void SetPerspectiveProjection(G4double field << 
260   void SetZoomFactor           (G4double zoomF    183   void SetZoomFactor           (G4double zoomFactor);
261   void MultiplyZoomFactor      (G4double zoomF    184   void MultiplyZoomFactor      (G4double zoomFactorMultiplier);
262   void SetScaleFactor          (const G4Vector << 
263   void MultiplyScaleFactor     (const G4Vector << 
264   void SetCurrentTargetPoint   (const G4Point3    185   void SetCurrentTargetPoint   (const G4Point3D& currentTargetPoint);
265   void SetDolly                (G4double dolly    186   void SetDolly                (G4double dolly);
266   void IncrementDolly          (G4double dolly    187   void IncrementDolly          (G4double dollyIncrement);
267   void SetLightpointDirection  (const G4Vector    188   void SetLightpointDirection  (const G4Vector3D& lightpointDirection);
268   void SetLightsMoveWithCamera (G4bool moves);    189   void SetLightsMoveWithCamera (G4bool moves);
269   void SetPan                  (G4double right    190   void SetPan                  (G4double right, G4double up);
270   void IncrementPan            (G4double right    191   void IncrementPan            (G4double right, G4double up);
271   // Increment currentTarget point perpendicul << 192   void SetViewGeom             ();
272   void IncrementPan            (G4double right << 193   void UnsetViewGeom           ();
273   // Increment currentTarget point also along  << 194   void SetViewHits             ();
                                                   >> 195   void UnsetViewHits           ();
                                                   >> 196   void SetViewDigis            ();
                                                   >> 197   void UnsetViewDigis          ();
274   void SetDefaultVisAttributes (const G4VisAtt    198   void SetDefaultVisAttributes (const G4VisAttributes&);
275   void SetDefaultColour        (const G4Colour << 
276   void SetDefaultTextVisAttributes (const G4Vi    199   void SetDefaultTextVisAttributes (const G4VisAttributes&);
277   void SetDefaultTextColour    (const G4Colour << 
278   void SetDefaultMarker        (const G4VMarke    200   void SetDefaultMarker        (const G4VMarker& defaultMarker);
279   void SetGlobalMarkerScale    (G4double globa    201   void SetGlobalMarkerScale    (G4double globalMarkerScale);
280   void SetGlobalLineWidthScale (G4double globa << 
281   void SetMarkerHidden         ();                202   void SetMarkerHidden         ();
282   void SetMarkerNotHidden      ();                203   void SetMarkerNotHidden      ();
283   void SetWindowSizeHint       (G4int xHint, G    204   void SetWindowSizeHint       (G4int xHint, G4int yHint);
284   void SetWindowLocationHint   (G4int xHint, G << 
285   void SetXGeometryString      (const G4String << 
286   void SetAutoRefresh          (G4bool);          205   void SetAutoRefresh          (G4bool);
287   void SetBackgroundColour     (const G4Colour << 
288   void SetPicking              (G4bool);       << 
289   void SetRotationStyle        (RotationStyle) << 
290   void ClearVisAttributesModifiers ();         << 
291   void AddVisAttributesModifier(const G4Modeli << 
292   void SetStartTime            (G4double);     << 
293   void SetEndTime              (G4double);     << 
294   void SetFadeFactor           (G4double);     << 
295   void SetDisplayHeadTime      (G4bool);       << 
296   void SetDisplayHeadTimeX     (G4double);     << 
297   void SetDisplayHeadTimeY     (G4double);     << 
298   void SetDisplayHeadTimeSize  (G4double);     << 
299   void SetDisplayHeadTimeRed   (G4double);     << 
300   void SetDisplayHeadTimeGreen (G4double);     << 
301   void SetDisplayHeadTimeBlue  (G4double);     << 
302   void SetDisplayLightFront    (G4bool);       << 
303   void SetDisplayLightFrontX   (G4double);     << 
304   void SetDisplayLightFrontY   (G4double);     << 
305   void SetDisplayLightFrontZ   (G4double);     << 
306   void SetDisplayLightFrontT   (G4double);     << 
307   void SetDisplayLightFrontRed (G4double);     << 
308   void SetDisplayLightFrontGreen (G4double);   << 
309   void SetDisplayLightFrontBlue (G4double);    << 
310   void SetSpecialMeshRendering (G4bool);       << 
311   void SetSpecialMeshRenderingOption (SMROptio << 
312   void SetSpecialMeshVolumes   (const std::vec << 
313                                                << 
314   // Command dumping functions.                << 
315   // For camera commands we need to provide th << 
316   // the current scene.                        << 
317   G4String CameraAndLightingCommands(const G4P << 
318   G4String DrawingStyleCommands  () const;     << 
319   G4String SceneModifyingCommands() const;     << 
320   G4String TouchableCommands     () const;     << 
321   G4String TimeWindowCommands    () const;     << 
322                                                   206 
323   // Other functions.                          << 
324   void PrintDifferences (const G4ViewParameter    207   void PrintDifferences (const G4ViewParameters& v) const;
325                                                   208 
326   // Interpolation                             << 
327   // Returns a null pointer when no more to be << 
328   // do {                                      << 
329   //   G4ViewParameters* vp =                  << 
330   //   G4ViewParameters::CatmullRomCubicSpline << 
331   //   if (!vp) break;                         << 
332   //     ...                                   << 
333   // } while (true);                           << 
334   // Assumes equal intervals                   << 
335   static G4ViewParameters* CatmullRomCubicSpli << 
336   (const std::vector<G4ViewParameters>& views, << 
337    G4int nInterpolationPoints = 50);  // No of << 
338                                                << 
339 private:                                          209 private:
340                                                << 
341   G4int ParseGeometry ( const char *string, G4 << 
342   G4int ReadInteger(char *string, char **NextS << 
343                                                   210 
344   DrawingStyle fDrawingStyle;    // Drawing st    211   DrawingStyle fDrawingStyle;    // Drawing style.
345   G4int        fNumberOfCloudPoints; // For dr << 212   RepStyle     fRepStyle;        // Representation style.
346                                      // <= 0 m << 
347   G4bool       fAuxEdgeVisible;  // Auxiliary  << 
348   G4bool       fCulling;         // Culling re    213   G4bool       fCulling;         // Culling requested.
349   G4bool       fCullInvisible;   // Cull (don'    214   G4bool       fCullInvisible;   // Cull (don't Draw) invisible objects.
350   G4bool       fDensityCulling;  // Density cu    215   G4bool       fDensityCulling;  // Density culling requested.  If so...
351   G4double     fVisibleDensity;  // ...density    216   G4double     fVisibleDensity;  // ...density lower than this not drawn.
352   G4bool       fCullCovered;     // Cull daugh    217   G4bool       fCullCovered;     // Cull daughters covered by opaque mothers.
353   G4int        fCBDAlgorithmNumber; // Colour  << 
354   std::vector<G4double> fCBDParameters; // Col << 
355   G4bool       fSection;         // Section dr    218   G4bool       fSection;         // Section drawing requested (DCUT in GEANT3).
356   G4Plane3D    fSectionPlane;    // Cut plane     219   G4Plane3D    fSectionPlane;    // Cut plane for section drawing (DCUT).
357   CutawayMode  fCutawayMode;     // Cutaway mo << 220   G4bool       fCutaway;         // Cutaway flag.
358   G4Planes     fCutawayPlanes;   // Set of pla    221   G4Planes     fCutawayPlanes;   // Set of planes used for cutaway.
359   G4double     fExplodeFactor;   // Explode al << 222   G4bool       fExplode;         // Explode flag.
360   G4Point3D    fExplodeCentre;   // ...about t << 223   G4double     fExplodeFactor;
361   G4int        fNoOfSides;       // ...if poly    224   G4int        fNoOfSides;       // ...if polygon approximates circle.
362   G4Vector3D   fViewpointDirection;               225   G4Vector3D   fViewpointDirection;
363   G4Vector3D   fUpVector;        // Up vector.    226   G4Vector3D   fUpVector;        // Up vector.  (Warning: MUST NOT be parallel
364                                  // to fViewpo    227                                  // to fViewpointDirection!)
365   G4double     fFieldHalfAngle;  // Radius / c    228   G4double     fFieldHalfAngle;  // Radius / camara distance, 0 for parallel.
366   G4double     fZoomFactor;      // Magnificat    229   G4double     fZoomFactor;      // Magnification relative to Standard View.
367   G4Vector3D   fScaleFactor;     // (Non-unifo << 
368   G4Point3D    fCurrentTargetPoint;  // Relati    230   G4Point3D    fCurrentTargetPoint;  // Relative to standard target point.
369   G4double     fDolly;           // Distance t    231   G4double     fDolly;           // Distance towards current target point.
370   G4bool       fLightsMoveWithCamera;             232   G4bool       fLightsMoveWithCamera;
371   G4Vector3D   fRelativeLightpointDirection;      233   G4Vector3D   fRelativeLightpointDirection;
372   // i.e., rel. to object or camera accoding t    234   // i.e., rel. to object or camera accoding to G4bool fLightsMoveWithCamera.
373   G4Vector3D   fActualLightpointDirection;        235   G4Vector3D   fActualLightpointDirection;
                                                   >> 236   G4bool       fViewGeom;        // View geometry objects.
                                                   >> 237   G4bool       fViewHits;        // View hits, if any.
                                                   >> 238   G4bool       fViewDigis;       // View digis, if any.
374   G4VisAttributes fDefaultVisAttributes;          239   G4VisAttributes fDefaultVisAttributes;
375   G4VisAttributes fDefaultTextVisAttributes;      240   G4VisAttributes fDefaultTextVisAttributes;
376   G4VMarker    fDefaultMarker;                    241   G4VMarker    fDefaultMarker;
377   G4double     fGlobalMarkerScale;                242   G4double     fGlobalMarkerScale;
378   G4double     fGlobalLineWidthScale;          << 
379   G4bool       fMarkerNotHidden;                  243   G4bool       fMarkerNotHidden;
380   // True if transients are to be drawn and no    244   // True if transients are to be drawn and not hidden by
381   // hidden-line-hidden-surface removal algori    245   // hidden-line-hidden-surface removal algorithms, e.g., z-buffer
382   // testing; false if they are to be hidden-l    246   // testing; false if they are to be hidden-line-hidden-surface
383   // removed.                                     247   // removed.
384   G4int        fWindowSizeHintX; // Size hints    248   G4int        fWindowSizeHintX; // Size hints for pixel-based window systems.
385   G4int        fWindowSizeHintY;                  249   G4int        fWindowSizeHintY;
386   G4int        fWindowLocationHintX; // Locati << 
387   G4int        fWindowLocationHintY;           << 
388   G4bool       fWindowLocationHintXNegative; / << 
389   G4bool       fWindowLocationHintYNegative;   << 
390   G4String     fXGeometryString; // If non-nul << 
391   G4int        fGeometryMask;    // Correspond << 
392   G4bool       fAutoRefresh;     // ...after c    250   G4bool       fAutoRefresh;     // ...after change of view parameters.
393   G4Colour     fBackgroundColour;              << 
394   G4bool       fPicking;         // Request pi << 
395   RotationStyle fRotationStyle;  // Rotation s << 
396   std::vector<G4ModelingParameters::VisAttribu << 
397   G4double     fStartTime, fEndTime;  // Time  << 
398   G4double     fFadeFactor;  // 0: no fade; 1: << 
399   G4bool       fDisplayHeadTime;  // Display h << 
400   G4double     fDisplayHeadTimeX, fDisplayHead << 
401   G4double     fDisplayHeadTimeSize;  // Scree << 
402   G4double     fDisplayHeadTimeRed, fDisplayHe << 
403   G4bool       fDisplayLightFront;// Display l << 
404   G4double     fDisplayLightFrontX, fDisplayLi << 
405                fDisplayLightFrontT;            << 
406   G4double     fDisplayLightFrontRed, fDisplay << 
407   G4bool       fSpecialMeshRendering;  // Requ << 
408   SMROption    fSpecialMeshRenderingOption;  / << 
409   std::vector<G4ModelingParameters::PVNameCopy << 
410                                                << 
411   enum { // Constants for geometry mask in Par << 
412     fNoValue     = 0,                          << 
413     fXValue      = 0x0001,                     << 
414     fYValue      = 0x0002,                     << 
415     fWidthValue  = 0x0004,                     << 
416     fHeightValue = 0x0008,                     << 
417     fAllValues   = 0x000F,                     << 
418     fXNegative   = 0x0010,                     << 
419     fYNegative   = 0x0020                      << 
420   };                                           << 
421 };                                                251 };
422                                                   252 
423 #include "G4ViewParameters.icc"                   253 #include "G4ViewParameters.icc"
424                                                   254 
425 #endif                                            255 #endif
426                                                   256