Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 26 // >> 27 // $Id: G4ViewParameters.hh,v 1.26 2007/04/03 13:33:16 allison Exp $ >> 28 // GEANT4 tag $Name: geant4-09-01 $ 27 // 29 // 28 // 30 // 29 // John Allison 19th July 1996 31 // John Allison 19th July 1996 30 // 32 // 31 // Class description 33 // Class description 32 // 34 // 33 // View parameters and options. 35 // View parameters and options. 34 // 36 // 35 // THE STANDARD VIEW AND ALL THAT. 37 // THE STANDARD VIEW AND ALL THAT. 36 // 38 // 37 // In GEANT4 visualization, we have the concep 39 // In GEANT4 visualization, we have the concept of a "Standard 38 // View". This is the view when the complete 40 // View". This is the view when the complete set of objects being 39 // viewed is comfortably in view from any view 41 // viewed is comfortably in view from any viewpoint. It is defined by 40 // the "Bounding Extent" of "visible" objects << 42 // the "Bounding Sphere" of "visible" objects when initially 41 // registered in the scene, and by the View Pa 43 // registered in the scene, and by the View Parameters. 42 // 44 // 43 // There is also the "Standard Target Point", 45 // There is also the "Standard Target Point", which is the centre of 44 // the Bounding Extent (note that this belongs << 46 // the Bounding Sphere (note that this belongs to the scene and is 45 // stored in the G4Scene object). The "Curren 47 // stored in the G4Scene object). The "Current Target Point", defined 46 // relative to the Standard Target Point, is c 48 // relative to the Standard Target Point, is changed by the 47 // "dolly" and "zoom" commands, and can be res 49 // "dolly" and "zoom" commands, and can be reset to the Standard 48 // Target Point with the "/vis/viewer/reset" c 50 // Target Point with the "/vis/viewer/reset" command. 49 // 51 // 50 // Also, the "Standard Camera Position" is the 52 // Also, the "Standard Camera Position" is the "Standard Camera 51 // Distance" along the Viewpoint Direction vec 53 // Distance" along the Viewpoint Direction vector from the Standard 52 // Target Point. The Standard Camera Distance 54 // Target Point. The Standard Camera Distance is the radius of the 53 // Bounding Extent divided by fFieldHalfAngle. << 55 // Bounding Sphere divided by fFieldHalfAngle. It is not stored 54 // explicitly because of the singularity at fF 56 // explicitly because of the singularity at fFieldHalfAngle = 0, 55 // which implies parallel projection. 57 // which implies parallel projection. 56 // 58 // 57 // Similarly, the "Current Camera Position" is 59 // Similarly, the "Current Camera Position" is the "Current Camera 58 // Distance" along the Viewpoint Direction vec 60 // Distance" along the Viewpoint Direction vector from the Current 59 // Target Point. The Current Camera Distance 61 // Target Point. The Current Camera Distance is given by the formulae 60 // below, but note that it can be negative, me 62 // below, but note that it can be negative, meaning that the camera 61 // has moved *beyond* the Current Target Point 63 // has moved *beyond* the Current Target Point, which is 62 // conceptually possible, but which might give 64 // conceptually possible, but which might give some problems when 63 // setting up the view matrix - see, for examp 65 // setting up the view matrix - see, for example, G4OpenGLView::SetView (). 64 // 66 // 65 // All viewers are expected to keep the "Up Ve << 67 // All viewers are expected to keep the "Up Vector" vertical. 66 // RotationStyle is freeRotation. << 67 // 68 // 68 // Finally, the view is magnified by the "Zoom 69 // Finally, the view is magnified by the "Zoom Factor" which is 69 // reset to 1 by the "/vis/viewer/reset" comma 70 // reset to 1 by the "/vis/viewer/reset" command. 70 // 71 // 71 // The algorithms for calculating various usef 72 // The algorithms for calculating various useful quantities from the 72 // View Parameters, such as GetCameraDistance, 73 // View Parameters, such as GetCameraDistance, are described below. 73 74 74 #ifndef G4VIEWPARAMETERS_HH 75 #ifndef G4VIEWPARAMETERS_HH 75 #define G4VIEWPARAMETERS_HH 76 #define G4VIEWPARAMETERS_HH 76 77 77 #include <CLHEP/Units/SystemOfUnits.h> << 78 #include <vector> 78 #include "G4Vector3D.hh" 79 #include "G4Vector3D.hh" 79 #include "G4Point3D.hh" 80 #include "G4Point3D.hh" 80 #include "G4Plane3D.hh" 81 #include "G4Plane3D.hh" 81 #include "G4VisAttributes.hh" 82 #include "G4VisAttributes.hh" 82 #include "G4VMarker.hh" 83 #include "G4VMarker.hh" 83 #include "G4ModelingParameters.hh" << 84 << 85 #include <vector> << 86 #include <utility> << 87 84 88 typedef std::vector<G4Plane3D> G4Planes; 85 typedef std::vector<G4Plane3D> G4Planes; 89 86 90 class G4ViewParameters { 87 class G4ViewParameters { 91 88 92 public: // With description 89 public: // With description 93 90 94 enum DrawingStyle { 91 enum DrawingStyle { 95 wireframe, // Draw edges - no hidden l 92 wireframe, // Draw edges - no hidden line removal. 96 hlr, // Draw edges - hidden line 93 hlr, // Draw edges - hidden lines removed. 97 hsr, // Draw surfaces - hidden surf 94 hsr, // Draw surfaces - hidden surfaces removed. 98 hlhsr, // Draw surfaces and edges - h << 95 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 }; 96 }; 106 97 107 enum RotationStyle { << 98 enum RepStyle { 108 constrainUpDirection, // Standard, HEP co << 99 polyhedron, // Use G4Polyhedron. 109 freeRotation // Free, Google-lik << 100 nurbs // Use G4NURBS. 110 }; 101 }; 111 102 112 enum SMROption { // Special Mesh Rendering << 103 enum CutawayMode { 113 meshAsDefault, << 104 cutawayUnion, // Union (addition) of result of each cutaway plane. 114 meshAsDots, << 105 cutawayIntersection // Intersection (multiplication) " . 115 meshAsSurfaces << 116 }; 106 }; 117 107 118 friend std::ostream& operator << << 108 friend std::ostream& operator << (std::ostream&, 119 (std::ostream&, DrawingStyle); << 109 const DrawingStyle&); 120 110 121 friend std::ostream& operator << << 111 friend std::ostream& operator << (std::ostream&, 122 (std::ostream&, SMROption); << 112 const G4ViewParameters&); 123 << 124 friend std::ostream& operator << << 125 (std::ostream&, const G4ViewParameters&); << 126 113 127 G4ViewParameters (); 114 G4ViewParameters (); 128 ~G4ViewParameters (); 115 ~G4ViewParameters (); 129 116 130 // Note: uses default assignment operator an 117 // Note: uses default assignment operator and copy constructor. 131 118 132 G4bool operator != (const G4ViewParameters&) 119 G4bool operator != (const G4ViewParameters&) const; 133 120 134 // Get and Is functions. 121 // Get and Is functions. 135 DrawingStyle GetDrawingStyle 122 DrawingStyle GetDrawingStyle () const; 136 G4int GetNumberOfCloudPoint << 137 G4bool IsAuxEdgeVisible 123 G4bool IsAuxEdgeVisible () const; >> 124 RepStyle GetRepStyle () const; 138 G4bool IsCulling 125 G4bool IsCulling () const; 139 G4bool IsCullingInvisible 126 G4bool IsCullingInvisible () const; 140 G4bool IsDensityCulling 127 G4bool IsDensityCulling () const; 141 G4double GetVisibleDensity 128 G4double GetVisibleDensity () const; 142 G4bool IsCullingCovered 129 G4bool IsCullingCovered () const; 143 G4int GetCBDAlgorithmNumber << 144 const std::vector<G4double>& GetCBDParameter << 145 G4bool IsSection 130 G4bool IsSection () const; 146 const G4Plane3D& GetSectionPlane 131 const G4Plane3D& GetSectionPlane () const; 147 G4bool IsCutaway 132 G4bool IsCutaway () const; 148 CutawayMode GetCutawayMode 133 CutawayMode GetCutawayMode () const; 149 const G4Planes& GetCutawayPlanes 134 const G4Planes& GetCutawayPlanes () const; 150 G4bool IsExplode 135 G4bool IsExplode () const; 151 G4double GetExplodeFactor 136 G4double GetExplodeFactor () const; 152 const G4Point3D& GetExplodeCentre 137 const G4Point3D& GetExplodeCentre () const; 153 G4int GetNoOfSides 138 G4int GetNoOfSides () const; 154 const G4Vector3D& GetViewpointDirection 139 const G4Vector3D& GetViewpointDirection () const; 155 const G4Vector3D& GetUpVector 140 const G4Vector3D& GetUpVector () const; 156 G4double GetFieldHalfAngle 141 G4double GetFieldHalfAngle () const; 157 G4double GetZoomFactor 142 G4double GetZoomFactor () const; 158 const G4Vector3D& GetScaleFactor 143 const G4Vector3D& GetScaleFactor () const; 159 const G4Point3D& GetCurrentTargetPoint 144 const G4Point3D& GetCurrentTargetPoint () const; 160 G4double GetDolly 145 G4double GetDolly () const; 161 G4bool GetLightsMoveWithCame 146 G4bool GetLightsMoveWithCamera () const; 162 const G4Vector3D& GetLightpointDirectio 147 const G4Vector3D& GetLightpointDirection () const; // Relative... 163 G4Vector3D& GetActualLightpointDi 148 G4Vector3D& GetActualLightpointDirection (); // Actual... 164 // ... depending on GetLightsMoveWithCamera. 149 // ... depending on GetLightsMoveWithCamera. 165 const G4VisAttributes* GetDefaultVisAttribut 150 const G4VisAttributes* GetDefaultVisAttributes () const; 166 const G4VisAttributes* GetDefaultTextVisAttr 151 const G4VisAttributes* GetDefaultTextVisAttributes () const; 167 const G4VMarker& GetDefaultMarker 152 const G4VMarker& GetDefaultMarker () const; 168 G4double GetGlobalMarkerScale 153 G4double GetGlobalMarkerScale () const; 169 G4double GetGlobalLineWidthSca 154 G4double GetGlobalLineWidthScale () const; 170 G4bool IsMarkerNotHidden 155 G4bool IsMarkerNotHidden () const; 171 unsigned int GetWindowSizeHintX << 156 G4int GetWindowSizeHintX () const; 172 unsigned int GetWindowSizeHintY << 157 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 158 const G4String& GetXGeometryString () const; 180 // GetXGeometryString is intended to be pars << 159 // If non-null, can be interpreted with XParseGeometry (see man 181 // It contains the size information, as in G << 160 // pages). Supercedes GetWindowSizeHintX/Y. 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 161 G4bool IsAutoRefresh () const; 192 const G4Colour& GetBackgroundColour << 162 const G4Colour& GetBackgroundColour () const; 193 G4bool IsPicking 163 G4bool IsPicking () const; 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 164 219 // Here Follow functions to evaluate useful << 165 // Here Follow functions to evaluate the above algorithms as a 220 // function of the radius of the Bounding Ex << 166 // function of the radius of the Bounding Sphere of the object being 221 // viewed. Call them in the order given - f 167 // viewed. Call them in the order given - for efficiency, later 222 // functions depend on the results of earlie 168 // functions depend on the results of earlier ones (Store the 223 // results of earlier functions in your own 169 // results of earlier functions in your own temporary variables - 224 // see, for example, G4OpenGLView::SetView ( 170 // see, for example, G4OpenGLView::SetView ().) 225 G4double GetCameraDistance (G4double radius 171 G4double GetCameraDistance (G4double radius) const; 226 G4double GetNearDistance (G4double camera 172 G4double GetNearDistance (G4double cameraDistance, G4double radius) const; 227 G4double GetFarDistance (G4double camera 173 G4double GetFarDistance (G4double cameraDistance, 228 G4double nearDistance, G4double r 174 G4double nearDistance, G4double radius) const; 229 G4double GetFrontHalfHeight (G4double nearDi 175 G4double GetFrontHalfHeight (G4double nearDistance, G4double radius) const; 230 176 231 // Set, Add, Multiply, Increment, Unset and 177 // Set, Add, Multiply, Increment, Unset and Clear functions. 232 void SetDrawingStyle (G4ViewParamete 178 void SetDrawingStyle (G4ViewParameters::DrawingStyle style); 233 G4int SetNumberOfCloudPoints (G4int); // Re << 234 void SetAuxEdgeVisible (G4bool); 179 void SetAuxEdgeVisible (G4bool); >> 180 void SetRepStyle (G4ViewParameters::RepStyle style); 235 void SetCulling (G4bool); 181 void SetCulling (G4bool); 236 void SetCullingInvisible (G4bool); 182 void SetCullingInvisible (G4bool); 237 void SetDensityCulling (G4bool); 183 void SetDensityCulling (G4bool); 238 void SetVisibleDensity (G4double visib 184 void SetVisibleDensity (G4double visibleDensity); 239 void SetCullingCovered (G4bool); 185 void SetCullingCovered (G4bool); 240 void SetCBDAlgorithmNumber (G4int); << 241 void SetCBDParameters (const std::vec << 242 void SetSectionPlane (const G4Plane3 186 void SetSectionPlane (const G4Plane3D& sectionPlane); 243 void UnsetSectionPlane (); 187 void UnsetSectionPlane (); 244 void SetCutawayMode (CutawayMode); 188 void SetCutawayMode (CutawayMode); 245 void AddCutawayPlane (const G4Plane3 189 void AddCutawayPlane (const G4Plane3D& cutawayPlane); 246 void ChangeCutawayPlane (size_t index, 190 void ChangeCutawayPlane (size_t index, const G4Plane3D& cutawayPlane); 247 void ClearCutawayPlanes (); 191 void ClearCutawayPlanes (); 248 void SetExplodeFactor (G4double explo 192 void SetExplodeFactor (G4double explodeFactor); 249 void UnsetExplodeFactor (); 193 void UnsetExplodeFactor (); 250 void SetExplodeCentre (const G4Point3 194 void SetExplodeCentre (const G4Point3D& explodeCentre); 251 G4int SetNoOfSides (G4int nSides); << 195 G4int SetNoOfSides (G4int nSides); // Returns actual number set. 252 void SetViewpointDirection (const G4Vector 196 void SetViewpointDirection (const G4Vector3D& viewpointDirection); 253 // Calls the following to get lightpoint dir 197 // Calls the following to get lightpoint direction right too. 254 void SetViewAndLights (const G4Vector 198 void SetViewAndLights (const G4Vector3D& viewpointDirection); 255 // Also sets lightpoint direction according 199 // Also sets lightpoint direction according to G4bool fLightsMoveWithCamera. 256 void SetUpVector (const G4Vector 200 void SetUpVector (const G4Vector3D& upVector); 257 void SetFieldHalfAngle (G4double field 201 void SetFieldHalfAngle (G4double fieldHalfAngle); 258 void SetOrthogonalProjection (); // This an << 259 void SetPerspectiveProjection(G4double field << 260 void SetZoomFactor (G4double zoomF 202 void SetZoomFactor (G4double zoomFactor); 261 void MultiplyZoomFactor (G4double zoomF 203 void MultiplyZoomFactor (G4double zoomFactorMultiplier); 262 void SetScaleFactor (const G4Vector 204 void SetScaleFactor (const G4Vector3D& scaleFactor); 263 void MultiplyScaleFactor (const G4Vector 205 void MultiplyScaleFactor (const G4Vector3D& scaleFactorMultiplier); 264 void SetCurrentTargetPoint (const G4Point3 206 void SetCurrentTargetPoint (const G4Point3D& currentTargetPoint); 265 void SetDolly (G4double dolly 207 void SetDolly (G4double dolly); 266 void IncrementDolly (G4double dolly 208 void IncrementDolly (G4double dollyIncrement); 267 void SetLightpointDirection (const G4Vector 209 void SetLightpointDirection (const G4Vector3D& lightpointDirection); 268 void SetLightsMoveWithCamera (G4bool moves); 210 void SetLightsMoveWithCamera (G4bool moves); 269 void SetPan (G4double right 211 void SetPan (G4double right, G4double up); 270 void IncrementPan (G4double right 212 void IncrementPan (G4double right, G4double up); 271 // Increment currentTarget point perpendicul << 272 void IncrementPan (G4double right << 273 // Increment currentTarget point also along << 274 void SetDefaultVisAttributes (const G4VisAtt 213 void SetDefaultVisAttributes (const G4VisAttributes&); 275 void SetDefaultColour (const G4Colour << 276 void SetDefaultTextVisAttributes (const G4Vi 214 void SetDefaultTextVisAttributes (const G4VisAttributes&); 277 void SetDefaultTextColour (const G4Colour << 278 void SetDefaultMarker (const G4VMarke 215 void SetDefaultMarker (const G4VMarker& defaultMarker); 279 void SetGlobalMarkerScale (G4double globa 216 void SetGlobalMarkerScale (G4double globalMarkerScale); 280 void SetGlobalLineWidthScale (G4double globa 217 void SetGlobalLineWidthScale (G4double globalLineWidthScale); 281 void SetMarkerHidden (); 218 void SetMarkerHidden (); 282 void SetMarkerNotHidden (); 219 void SetMarkerNotHidden (); 283 void SetWindowSizeHint (G4int xHint, G 220 void SetWindowSizeHint (G4int xHint, G4int yHint); 284 void SetWindowLocationHint (G4int xHint, G << 285 void SetXGeometryString (const G4String 221 void SetXGeometryString (const G4String&); 286 void SetAutoRefresh (G4bool); 222 void SetAutoRefresh (G4bool); 287 void SetBackgroundColour (const G4Colour 223 void SetBackgroundColour (const G4Colour&); 288 void SetPicking (G4bool); 224 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 225 323 // Other functions. << 324 void PrintDifferences (const G4ViewParameter 226 void PrintDifferences (const G4ViewParameters& v) const; 325 227 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: 228 private: 340 << 341 G4int ParseGeometry ( const char *string, G4 << 342 G4int ReadInteger(char *string, char **NextS << 343 229 344 DrawingStyle fDrawingStyle; // Drawing st 230 DrawingStyle fDrawingStyle; // Drawing style. 345 G4int fNumberOfCloudPoints; // For dr << 346 // <= 0 m << 347 G4bool fAuxEdgeVisible; // Auxiliary 231 G4bool fAuxEdgeVisible; // Auxiliary edge visibility. >> 232 RepStyle fRepStyle; // Representation style. 348 G4bool fCulling; // Culling re 233 G4bool fCulling; // Culling requested. 349 G4bool fCullInvisible; // Cull (don' 234 G4bool fCullInvisible; // Cull (don't Draw) invisible objects. 350 G4bool fDensityCulling; // Density cu 235 G4bool fDensityCulling; // Density culling requested. If so... 351 G4double fVisibleDensity; // ...density 236 G4double fVisibleDensity; // ...density lower than this not drawn. 352 G4bool fCullCovered; // Cull daugh 237 G4bool fCullCovered; // Cull daughters covered by opaque mothers. 353 G4int fCBDAlgorithmNumber; // Colour << 354 std::vector<G4double> fCBDParameters; // Col << 355 G4bool fSection; // Section dr 238 G4bool fSection; // Section drawing requested (DCUT in GEANT3). 356 G4Plane3D fSectionPlane; // Cut plane 239 G4Plane3D fSectionPlane; // Cut plane for section drawing (DCUT). 357 CutawayMode fCutawayMode; // Cutaway mo 240 CutawayMode fCutawayMode; // Cutaway mode. 358 G4Planes fCutawayPlanes; // Set of pla 241 G4Planes fCutawayPlanes; // Set of planes used for cutaway. 359 G4double fExplodeFactor; // Explode al 242 G4double fExplodeFactor; // Explode along radius by this factor... 360 G4Point3D fExplodeCentre; // ...about t 243 G4Point3D fExplodeCentre; // ...about this centre. 361 G4int fNoOfSides; // ...if poly 244 G4int fNoOfSides; // ...if polygon approximates circle. 362 G4Vector3D fViewpointDirection; 245 G4Vector3D fViewpointDirection; 363 G4Vector3D fUpVector; // Up vector. 246 G4Vector3D fUpVector; // Up vector. (Warning: MUST NOT be parallel 364 // to fViewpo 247 // to fViewpointDirection!) 365 G4double fFieldHalfAngle; // Radius / c 248 G4double fFieldHalfAngle; // Radius / camara distance, 0 for parallel. 366 G4double fZoomFactor; // Magnificat 249 G4double fZoomFactor; // Magnification relative to Standard View. 367 G4Vector3D fScaleFactor; // (Non-unifo 250 G4Vector3D fScaleFactor; // (Non-uniform) scale/magnification factor. 368 G4Point3D fCurrentTargetPoint; // Relati 251 G4Point3D fCurrentTargetPoint; // Relative to standard target point. 369 G4double fDolly; // Distance t 252 G4double fDolly; // Distance towards current target point. 370 G4bool fLightsMoveWithCamera; 253 G4bool fLightsMoveWithCamera; 371 G4Vector3D fRelativeLightpointDirection; 254 G4Vector3D fRelativeLightpointDirection; 372 // i.e., rel. to object or camera accoding t 255 // i.e., rel. to object or camera accoding to G4bool fLightsMoveWithCamera. 373 G4Vector3D fActualLightpointDirection; 256 G4Vector3D fActualLightpointDirection; 374 G4VisAttributes fDefaultVisAttributes; 257 G4VisAttributes fDefaultVisAttributes; 375 G4VisAttributes fDefaultTextVisAttributes; 258 G4VisAttributes fDefaultTextVisAttributes; 376 G4VMarker fDefaultMarker; 259 G4VMarker fDefaultMarker; 377 G4double fGlobalMarkerScale; 260 G4double fGlobalMarkerScale; 378 G4double fGlobalLineWidthScale; 261 G4double fGlobalLineWidthScale; 379 G4bool fMarkerNotHidden; 262 G4bool fMarkerNotHidden; 380 // True if transients are to be drawn and no 263 // True if transients are to be drawn and not hidden by 381 // hidden-line-hidden-surface removal algori 264 // hidden-line-hidden-surface removal algorithms, e.g., z-buffer 382 // testing; false if they are to be hidden-l 265 // testing; false if they are to be hidden-line-hidden-surface 383 // removed. 266 // removed. 384 G4int fWindowSizeHintX; // Size hints 267 G4int fWindowSizeHintX; // Size hints for pixel-based window systems. 385 G4int fWindowSizeHintY; 268 G4int fWindowSizeHintY; 386 G4int fWindowLocationHintX; // Locati << 387 G4int fWindowLocationHintY; << 388 G4bool fWindowLocationHintXNegative; / << 389 G4bool fWindowLocationHintYNegative; << 390 G4String fXGeometryString; // If non-nul 269 G4String fXGeometryString; // If non-null, geometry string for X Windows. 391 G4int fGeometryMask; // Correspond << 392 G4bool fAutoRefresh; // ...after c 270 G4bool fAutoRefresh; // ...after change of view parameters. 393 G4Colour fBackgroundColour; 271 G4Colour fBackgroundColour; 394 G4bool fPicking; // Request pi 272 G4bool fPicking; // Request picking. 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 }; 273 }; 422 274 423 #include "G4ViewParameters.icc" 275 #include "G4ViewParameters.icc" 424 276 425 #endif 277 #endif 426 278