Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:22

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // 
0029 // John Allison  20th October 1996
0030 // View parameters and options.
0031 
0032 inline G4ViewParameters::DrawingStyle
0033 G4ViewParameters::GetDrawingStyle () const {
0034   return fDrawingStyle;
0035 }
0036 
0037 inline G4bool G4ViewParameters::IsAuxEdgeVisible () const {
0038   return fAuxEdgeVisible;
0039 }
0040 
0041 inline G4bool G4ViewParameters::IsCulling () const {
0042   return fCulling;
0043 }
0044 
0045 inline G4bool G4ViewParameters::IsCullingInvisible () const {
0046   return fCullInvisible;
0047 }
0048 
0049 inline G4bool G4ViewParameters::IsDensityCulling () const {
0050   return fDensityCulling;
0051 }
0052 
0053 inline G4double G4ViewParameters::GetVisibleDensity () const {
0054   return fVisibleDensity;
0055 }
0056 
0057 inline G4bool G4ViewParameters::IsCullingCovered () const {
0058   return fCullCovered;
0059 }
0060 
0061 inline G4int G4ViewParameters::GetCBDAlgorithmNumber () const {
0062   return fCBDAlgorithmNumber;
0063 }
0064 
0065 inline const std::vector<G4double>& G4ViewParameters::GetCBDParameters () const {
0066   return fCBDParameters;
0067 }
0068 
0069 inline G4bool G4ViewParameters::IsSection () const {
0070   return fSection;
0071 }
0072 
0073 inline const G4Plane3D& G4ViewParameters::GetSectionPlane () const {
0074   return fSectionPlane;
0075 }
0076 
0077 inline G4bool G4ViewParameters::IsCutaway () const {
0078   return fCutawayPlanes.size() > 0;
0079 }
0080 
0081 inline G4ViewParameters::CutawayMode G4ViewParameters::GetCutawayMode () const
0082 { return fCutawayMode;}
0083 
0084 inline const G4Planes& G4ViewParameters::GetCutawayPlanes () const {
0085   return fCutawayPlanes;
0086 }
0087 
0088 inline G4bool G4ViewParameters::IsExplode () const {
0089   return fExplodeFactor > 1.;
0090 }
0091 
0092 inline G4double G4ViewParameters::GetExplodeFactor () const {
0093   return fExplodeFactor;
0094 }
0095 
0096 inline const G4Point3D& G4ViewParameters::GetExplodeCentre () const {
0097   return fExplodeCentre;
0098 }
0099 
0100 inline G4int G4ViewParameters::GetNoOfSides () const {
0101   return fNoOfSides;
0102 }
0103 
0104 inline const G4Vector3D& G4ViewParameters::GetViewpointDirection () const {
0105   return fViewpointDirection;
0106 }
0107 
0108 inline const G4Vector3D& G4ViewParameters::GetUpVector () const {
0109   return fUpVector;
0110 }
0111 
0112 inline G4double G4ViewParameters::GetFieldHalfAngle () const {
0113   return fFieldHalfAngle;
0114 }
0115 
0116 inline G4double G4ViewParameters::GetZoomFactor () const {
0117   return fZoomFactor;
0118 }
0119 
0120 inline const G4Vector3D& G4ViewParameters::GetScaleFactor () const {
0121   return fScaleFactor;
0122 }
0123 
0124 inline const G4Point3D& G4ViewParameters::GetCurrentTargetPoint () const {
0125   return fCurrentTargetPoint;
0126 }
0127 
0128 inline G4double G4ViewParameters::GetDolly () const {
0129   return fDolly;
0130 }
0131 
0132 inline const G4Vector3D& G4ViewParameters::GetLightpointDirection () const {
0133   return fRelativeLightpointDirection;
0134 }
0135 
0136 inline G4bool G4ViewParameters::GetLightsMoveWithCamera () const {
0137   return fLightsMoveWithCamera;
0138 }
0139 
0140 inline const G4VisAttributes*
0141 G4ViewParameters::GetDefaultVisAttributes () const {
0142   return &fDefaultVisAttributes;
0143 }
0144 
0145 inline const G4VisAttributes*
0146 G4ViewParameters::GetDefaultTextVisAttributes () const {
0147   return &fDefaultTextVisAttributes;
0148 }
0149 
0150 inline const G4VMarker& G4ViewParameters::GetDefaultMarker () const {
0151   return fDefaultMarker;
0152 }
0153 
0154 inline G4double G4ViewParameters::GetGlobalMarkerScale () const {
0155   return fGlobalMarkerScale;
0156 }
0157 
0158 inline G4double G4ViewParameters::GetGlobalLineWidthScale () const {
0159   return fGlobalLineWidthScale;
0160 }
0161 
0162 inline G4bool G4ViewParameters::IsMarkerNotHidden () const {
0163   return fMarkerNotHidden;
0164 }
0165 
0166 inline bool G4ViewParameters::IsWindowSizeHintX () const {
0167   return ((fGeometryMask & fWidthValue) != 0);
0168 }
0169 
0170 inline bool G4ViewParameters::IsWindowSizeHintY () const {
0171   return ((fGeometryMask & fHeightValue) != 0);
0172 }
0173 
0174 inline bool G4ViewParameters::IsWindowLocationHintX () const {
0175   return ((fGeometryMask & fXValue) != 0);
0176 }
0177 
0178 inline bool G4ViewParameters::IsWindowLocationHintY () const {
0179   return ((fGeometryMask & fYValue) != 0);
0180 }
0181 
0182 inline unsigned int G4ViewParameters::GetWindowSizeHintX () const {
0183   return fWindowSizeHintX;
0184 }
0185 
0186 inline unsigned int G4ViewParameters::GetWindowSizeHintY () const {
0187   return fWindowSizeHintY;
0188 }
0189 
0190 inline G4int G4ViewParameters::GetWindowLocationHintX () const {
0191   return fWindowLocationHintX;
0192 }
0193 
0194 inline G4int G4ViewParameters::GetWindowLocationHintY () const {
0195   return fWindowLocationHintY;
0196 }
0197 
0198 inline G4bool G4ViewParameters::IsWindowLocationHintXNegative () const {
0199   return fWindowLocationHintXNegative;
0200 }
0201 
0202 inline G4bool G4ViewParameters::IsWindowLocationHintYNegative () const {
0203   return fWindowLocationHintYNegative;
0204 }
0205 
0206 inline const G4String& G4ViewParameters::GetXGeometryString () const {
0207   return fXGeometryString;
0208 }
0209 
0210 inline G4bool G4ViewParameters::IsAutoRefresh () const {
0211   return fAutoRefresh;
0212 }
0213 
0214 inline const G4Colour& G4ViewParameters::GetBackgroundColour () const {
0215   return fBackgroundColour;
0216 }
0217 
0218 inline G4bool G4ViewParameters::IsPicking () const {
0219   return fPicking;
0220 }
0221 
0222 inline G4ViewParameters::RotationStyle
0223 G4ViewParameters::GetRotationStyle() const {return fRotationStyle;}
0224 
0225 inline const std::vector<G4ModelingParameters::VisAttributesModifier>&
0226 G4ViewParameters::GetVisAttributesModifiers() const {
0227   return fVisAttributesModifiers;
0228 }
0229 
0230 inline G4double G4ViewParameters::GetStartTime () const {
0231   return fStartTime;
0232 }
0233 
0234 inline G4double G4ViewParameters::GetEndTime () const {
0235   return fEndTime;
0236 }
0237 
0238 inline G4double G4ViewParameters::GetFadeFactor () const {
0239   return fFadeFactor;
0240 }
0241 
0242 inline G4bool G4ViewParameters::IsDisplayHeadTime () const {
0243   return fDisplayHeadTime;
0244 }
0245 
0246 inline G4double G4ViewParameters::GetDisplayHeadTimeX () const {
0247   return fDisplayHeadTimeX;
0248 }
0249 
0250 inline G4double G4ViewParameters::GetDisplayHeadTimeY () const {
0251   return fDisplayHeadTimeY;
0252 }
0253 
0254 inline G4double G4ViewParameters::GetDisplayHeadTimeSize () const {
0255   return fDisplayHeadTimeSize;
0256 }
0257 
0258 inline G4double G4ViewParameters::GetDisplayHeadTimeRed () const {
0259   return fDisplayHeadTimeRed;
0260 }
0261 
0262 inline G4double G4ViewParameters::GetDisplayHeadTimeGreen () const {
0263   return fDisplayHeadTimeGreen;
0264 }
0265 
0266 inline G4double G4ViewParameters::GetDisplayHeadTimeBlue () const {
0267   return fDisplayHeadTimeBlue;
0268 }
0269 
0270 inline G4bool G4ViewParameters::IsDisplayLightFront () const {
0271   return fDisplayLightFront;
0272 }
0273 
0274 inline G4double G4ViewParameters::GetDisplayLightFrontX () const {
0275   return fDisplayLightFrontX;
0276 }
0277 
0278 inline G4double G4ViewParameters::GetDisplayLightFrontY () const {
0279   return fDisplayLightFrontY;
0280 }
0281 
0282 inline G4double G4ViewParameters::GetDisplayLightFrontZ () const {
0283   return fDisplayLightFrontZ;
0284 }
0285 
0286 inline G4double G4ViewParameters::GetDisplayLightFrontT () const {
0287   return fDisplayLightFrontT;
0288 }
0289 
0290 inline G4double G4ViewParameters::GetDisplayLightFrontRed () const {
0291   return fDisplayLightFrontRed;
0292 }
0293 
0294 inline G4double G4ViewParameters::GetDisplayLightFrontGreen () const {
0295   return fDisplayLightFrontGreen;
0296 }
0297 
0298 inline G4double G4ViewParameters::GetDisplayLightFrontBlue () const {
0299   return fDisplayLightFrontBlue;
0300 }
0301 
0302 inline G4int G4ViewParameters::GetNumberOfCloudPoints () const {
0303   return fNumberOfCloudPoints;
0304 }
0305 
0306 inline G4bool G4ViewParameters::IsSpecialMeshRendering () const
0307 {return fSpecialMeshRendering;}
0308 
0309 inline G4ViewParameters::SMROption G4ViewParameters::GetSpecialMeshRenderingOption () const
0310 {return fSpecialMeshRenderingOption;}
0311 
0312 inline const std::vector<G4ModelingParameters::PVNameCopyNo>&
0313 G4ViewParameters::GetSpecialMeshVolumes() const
0314 {return fSpecialMeshVolumes;}
0315 
0316 inline void
0317 G4ViewParameters::SetDrawingStyle (G4ViewParameters::DrawingStyle style) {
0318   fDrawingStyle = style;
0319 }
0320 
0321 inline void G4ViewParameters::SetAuxEdgeVisible (G4bool vis) {
0322   fAuxEdgeVisible = vis;
0323 }
0324 
0325 inline void G4ViewParameters::SetCulling (G4bool value) {
0326   fCulling = value;
0327 }
0328 
0329 inline void G4ViewParameters::SetCullingInvisible (G4bool value) {
0330   fCullInvisible = value;
0331 }
0332 
0333 inline void G4ViewParameters::SetDensityCulling (G4bool value) {
0334   fDensityCulling = value;
0335 }
0336 
0337 inline void G4ViewParameters::SetCullingCovered (G4bool value) {
0338   fCullCovered = value;
0339 }
0340 
0341 inline void G4ViewParameters::SetCBDAlgorithmNumber (G4int n) {
0342   fCBDAlgorithmNumber = n;
0343 }
0344 
0345 inline void G4ViewParameters::SetCBDParameters (const std::vector<G4double>& p) {
0346   fCBDParameters = p;
0347 }
0348 
0349 inline void G4ViewParameters::SetSectionPlane (const G4Plane3D& sectionPlane) {
0350   fSection = true;
0351   fSectionPlane = sectionPlane;
0352 }
0353 
0354 inline void G4ViewParameters::UnsetSectionPlane () {
0355   fSection = false;
0356 }
0357 
0358 inline void G4ViewParameters::SetCutawayMode
0359 (G4ViewParameters::CutawayMode cutawayMode) {
0360   fCutawayMode = cutawayMode;
0361 }
0362 
0363 inline void G4ViewParameters::ClearCutawayPlanes () {
0364   fCutawayPlanes.clear ();
0365 }
0366 
0367 inline void G4ViewParameters::SetViewpointDirection
0368 (const G4Vector3D& viewpointDirection) {
0369   SetViewAndLights (viewpointDirection);
0370 }
0371 
0372 inline void G4ViewParameters::SetExplodeFactor (G4double explodeFactor) {
0373   fExplodeFactor = explodeFactor;
0374   if (fExplodeFactor < 1.) fExplodeFactor = 1.;
0375 }
0376 
0377 inline void G4ViewParameters::UnsetExplodeFactor () {
0378   fExplodeFactor = 1.;
0379 }
0380 
0381 inline void G4ViewParameters::SetExplodeCentre
0382 (const G4Point3D& explodeCentre) {
0383   fExplodeCentre = explodeCentre;
0384 }
0385 inline void G4ViewParameters::SetUpVector (const G4Vector3D& upVector) {
0386   fUpVector = upVector;
0387 }
0388 
0389 inline void G4ViewParameters::SetFieldHalfAngle (G4double fieldHalfAngle) {
0390   fFieldHalfAngle = fieldHalfAngle;
0391 }
0392 
0393 inline void G4ViewParameters::SetOrthogonalProjection () {
0394   SetFieldHalfAngle(0.);
0395 }
0396 
0397 inline void G4ViewParameters::SetPerspectiveProjection(G4double fieldHalfAngle) {
0398   SetFieldHalfAngle(fieldHalfAngle);
0399 }
0400 
0401 inline void G4ViewParameters::SetZoomFactor (G4double zoomFactor) {
0402   fZoomFactor = zoomFactor;
0403 }
0404 
0405 inline void
0406 G4ViewParameters::MultiplyZoomFactor (G4double zoomFactorMultiplier) {
0407   fZoomFactor *= zoomFactorMultiplier;
0408 }
0409 
0410 inline void G4ViewParameters::SetScaleFactor (const G4Vector3D& scaleFactor) {
0411   fScaleFactor = scaleFactor;
0412 }
0413 
0414 inline void
0415 G4ViewParameters::SetCurrentTargetPoint (const G4Point3D& currentTargetPoint) {
0416   fCurrentTargetPoint = currentTargetPoint;
0417 }
0418 
0419 inline void G4ViewParameters::SetDolly (G4double dolly) {
0420   fDolly = dolly;
0421 }
0422 
0423 inline void G4ViewParameters::IncrementDolly (G4double dollyIncrement) {
0424   fDolly += dollyIncrement;
0425 }
0426 
0427 inline void G4ViewParameters::SetLightsMoveWithCamera (G4bool moves) {
0428   fLightsMoveWithCamera = moves;
0429 }
0430 
0431 inline void G4ViewParameters::SetDefaultVisAttributes
0432 (const G4VisAttributes& defaultVisAttributes) {
0433   fDefaultVisAttributes = defaultVisAttributes;
0434 }
0435 
0436 inline void G4ViewParameters::SetDefaultColour (const G4Colour& colour) {
0437   fDefaultVisAttributes.SetColour (colour);
0438 }
0439 
0440 inline void G4ViewParameters::SetDefaultTextVisAttributes
0441 (const G4VisAttributes& defaultTextVisAttributes) {
0442   fDefaultTextVisAttributes = defaultTextVisAttributes;
0443 }
0444 
0445 inline void G4ViewParameters::SetDefaultTextColour (const G4Colour& colour) {
0446   fDefaultTextVisAttributes.SetColour (colour);
0447 }
0448 
0449 inline void
0450 G4ViewParameters::SetDefaultMarker (const G4VMarker& defaultMarker) {
0451   fDefaultMarker = defaultMarker;
0452 }
0453 
0454 inline void
0455 G4ViewParameters::SetGlobalMarkerScale (G4double globalMarkerScale) {
0456   fGlobalMarkerScale = globalMarkerScale;
0457 }
0458 
0459 inline void
0460 G4ViewParameters::SetGlobalLineWidthScale (G4double globalLineWidthScale) {
0461   fGlobalLineWidthScale = globalLineWidthScale;
0462 }
0463 
0464 inline void G4ViewParameters::SetMarkerHidden () {
0465   fMarkerNotHidden = false;
0466 }
0467 
0468 inline void G4ViewParameters::SetMarkerNotHidden () {
0469   fMarkerNotHidden = true;
0470 }
0471 
0472 inline void G4ViewParameters::SetWindowSizeHint (G4int xHint, G4int yHint) {
0473   fWindowSizeHintX = xHint;
0474   fWindowSizeHintY = yHint;
0475 }
0476 
0477 inline void G4ViewParameters::SetWindowLocationHint (G4int xHint, G4int yHint) {
0478   fWindowLocationHintX = xHint;
0479   fWindowLocationHintY = yHint;
0480 }
0481 
0482 inline void G4ViewParameters::SetAutoRefresh (G4bool state) {
0483   fAutoRefresh = state;
0484 }
0485 
0486 inline void G4ViewParameters::SetBackgroundColour (const G4Colour& colour) {
0487   fBackgroundColour = colour;
0488 }
0489 
0490 inline void G4ViewParameters::SetPicking (G4bool picking) {
0491   fPicking = picking;
0492 }
0493 
0494 inline void G4ViewParameters::SetRotationStyle
0495   (G4ViewParameters::RotationStyle style) {
0496   fRotationStyle = style;
0497 }
0498 
0499 inline void G4ViewParameters::ClearVisAttributesModifiers () {
0500   fVisAttributesModifiers.clear ();
0501 }
0502 
0503 inline void G4ViewParameters::SetStartTime (G4double startTime) {
0504   fStartTime = startTime;
0505 }
0506 
0507 inline void G4ViewParameters::SetEndTime (G4double endTime) {
0508   fEndTime = endTime;
0509 }
0510 
0511 inline void G4ViewParameters::SetFadeFactor (G4double fadeFactor) {
0512   fFadeFactor = fadeFactor;
0513 }
0514 
0515 inline void G4ViewParameters::SetDisplayHeadTime (G4bool displayHeadTime) {
0516   fDisplayHeadTime = displayHeadTime;
0517 }
0518 
0519 inline void G4ViewParameters::SetDisplayHeadTimeX (G4double displayHeadTimeX) {
0520   fDisplayHeadTimeX = displayHeadTimeX;
0521 }
0522 
0523 inline void G4ViewParameters::SetDisplayHeadTimeY (G4double displayHeadTimeY) {
0524   fDisplayHeadTimeY = displayHeadTimeY;
0525 }
0526 
0527 inline void G4ViewParameters::SetDisplayHeadTimeSize (G4double displayHeadTimeSize) {
0528   fDisplayHeadTimeSize = displayHeadTimeSize;
0529 }
0530 
0531 inline void G4ViewParameters::SetDisplayHeadTimeRed (G4double displayHeadTimeRed) {
0532   fDisplayHeadTimeRed = displayHeadTimeRed;
0533 }
0534 
0535 inline void G4ViewParameters::SetDisplayHeadTimeGreen (G4double displayHeadTimeGreen) {
0536   fDisplayHeadTimeGreen = displayHeadTimeGreen;
0537 }
0538 
0539 inline void G4ViewParameters::SetDisplayHeadTimeBlue (G4double displayHeadTimeBlue) {
0540   fDisplayHeadTimeBlue = displayHeadTimeBlue;
0541 }
0542 
0543 inline void G4ViewParameters::SetDisplayLightFront (G4bool displayLightFront) {
0544   fDisplayLightFront = displayLightFront;
0545 }
0546 
0547 inline void G4ViewParameters::SetDisplayLightFrontX (G4double displayLightFrontX) {
0548   fDisplayLightFrontX = displayLightFrontX;
0549 }
0550 
0551 inline void G4ViewParameters::SetDisplayLightFrontY (G4double displayLightFrontY) {
0552   fDisplayLightFrontY = displayLightFrontY;
0553 }
0554 
0555 inline void G4ViewParameters::SetDisplayLightFrontZ (G4double displayLightFrontZ) {
0556   fDisplayLightFrontZ = displayLightFrontZ;
0557 }
0558 
0559 inline void G4ViewParameters::SetDisplayLightFrontT (G4double displayLightFrontT) {
0560   fDisplayLightFrontT = displayLightFrontT;
0561 }
0562 
0563 inline void G4ViewParameters::SetDisplayLightFrontRed (G4double displayLightFrontRed) {
0564   fDisplayLightFrontRed = displayLightFrontRed;
0565 }
0566 
0567 inline void G4ViewParameters::SetDisplayLightFrontGreen (G4double displayLightFrontGreen) {
0568   fDisplayLightFrontGreen = displayLightFrontGreen;
0569 }
0570 
0571 inline void G4ViewParameters::SetDisplayLightFrontBlue (G4double displayLightFrontBlue) {
0572   fDisplayLightFrontBlue = displayLightFrontBlue;
0573 }
0574 
0575 inline void G4ViewParameters::SetSpecialMeshRendering (G4bool smr)
0576 {fSpecialMeshRendering = smr;}
0577 
0578 inline void G4ViewParameters::SetSpecialMeshRenderingOption (G4ViewParameters::SMROption option)
0579 {fSpecialMeshRenderingOption = option;}
0580 
0581 inline void G4ViewParameters::SetSpecialMeshVolumes
0582 (const std::vector<G4ModelingParameters::PVNameCopyNo>& smvs)
0583 {fSpecialMeshVolumes = smvs;}