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 // 27 // 28 // 28 // 29 // John Allison 20th October 1996 29 // John Allison 20th October 1996 30 // View parameters and options. 30 // View parameters and options. 31 31 32 inline G4ViewParameters::DrawingStyle 32 inline G4ViewParameters::DrawingStyle 33 G4ViewParameters::GetDrawingStyle () const { 33 G4ViewParameters::GetDrawingStyle () const { 34 return fDrawingStyle; 34 return fDrawingStyle; 35 } 35 } 36 36 37 inline G4bool G4ViewParameters::IsAuxEdgeVisib 37 inline G4bool G4ViewParameters::IsAuxEdgeVisible () const { 38 return fAuxEdgeVisible; 38 return fAuxEdgeVisible; 39 } 39 } 40 40 41 inline G4bool G4ViewParameters::IsCulling () c 41 inline G4bool G4ViewParameters::IsCulling () const { 42 return fCulling; 42 return fCulling; 43 } 43 } 44 44 45 inline G4bool G4ViewParameters::IsCullingInvis 45 inline G4bool G4ViewParameters::IsCullingInvisible () const { 46 return fCullInvisible; 46 return fCullInvisible; 47 } 47 } 48 48 49 inline G4bool G4ViewParameters::IsDensityCulli 49 inline G4bool G4ViewParameters::IsDensityCulling () const { 50 return fDensityCulling; 50 return fDensityCulling; 51 } 51 } 52 52 53 inline G4double G4ViewParameters::GetVisibleDe 53 inline G4double G4ViewParameters::GetVisibleDensity () const { 54 return fVisibleDensity; 54 return fVisibleDensity; 55 } 55 } 56 56 57 inline G4bool G4ViewParameters::IsCullingCover 57 inline G4bool G4ViewParameters::IsCullingCovered () const { 58 return fCullCovered; 58 return fCullCovered; 59 } 59 } 60 60 61 inline G4int G4ViewParameters::GetCBDAlgorithm 61 inline G4int G4ViewParameters::GetCBDAlgorithmNumber () const { 62 return fCBDAlgorithmNumber; 62 return fCBDAlgorithmNumber; 63 } 63 } 64 64 65 inline const std::vector<G4double>& G4ViewPara 65 inline const std::vector<G4double>& G4ViewParameters::GetCBDParameters () const { 66 return fCBDParameters; 66 return fCBDParameters; 67 } 67 } 68 68 69 inline G4bool G4ViewParameters::IsSection () c 69 inline G4bool G4ViewParameters::IsSection () const { 70 return fSection; 70 return fSection; 71 } 71 } 72 72 73 inline const G4Plane3D& G4ViewParameters::GetS 73 inline const G4Plane3D& G4ViewParameters::GetSectionPlane () const { 74 return fSectionPlane; 74 return fSectionPlane; 75 } 75 } 76 76 77 inline G4bool G4ViewParameters::IsCutaway () c 77 inline G4bool G4ViewParameters::IsCutaway () const { 78 return fCutawayPlanes.size() > 0; 78 return fCutawayPlanes.size() > 0; 79 } 79 } 80 80 81 inline G4ViewParameters::CutawayMode G4ViewPar 81 inline G4ViewParameters::CutawayMode G4ViewParameters::GetCutawayMode () const 82 { return fCutawayMode;} 82 { return fCutawayMode;} 83 83 84 inline const G4Planes& G4ViewParameters::GetCu 84 inline const G4Planes& G4ViewParameters::GetCutawayPlanes () const { 85 return fCutawayPlanes; 85 return fCutawayPlanes; 86 } 86 } 87 87 88 inline G4bool G4ViewParameters::IsExplode () c 88 inline G4bool G4ViewParameters::IsExplode () const { 89 return fExplodeFactor > 1.; 89 return fExplodeFactor > 1.; 90 } 90 } 91 91 92 inline G4double G4ViewParameters::GetExplodeFa 92 inline G4double G4ViewParameters::GetExplodeFactor () const { 93 return fExplodeFactor; 93 return fExplodeFactor; 94 } 94 } 95 95 96 inline const G4Point3D& G4ViewParameters::GetE 96 inline const G4Point3D& G4ViewParameters::GetExplodeCentre () const { 97 return fExplodeCentre; 97 return fExplodeCentre; 98 } 98 } 99 99 100 inline G4int G4ViewParameters::GetNoOfSides () 100 inline G4int G4ViewParameters::GetNoOfSides () const { 101 return fNoOfSides; 101 return fNoOfSides; 102 } 102 } 103 103 104 inline const G4Vector3D& G4ViewParameters::Get 104 inline const G4Vector3D& G4ViewParameters::GetViewpointDirection () const { 105 return fViewpointDirection; 105 return fViewpointDirection; 106 } 106 } 107 107 108 inline const G4Vector3D& G4ViewParameters::Get 108 inline const G4Vector3D& G4ViewParameters::GetUpVector () const { 109 return fUpVector; 109 return fUpVector; 110 } 110 } 111 111 112 inline G4double G4ViewParameters::GetFieldHalf 112 inline G4double G4ViewParameters::GetFieldHalfAngle () const { 113 return fFieldHalfAngle; 113 return fFieldHalfAngle; 114 } 114 } 115 115 116 inline G4double G4ViewParameters::GetZoomFacto 116 inline G4double G4ViewParameters::GetZoomFactor () const { 117 return fZoomFactor; 117 return fZoomFactor; 118 } 118 } 119 119 120 inline const G4Vector3D& G4ViewParameters::Get 120 inline const G4Vector3D& G4ViewParameters::GetScaleFactor () const { 121 return fScaleFactor; 121 return fScaleFactor; 122 } 122 } 123 123 124 inline const G4Point3D& G4ViewParameters::GetC 124 inline const G4Point3D& G4ViewParameters::GetCurrentTargetPoint () const { 125 return fCurrentTargetPoint; 125 return fCurrentTargetPoint; 126 } 126 } 127 127 128 inline G4double G4ViewParameters::GetDolly () 128 inline G4double G4ViewParameters::GetDolly () const { 129 return fDolly; 129 return fDolly; 130 } 130 } 131 131 132 inline const G4Vector3D& G4ViewParameters::Get 132 inline const G4Vector3D& G4ViewParameters::GetLightpointDirection () const { 133 return fRelativeLightpointDirection; 133 return fRelativeLightpointDirection; 134 } 134 } 135 135 136 inline G4bool G4ViewParameters::GetLightsMoveW 136 inline G4bool G4ViewParameters::GetLightsMoveWithCamera () const { 137 return fLightsMoveWithCamera; 137 return fLightsMoveWithCamera; 138 } 138 } 139 139 140 inline const G4VisAttributes* 140 inline const G4VisAttributes* 141 G4ViewParameters::GetDefaultVisAttributes () c 141 G4ViewParameters::GetDefaultVisAttributes () const { 142 return &fDefaultVisAttributes; 142 return &fDefaultVisAttributes; 143 } 143 } 144 144 145 inline const G4VisAttributes* 145 inline const G4VisAttributes* 146 G4ViewParameters::GetDefaultTextVisAttributes 146 G4ViewParameters::GetDefaultTextVisAttributes () const { 147 return &fDefaultTextVisAttributes; 147 return &fDefaultTextVisAttributes; 148 } 148 } 149 149 150 inline const G4VMarker& G4ViewParameters::GetD 150 inline const G4VMarker& G4ViewParameters::GetDefaultMarker () const { 151 return fDefaultMarker; 151 return fDefaultMarker; 152 } 152 } 153 153 154 inline G4double G4ViewParameters::GetGlobalMar 154 inline G4double G4ViewParameters::GetGlobalMarkerScale () const { 155 return fGlobalMarkerScale; 155 return fGlobalMarkerScale; 156 } 156 } 157 157 158 inline G4double G4ViewParameters::GetGlobalLin 158 inline G4double G4ViewParameters::GetGlobalLineWidthScale () const { 159 return fGlobalLineWidthScale; 159 return fGlobalLineWidthScale; 160 } 160 } 161 161 162 inline G4bool G4ViewParameters::IsMarkerNotHid 162 inline G4bool G4ViewParameters::IsMarkerNotHidden () const { 163 return fMarkerNotHidden; 163 return fMarkerNotHidden; 164 } 164 } 165 165 166 inline bool G4ViewParameters::IsWindowSizeHint 166 inline bool G4ViewParameters::IsWindowSizeHintX () const { 167 return ((fGeometryMask & fWidthValue) != 0); 167 return ((fGeometryMask & fWidthValue) != 0); 168 } 168 } 169 169 170 inline bool G4ViewParameters::IsWindowSizeHint 170 inline bool G4ViewParameters::IsWindowSizeHintY () const { 171 return ((fGeometryMask & fHeightValue) != 0) 171 return ((fGeometryMask & fHeightValue) != 0); 172 } 172 } 173 173 174 inline bool G4ViewParameters::IsWindowLocation 174 inline bool G4ViewParameters::IsWindowLocationHintX () const { 175 return ((fGeometryMask & fXValue) != 0); 175 return ((fGeometryMask & fXValue) != 0); 176 } 176 } 177 177 178 inline bool G4ViewParameters::IsWindowLocation 178 inline bool G4ViewParameters::IsWindowLocationHintY () const { 179 return ((fGeometryMask & fYValue) != 0); 179 return ((fGeometryMask & fYValue) != 0); 180 } 180 } 181 181 182 inline unsigned int G4ViewParameters::GetWindo 182 inline unsigned int G4ViewParameters::GetWindowSizeHintX () const { 183 return fWindowSizeHintX; 183 return fWindowSizeHintX; 184 } 184 } 185 185 186 inline unsigned int G4ViewParameters::GetWindo 186 inline unsigned int G4ViewParameters::GetWindowSizeHintY () const { 187 return fWindowSizeHintY; 187 return fWindowSizeHintY; 188 } 188 } 189 189 190 inline G4int G4ViewParameters::GetWindowLocati 190 inline G4int G4ViewParameters::GetWindowLocationHintX () const { 191 return fWindowLocationHintX; 191 return fWindowLocationHintX; 192 } 192 } 193 193 194 inline G4int G4ViewParameters::GetWindowLocati 194 inline G4int G4ViewParameters::GetWindowLocationHintY () const { 195 return fWindowLocationHintY; 195 return fWindowLocationHintY; 196 } 196 } 197 197 198 inline G4bool G4ViewParameters::IsWindowLocati 198 inline G4bool G4ViewParameters::IsWindowLocationHintXNegative () const { 199 return fWindowLocationHintXNegative; 199 return fWindowLocationHintXNegative; 200 } 200 } 201 201 202 inline G4bool G4ViewParameters::IsWindowLocati 202 inline G4bool G4ViewParameters::IsWindowLocationHintYNegative () const { 203 return fWindowLocationHintYNegative; 203 return fWindowLocationHintYNegative; 204 } 204 } 205 205 206 inline const G4String& G4ViewParameters::GetXG 206 inline const G4String& G4ViewParameters::GetXGeometryString () const { 207 return fXGeometryString; 207 return fXGeometryString; 208 } 208 } 209 209 210 inline G4bool G4ViewParameters::IsAutoRefresh 210 inline G4bool G4ViewParameters::IsAutoRefresh () const { 211 return fAutoRefresh; 211 return fAutoRefresh; 212 } 212 } 213 213 214 inline const G4Colour& G4ViewParameters::GetBa 214 inline const G4Colour& G4ViewParameters::GetBackgroundColour () const { 215 return fBackgroundColour; 215 return fBackgroundColour; 216 } 216 } 217 217 218 inline G4bool G4ViewParameters::IsPicking () c 218 inline G4bool G4ViewParameters::IsPicking () const { 219 return fPicking; 219 return fPicking; 220 } 220 } 221 221 222 inline G4ViewParameters::RotationStyle 222 inline G4ViewParameters::RotationStyle 223 G4ViewParameters::GetRotationStyle() const {re 223 G4ViewParameters::GetRotationStyle() const {return fRotationStyle;} 224 224 225 inline const std::vector<G4ModelingParameters: 225 inline const std::vector<G4ModelingParameters::VisAttributesModifier>& 226 G4ViewParameters::GetVisAttributesModifiers() 226 G4ViewParameters::GetVisAttributesModifiers() const { 227 return fVisAttributesModifiers; 227 return fVisAttributesModifiers; 228 } 228 } 229 229 230 inline G4double G4ViewParameters::GetStartTime 230 inline G4double G4ViewParameters::GetStartTime () const { 231 return fStartTime; 231 return fStartTime; 232 } 232 } 233 233 234 inline G4double G4ViewParameters::GetEndTime ( 234 inline G4double G4ViewParameters::GetEndTime () const { 235 return fEndTime; 235 return fEndTime; 236 } 236 } 237 237 238 inline G4double G4ViewParameters::GetFadeFacto 238 inline G4double G4ViewParameters::GetFadeFactor () const { 239 return fFadeFactor; 239 return fFadeFactor; 240 } 240 } 241 241 242 inline G4bool G4ViewParameters::IsDisplayHeadT 242 inline G4bool G4ViewParameters::IsDisplayHeadTime () const { 243 return fDisplayHeadTime; 243 return fDisplayHeadTime; 244 } 244 } 245 245 246 inline G4double G4ViewParameters::GetDisplayHe 246 inline G4double G4ViewParameters::GetDisplayHeadTimeX () const { 247 return fDisplayHeadTimeX; 247 return fDisplayHeadTimeX; 248 } 248 } 249 249 250 inline G4double G4ViewParameters::GetDisplayHe 250 inline G4double G4ViewParameters::GetDisplayHeadTimeY () const { 251 return fDisplayHeadTimeY; 251 return fDisplayHeadTimeY; 252 } 252 } 253 253 254 inline G4double G4ViewParameters::GetDisplayHe 254 inline G4double G4ViewParameters::GetDisplayHeadTimeSize () const { 255 return fDisplayHeadTimeSize; 255 return fDisplayHeadTimeSize; 256 } 256 } 257 257 258 inline G4double G4ViewParameters::GetDisplayHe 258 inline G4double G4ViewParameters::GetDisplayHeadTimeRed () const { 259 return fDisplayHeadTimeRed; 259 return fDisplayHeadTimeRed; 260 } 260 } 261 261 262 inline G4double G4ViewParameters::GetDisplayHe 262 inline G4double G4ViewParameters::GetDisplayHeadTimeGreen () const { 263 return fDisplayHeadTimeGreen; 263 return fDisplayHeadTimeGreen; 264 } 264 } 265 265 266 inline G4double G4ViewParameters::GetDisplayHe 266 inline G4double G4ViewParameters::GetDisplayHeadTimeBlue () const { 267 return fDisplayHeadTimeBlue; 267 return fDisplayHeadTimeBlue; 268 } 268 } 269 269 270 inline G4bool G4ViewParameters::IsDisplayLight 270 inline G4bool G4ViewParameters::IsDisplayLightFront () const { 271 return fDisplayLightFront; 271 return fDisplayLightFront; 272 } 272 } 273 273 274 inline G4double G4ViewParameters::GetDisplayLi 274 inline G4double G4ViewParameters::GetDisplayLightFrontX () const { 275 return fDisplayLightFrontX; 275 return fDisplayLightFrontX; 276 } 276 } 277 277 278 inline G4double G4ViewParameters::GetDisplayLi 278 inline G4double G4ViewParameters::GetDisplayLightFrontY () const { 279 return fDisplayLightFrontY; 279 return fDisplayLightFrontY; 280 } 280 } 281 281 282 inline G4double G4ViewParameters::GetDisplayLi 282 inline G4double G4ViewParameters::GetDisplayLightFrontZ () const { 283 return fDisplayLightFrontZ; 283 return fDisplayLightFrontZ; 284 } 284 } 285 285 286 inline G4double G4ViewParameters::GetDisplayLi 286 inline G4double G4ViewParameters::GetDisplayLightFrontT () const { 287 return fDisplayLightFrontT; 287 return fDisplayLightFrontT; 288 } 288 } 289 289 290 inline G4double G4ViewParameters::GetDisplayLi 290 inline G4double G4ViewParameters::GetDisplayLightFrontRed () const { 291 return fDisplayLightFrontRed; 291 return fDisplayLightFrontRed; 292 } 292 } 293 293 294 inline G4double G4ViewParameters::GetDisplayLi 294 inline G4double G4ViewParameters::GetDisplayLightFrontGreen () const { 295 return fDisplayLightFrontGreen; 295 return fDisplayLightFrontGreen; 296 } 296 } 297 297 298 inline G4double G4ViewParameters::GetDisplayLi 298 inline G4double G4ViewParameters::GetDisplayLightFrontBlue () const { 299 return fDisplayLightFrontBlue; 299 return fDisplayLightFrontBlue; 300 } 300 } 301 301 302 inline G4int G4ViewParameters::GetNumberOfClou 302 inline G4int G4ViewParameters::GetNumberOfCloudPoints () const { 303 return fNumberOfCloudPoints; 303 return fNumberOfCloudPoints; 304 } 304 } 305 305 306 inline G4bool G4ViewParameters::IsSpecialMeshR 306 inline G4bool G4ViewParameters::IsSpecialMeshRendering () const 307 {return fSpecialMeshRendering;} 307 {return fSpecialMeshRendering;} 308 308 309 inline G4ViewParameters::SMROption G4ViewParam 309 inline G4ViewParameters::SMROption G4ViewParameters::GetSpecialMeshRenderingOption () const 310 {return fSpecialMeshRenderingOption;} 310 {return fSpecialMeshRenderingOption;} 311 311 312 inline const std::vector<G4ModelingParameters: 312 inline const std::vector<G4ModelingParameters::PVNameCopyNo>& 313 G4ViewParameters::GetSpecialMeshVolumes() cons 313 G4ViewParameters::GetSpecialMeshVolumes() const 314 {return fSpecialMeshVolumes;} 314 {return fSpecialMeshVolumes;} 315 315 316 inline void 316 inline void 317 G4ViewParameters::SetDrawingStyle (G4ViewParam 317 G4ViewParameters::SetDrawingStyle (G4ViewParameters::DrawingStyle style) { 318 fDrawingStyle = style; 318 fDrawingStyle = style; 319 } 319 } 320 320 321 inline void G4ViewParameters::SetAuxEdgeVisibl 321 inline void G4ViewParameters::SetAuxEdgeVisible (G4bool vis) { 322 fAuxEdgeVisible = vis; 322 fAuxEdgeVisible = vis; 323 } 323 } 324 324 325 inline void G4ViewParameters::SetCulling (G4bo 325 inline void G4ViewParameters::SetCulling (G4bool value) { 326 fCulling = value; 326 fCulling = value; 327 } 327 } 328 328 329 inline void G4ViewParameters::SetCullingInvisi 329 inline void G4ViewParameters::SetCullingInvisible (G4bool value) { 330 fCullInvisible = value; 330 fCullInvisible = value; 331 } 331 } 332 332 333 inline void G4ViewParameters::SetDensityCullin 333 inline void G4ViewParameters::SetDensityCulling (G4bool value) { 334 fDensityCulling = value; 334 fDensityCulling = value; 335 } 335 } 336 336 337 inline void G4ViewParameters::SetCullingCovere 337 inline void G4ViewParameters::SetCullingCovered (G4bool value) { 338 fCullCovered = value; 338 fCullCovered = value; 339 } 339 } 340 340 341 inline void G4ViewParameters::SetCBDAlgorithmN 341 inline void G4ViewParameters::SetCBDAlgorithmNumber (G4int n) { 342 fCBDAlgorithmNumber = n; 342 fCBDAlgorithmNumber = n; 343 } 343 } 344 344 345 inline void G4ViewParameters::SetCBDParameters 345 inline void G4ViewParameters::SetCBDParameters (const std::vector<G4double>& p) { 346 fCBDParameters = p; 346 fCBDParameters = p; 347 } 347 } 348 348 349 inline void G4ViewParameters::SetSectionPlane 349 inline void G4ViewParameters::SetSectionPlane (const G4Plane3D& sectionPlane) { 350 fSection = true; 350 fSection = true; 351 fSectionPlane = sectionPlane; 351 fSectionPlane = sectionPlane; 352 } 352 } 353 353 354 inline void G4ViewParameters::UnsetSectionPlan 354 inline void G4ViewParameters::UnsetSectionPlane () { 355 fSection = false; 355 fSection = false; 356 } 356 } 357 357 358 inline void G4ViewParameters::SetCutawayMode 358 inline void G4ViewParameters::SetCutawayMode 359 (G4ViewParameters::CutawayMode cutawayMode) { 359 (G4ViewParameters::CutawayMode cutawayMode) { 360 fCutawayMode = cutawayMode; 360 fCutawayMode = cutawayMode; 361 } 361 } 362 362 363 inline void G4ViewParameters::ClearCutawayPlan 363 inline void G4ViewParameters::ClearCutawayPlanes () { 364 fCutawayPlanes.clear (); 364 fCutawayPlanes.clear (); 365 } 365 } 366 366 367 inline void G4ViewParameters::SetViewpointDire 367 inline void G4ViewParameters::SetViewpointDirection 368 (const G4Vector3D& viewpointDirection) { 368 (const G4Vector3D& viewpointDirection) { 369 SetViewAndLights (viewpointDirection); 369 SetViewAndLights (viewpointDirection); 370 } 370 } 371 371 372 inline void G4ViewParameters::SetExplodeFactor 372 inline void G4ViewParameters::SetExplodeFactor (G4double explodeFactor) { 373 fExplodeFactor = explodeFactor; 373 fExplodeFactor = explodeFactor; 374 if (fExplodeFactor < 1.) fExplodeFactor = 1. 374 if (fExplodeFactor < 1.) fExplodeFactor = 1.; 375 } 375 } 376 376 377 inline void G4ViewParameters::UnsetExplodeFact 377 inline void G4ViewParameters::UnsetExplodeFactor () { 378 fExplodeFactor = 1.; 378 fExplodeFactor = 1.; 379 } 379 } 380 380 381 inline void G4ViewParameters::SetExplodeCentre 381 inline void G4ViewParameters::SetExplodeCentre 382 (const G4Point3D& explodeCentre) { 382 (const G4Point3D& explodeCentre) { 383 fExplodeCentre = explodeCentre; 383 fExplodeCentre = explodeCentre; 384 } 384 } 385 inline void G4ViewParameters::SetUpVector (con 385 inline void G4ViewParameters::SetUpVector (const G4Vector3D& upVector) { 386 fUpVector = upVector; 386 fUpVector = upVector; 387 } 387 } 388 388 389 inline void G4ViewParameters::SetFieldHalfAngl 389 inline void G4ViewParameters::SetFieldHalfAngle (G4double fieldHalfAngle) { 390 fFieldHalfAngle = fieldHalfAngle; 390 fFieldHalfAngle = fieldHalfAngle; 391 } 391 } 392 392 393 inline void G4ViewParameters::SetOrthogonalPro 393 inline void G4ViewParameters::SetOrthogonalProjection () { 394 SetFieldHalfAngle(0.); 394 SetFieldHalfAngle(0.); 395 } 395 } 396 396 397 inline void G4ViewParameters::SetPerspectivePr 397 inline void G4ViewParameters::SetPerspectiveProjection(G4double fieldHalfAngle) { 398 SetFieldHalfAngle(fieldHalfAngle); 398 SetFieldHalfAngle(fieldHalfAngle); 399 } 399 } 400 400 401 inline void G4ViewParameters::SetZoomFactor (G 401 inline void G4ViewParameters::SetZoomFactor (G4double zoomFactor) { 402 fZoomFactor = zoomFactor; 402 fZoomFactor = zoomFactor; 403 } 403 } 404 404 405 inline void 405 inline void 406 G4ViewParameters::MultiplyZoomFactor (G4double 406 G4ViewParameters::MultiplyZoomFactor (G4double zoomFactorMultiplier) { 407 fZoomFactor *= zoomFactorMultiplier; 407 fZoomFactor *= zoomFactorMultiplier; 408 } 408 } 409 409 410 inline void G4ViewParameters::SetScaleFactor ( 410 inline void G4ViewParameters::SetScaleFactor (const G4Vector3D& scaleFactor) { 411 fScaleFactor = scaleFactor; 411 fScaleFactor = scaleFactor; 412 } 412 } 413 413 414 inline void 414 inline void 415 G4ViewParameters::SetCurrentTargetPoint (const 415 G4ViewParameters::SetCurrentTargetPoint (const G4Point3D& currentTargetPoint) { 416 fCurrentTargetPoint = currentTargetPoint; 416 fCurrentTargetPoint = currentTargetPoint; 417 } 417 } 418 418 419 inline void G4ViewParameters::SetDolly (G4doub 419 inline void G4ViewParameters::SetDolly (G4double dolly) { 420 fDolly = dolly; 420 fDolly = dolly; 421 } 421 } 422 422 423 inline void G4ViewParameters::IncrementDolly ( 423 inline void G4ViewParameters::IncrementDolly (G4double dollyIncrement) { 424 fDolly += dollyIncrement; 424 fDolly += dollyIncrement; 425 } 425 } 426 426 427 inline void G4ViewParameters::SetLightsMoveWit 427 inline void G4ViewParameters::SetLightsMoveWithCamera (G4bool moves) { 428 fLightsMoveWithCamera = moves; 428 fLightsMoveWithCamera = moves; 429 } 429 } 430 430 431 inline void G4ViewParameters::SetDefaultVisAtt 431 inline void G4ViewParameters::SetDefaultVisAttributes 432 (const G4VisAttributes& defaultVisAttributes) 432 (const G4VisAttributes& defaultVisAttributes) { 433 fDefaultVisAttributes = defaultVisAttributes 433 fDefaultVisAttributes = defaultVisAttributes; 434 } 434 } 435 435 436 inline void G4ViewParameters::SetDefaultColour 436 inline void G4ViewParameters::SetDefaultColour (const G4Colour& colour) { 437 fDefaultVisAttributes.SetColour (colour); 437 fDefaultVisAttributes.SetColour (colour); 438 } 438 } 439 439 440 inline void G4ViewParameters::SetDefaultTextVi 440 inline void G4ViewParameters::SetDefaultTextVisAttributes 441 (const G4VisAttributes& defaultTextVisAttribut 441 (const G4VisAttributes& defaultTextVisAttributes) { 442 fDefaultTextVisAttributes = defaultTextVisAt 442 fDefaultTextVisAttributes = defaultTextVisAttributes; 443 } 443 } 444 444 445 inline void G4ViewParameters::SetDefaultTextCo 445 inline void G4ViewParameters::SetDefaultTextColour (const G4Colour& colour) { 446 fDefaultTextVisAttributes.SetColour (colour) 446 fDefaultTextVisAttributes.SetColour (colour); 447 } 447 } 448 448 449 inline void 449 inline void 450 G4ViewParameters::SetDefaultMarker (const G4VM 450 G4ViewParameters::SetDefaultMarker (const G4VMarker& defaultMarker) { 451 fDefaultMarker = defaultMarker; 451 fDefaultMarker = defaultMarker; 452 } 452 } 453 453 454 inline void 454 inline void 455 G4ViewParameters::SetGlobalMarkerScale (G4doub 455 G4ViewParameters::SetGlobalMarkerScale (G4double globalMarkerScale) { 456 fGlobalMarkerScale = globalMarkerScale; 456 fGlobalMarkerScale = globalMarkerScale; 457 } 457 } 458 458 459 inline void 459 inline void 460 G4ViewParameters::SetGlobalLineWidthScale (G4d 460 G4ViewParameters::SetGlobalLineWidthScale (G4double globalLineWidthScale) { 461 fGlobalLineWidthScale = globalLineWidthScale 461 fGlobalLineWidthScale = globalLineWidthScale; 462 } 462 } 463 463 464 inline void G4ViewParameters::SetMarkerHidden 464 inline void G4ViewParameters::SetMarkerHidden () { 465 fMarkerNotHidden = false; 465 fMarkerNotHidden = false; 466 } 466 } 467 467 468 inline void G4ViewParameters::SetMarkerNotHidd 468 inline void G4ViewParameters::SetMarkerNotHidden () { 469 fMarkerNotHidden = true; 469 fMarkerNotHidden = true; 470 } 470 } 471 471 472 inline void G4ViewParameters::SetWindowSizeHin 472 inline void G4ViewParameters::SetWindowSizeHint (G4int xHint, G4int yHint) { 473 fWindowSizeHintX = xHint; 473 fWindowSizeHintX = xHint; 474 fWindowSizeHintY = yHint; 474 fWindowSizeHintY = yHint; 475 } 475 } 476 476 477 inline void G4ViewParameters::SetWindowLocatio 477 inline void G4ViewParameters::SetWindowLocationHint (G4int xHint, G4int yHint) { 478 fWindowLocationHintX = xHint; 478 fWindowLocationHintX = xHint; 479 fWindowLocationHintY = yHint; 479 fWindowLocationHintY = yHint; 480 } 480 } 481 481 482 inline void G4ViewParameters::SetAutoRefresh ( 482 inline void G4ViewParameters::SetAutoRefresh (G4bool state) { 483 fAutoRefresh = state; 483 fAutoRefresh = state; 484 } 484 } 485 485 486 inline void G4ViewParameters::SetBackgroundCol 486 inline void G4ViewParameters::SetBackgroundColour (const G4Colour& colour) { 487 fBackgroundColour = colour; 487 fBackgroundColour = colour; 488 } 488 } 489 489 490 inline void G4ViewParameters::SetPicking (G4bo 490 inline void G4ViewParameters::SetPicking (G4bool picking) { 491 fPicking = picking; 491 fPicking = picking; 492 } 492 } 493 493 494 inline void G4ViewParameters::SetRotationStyle 494 inline void G4ViewParameters::SetRotationStyle 495 (G4ViewParameters::RotationStyle style) { 495 (G4ViewParameters::RotationStyle style) { 496 fRotationStyle = style; 496 fRotationStyle = style; 497 } 497 } 498 498 499 inline void G4ViewParameters::ClearVisAttribut 499 inline void G4ViewParameters::ClearVisAttributesModifiers () { 500 fVisAttributesModifiers.clear (); 500 fVisAttributesModifiers.clear (); 501 } 501 } 502 502 503 inline void G4ViewParameters::SetStartTime (G4 503 inline void G4ViewParameters::SetStartTime (G4double startTime) { 504 fStartTime = startTime; 504 fStartTime = startTime; 505 } 505 } 506 506 507 inline void G4ViewParameters::SetEndTime (G4do 507 inline void G4ViewParameters::SetEndTime (G4double endTime) { 508 fEndTime = endTime; 508 fEndTime = endTime; 509 } 509 } 510 510 511 inline void G4ViewParameters::SetFadeFactor (G 511 inline void G4ViewParameters::SetFadeFactor (G4double fadeFactor) { 512 fFadeFactor = fadeFactor; 512 fFadeFactor = fadeFactor; 513 } 513 } 514 514 515 inline void G4ViewParameters::SetDisplayHeadTi 515 inline void G4ViewParameters::SetDisplayHeadTime (G4bool displayHeadTime) { 516 fDisplayHeadTime = displayHeadTime; 516 fDisplayHeadTime = displayHeadTime; 517 } 517 } 518 518 519 inline void G4ViewParameters::SetDisplayHeadTi 519 inline void G4ViewParameters::SetDisplayHeadTimeX (G4double displayHeadTimeX) { 520 fDisplayHeadTimeX = displayHeadTimeX; 520 fDisplayHeadTimeX = displayHeadTimeX; 521 } 521 } 522 522 523 inline void G4ViewParameters::SetDisplayHeadTi 523 inline void G4ViewParameters::SetDisplayHeadTimeY (G4double displayHeadTimeY) { 524 fDisplayHeadTimeY = displayHeadTimeY; 524 fDisplayHeadTimeY = displayHeadTimeY; 525 } 525 } 526 526 527 inline void G4ViewParameters::SetDisplayHeadTi 527 inline void G4ViewParameters::SetDisplayHeadTimeSize (G4double displayHeadTimeSize) { 528 fDisplayHeadTimeSize = displayHeadTimeSize; 528 fDisplayHeadTimeSize = displayHeadTimeSize; 529 } 529 } 530 530 531 inline void G4ViewParameters::SetDisplayHeadTi 531 inline void G4ViewParameters::SetDisplayHeadTimeRed (G4double displayHeadTimeRed) { 532 fDisplayHeadTimeRed = displayHeadTimeRed; 532 fDisplayHeadTimeRed = displayHeadTimeRed; 533 } 533 } 534 534 535 inline void G4ViewParameters::SetDisplayHeadTi 535 inline void G4ViewParameters::SetDisplayHeadTimeGreen (G4double displayHeadTimeGreen) { 536 fDisplayHeadTimeGreen = displayHeadTimeGreen 536 fDisplayHeadTimeGreen = displayHeadTimeGreen; 537 } 537 } 538 538 539 inline void G4ViewParameters::SetDisplayHeadTi 539 inline void G4ViewParameters::SetDisplayHeadTimeBlue (G4double displayHeadTimeBlue) { 540 fDisplayHeadTimeBlue = displayHeadTimeBlue; 540 fDisplayHeadTimeBlue = displayHeadTimeBlue; 541 } 541 } 542 542 543 inline void G4ViewParameters::SetDisplayLightF 543 inline void G4ViewParameters::SetDisplayLightFront (G4bool displayLightFront) { 544 fDisplayLightFront = displayLightFront; 544 fDisplayLightFront = displayLightFront; 545 } 545 } 546 546 547 inline void G4ViewParameters::SetDisplayLightF 547 inline void G4ViewParameters::SetDisplayLightFrontX (G4double displayLightFrontX) { 548 fDisplayLightFrontX = displayLightFrontX; 548 fDisplayLightFrontX = displayLightFrontX; 549 } 549 } 550 550 551 inline void G4ViewParameters::SetDisplayLightF 551 inline void G4ViewParameters::SetDisplayLightFrontY (G4double displayLightFrontY) { 552 fDisplayLightFrontY = displayLightFrontY; 552 fDisplayLightFrontY = displayLightFrontY; 553 } 553 } 554 554 555 inline void G4ViewParameters::SetDisplayLightF 555 inline void G4ViewParameters::SetDisplayLightFrontZ (G4double displayLightFrontZ) { 556 fDisplayLightFrontZ = displayLightFrontZ; 556 fDisplayLightFrontZ = displayLightFrontZ; 557 } 557 } 558 558 559 inline void G4ViewParameters::SetDisplayLightF 559 inline void G4ViewParameters::SetDisplayLightFrontT (G4double displayLightFrontT) { 560 fDisplayLightFrontT = displayLightFrontT; 560 fDisplayLightFrontT = displayLightFrontT; 561 } 561 } 562 562 563 inline void G4ViewParameters::SetDisplayLightF 563 inline void G4ViewParameters::SetDisplayLightFrontRed (G4double displayLightFrontRed) { 564 fDisplayLightFrontRed = displayLightFrontRed 564 fDisplayLightFrontRed = displayLightFrontRed; 565 } 565 } 566 566 567 inline void G4ViewParameters::SetDisplayLightF 567 inline void G4ViewParameters::SetDisplayLightFrontGreen (G4double displayLightFrontGreen) { 568 fDisplayLightFrontGreen = displayLightFrontG 568 fDisplayLightFrontGreen = displayLightFrontGreen; 569 } 569 } 570 570 571 inline void G4ViewParameters::SetDisplayLightF 571 inline void G4ViewParameters::SetDisplayLightFrontBlue (G4double displayLightFrontBlue) { 572 fDisplayLightFrontBlue = displayLightFrontBl 572 fDisplayLightFrontBlue = displayLightFrontBlue; 573 } 573 } 574 574 575 inline void G4ViewParameters::SetSpecialMeshRe 575 inline void G4ViewParameters::SetSpecialMeshRendering (G4bool smr) 576 {fSpecialMeshRendering = smr;} 576 {fSpecialMeshRendering = smr;} 577 577 578 inline void G4ViewParameters::SetSpecialMeshRe 578 inline void G4ViewParameters::SetSpecialMeshRenderingOption (G4ViewParameters::SMROption option) 579 {fSpecialMeshRenderingOption = option;} 579 {fSpecialMeshRenderingOption = option;} 580 580 581 inline void G4ViewParameters::SetSpecialMeshVo 581 inline void G4ViewParameters::SetSpecialMeshVolumes 582 (const std::vector<G4ModelingParameters::PVNam 582 (const std::vector<G4ModelingParameters::PVNameCopyNo>& smvs) 583 {fSpecialMeshVolumes = smvs;} 583 {fSpecialMeshVolumes = smvs;} 584 584