Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-25 09:17:21

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 const G4ModelingParameters::TimeParameters&
0231 G4ViewParameters::GetTimeParameters () const
0232 {return fTimeParameters;}
0233 
0234 inline G4int G4ViewParameters::GetNumberOfCloudPoints () const {
0235   return fNumberOfCloudPoints;
0236 }
0237 
0238 inline G4bool G4ViewParameters::IsSpecialMeshRendering () const
0239 {return fSpecialMeshRendering;}
0240 
0241 inline G4ViewParameters::SMROption G4ViewParameters::GetSpecialMeshRenderingOption () const
0242 {return fSpecialMeshRenderingOption;}
0243 
0244 inline const std::vector<G4ModelingParameters::PVNameCopyNo>&
0245 G4ViewParameters::GetSpecialMeshVolumes() const
0246 {return fSpecialMeshVolumes;}
0247 
0248 inline G4double G4ViewParameters::GetTransparencyByDepth () const {
0249   return fTransparencyByDepth;
0250 }
0251 
0252 inline G4int G4ViewParameters::GetTransparencyByDepthOption () const {
0253   return fTransparencyByDepthOption;
0254 }
0255 
0256 inline G4bool G4ViewParameters::IsZoomToCursor () const {
0257   return fZoomToCursor;
0258 }
0259 
0260 inline G4bool G4ViewParameters::IsDotsSmooth () const {
0261   return fDotsSmooth;
0262 }
0263 
0264 inline G4double G4ViewParameters:: GetDotsSize () const {
0265   return fDotsSize;
0266 }
0267 
0268 inline void
0269 G4ViewParameters::SetDrawingStyle (G4ViewParameters::DrawingStyle style) {
0270   fDrawingStyle = style;
0271 }
0272 
0273 inline void G4ViewParameters::SetAuxEdgeVisible (G4bool vis) {
0274   fAuxEdgeVisible = vis;
0275 }
0276 
0277 inline void G4ViewParameters::SetCulling (G4bool value) {
0278   fCulling = value;
0279 }
0280 
0281 inline void G4ViewParameters::SetCullingInvisible (G4bool value) {
0282   fCullInvisible = value;
0283 }
0284 
0285 inline void G4ViewParameters::SetDensityCulling (G4bool value) {
0286   fDensityCulling = value;
0287 }
0288 
0289 inline void G4ViewParameters::SetCullingCovered (G4bool value) {
0290   fCullCovered = value;
0291 }
0292 
0293 inline void G4ViewParameters::SetCBDAlgorithmNumber (G4int n) {
0294   fCBDAlgorithmNumber = n;
0295 }
0296 
0297 inline void G4ViewParameters::SetCBDParameters (const std::vector<G4double>& p) {
0298   fCBDParameters = p;
0299 }
0300 
0301 inline void G4ViewParameters::SetSectionPlane (const G4Plane3D& sectionPlane) {
0302   fSection = true;
0303   fSectionPlane = sectionPlane;
0304 }
0305 
0306 inline void G4ViewParameters::UnsetSectionPlane () {
0307   fSection = false;
0308 }
0309 
0310 inline void G4ViewParameters::SetCutawayMode
0311 (G4ViewParameters::CutawayMode cutawayMode) {
0312   fCutawayMode = cutawayMode;
0313 }
0314 
0315 inline void G4ViewParameters::ClearCutawayPlanes () {
0316   fCutawayPlanes.clear ();
0317 }
0318 
0319 inline void G4ViewParameters::SetViewpointDirection
0320 (const G4Vector3D& viewpointDirection) {
0321   SetViewAndLights (viewpointDirection);
0322 }
0323 
0324 inline void G4ViewParameters::SetExplodeFactor (G4double explodeFactor) {
0325   fExplodeFactor = explodeFactor;
0326   if (fExplodeFactor < 1.) fExplodeFactor = 1.;
0327 }
0328 
0329 inline void G4ViewParameters::UnsetExplodeFactor () {
0330   fExplodeFactor = 1.;
0331 }
0332 
0333 inline void G4ViewParameters::SetExplodeCentre
0334 (const G4Point3D& explodeCentre) {
0335   fExplodeCentre = explodeCentre;
0336 }
0337 inline void G4ViewParameters::SetUpVector (const G4Vector3D& upVector) {
0338   fUpVector = upVector;
0339 }
0340 
0341 inline void G4ViewParameters::SetFieldHalfAngle (G4double fieldHalfAngle) {
0342   fFieldHalfAngle = fieldHalfAngle;
0343 }
0344 
0345 inline void G4ViewParameters::SetOrthogonalProjection () {
0346   SetFieldHalfAngle(0.);
0347 }
0348 
0349 inline void G4ViewParameters::SetPerspectiveProjection(G4double fieldHalfAngle) {
0350   SetFieldHalfAngle(fieldHalfAngle);
0351 }
0352 
0353 inline void G4ViewParameters::SetZoomFactor (G4double zoomFactor) {
0354   fZoomFactor = zoomFactor;
0355 }
0356 
0357 inline void
0358 G4ViewParameters::MultiplyZoomFactor (G4double zoomFactorMultiplier) {
0359   fZoomFactor *= zoomFactorMultiplier;
0360 }
0361 
0362 inline void G4ViewParameters::SetScaleFactor (const G4Vector3D& scaleFactor) {
0363   fScaleFactor = scaleFactor;
0364 }
0365 
0366 inline void
0367 G4ViewParameters::SetCurrentTargetPoint (const G4Point3D& currentTargetPoint) {
0368   fCurrentTargetPoint = currentTargetPoint;
0369 }
0370 
0371 inline void G4ViewParameters::SetDolly (G4double dolly) {
0372   fDolly = dolly;
0373 }
0374 
0375 inline void G4ViewParameters::IncrementDolly (G4double dollyIncrement) {
0376   fDolly += dollyIncrement;
0377 }
0378 
0379 inline void G4ViewParameters::SetLightsMoveWithCamera (G4bool moves) {
0380   fLightsMoveWithCamera = moves;
0381 }
0382 
0383 inline void G4ViewParameters::SetDefaultVisAttributes
0384 (const G4VisAttributes& defaultVisAttributes) {
0385   fDefaultVisAttributes = defaultVisAttributes;
0386 }
0387 
0388 inline void G4ViewParameters::SetDefaultColour (const G4Colour& colour) {
0389   fDefaultVisAttributes.SetColour (colour);
0390 }
0391 
0392 inline void G4ViewParameters::SetDefaultTextVisAttributes
0393 (const G4VisAttributes& defaultTextVisAttributes) {
0394   fDefaultTextVisAttributes = defaultTextVisAttributes;
0395 }
0396 
0397 inline void G4ViewParameters::SetDefaultTextColour (const G4Colour& colour) {
0398   fDefaultTextVisAttributes.SetColour (colour);
0399 }
0400 
0401 inline void
0402 G4ViewParameters::SetDefaultMarker (const G4VMarker& defaultMarker) {
0403   fDefaultMarker = defaultMarker;
0404 }
0405 
0406 inline void
0407 G4ViewParameters::SetGlobalMarkerScale (G4double globalMarkerScale) {
0408   fGlobalMarkerScale = globalMarkerScale;
0409 }
0410 
0411 inline void
0412 G4ViewParameters::SetGlobalLineWidthScale (G4double globalLineWidthScale) {
0413   fGlobalLineWidthScale = globalLineWidthScale;
0414 }
0415 
0416 inline void G4ViewParameters::SetMarkerHidden () {
0417   fMarkerNotHidden = false;
0418 }
0419 
0420 inline void G4ViewParameters::SetMarkerNotHidden () {
0421   fMarkerNotHidden = true;
0422 }
0423 
0424 inline void G4ViewParameters::SetWindowSizeHint (G4int xHint, G4int yHint) {
0425   fWindowSizeHintX = xHint;
0426   fWindowSizeHintY = yHint;
0427 }
0428 
0429 inline void G4ViewParameters::SetWindowLocationHint (G4int xHint, G4int yHint) {
0430   fWindowLocationHintX = xHint;
0431   fWindowLocationHintY = yHint;
0432 }
0433 
0434 inline void G4ViewParameters::SetAutoRefresh (G4bool state) {
0435   fAutoRefresh = state;
0436 }
0437 
0438 inline void G4ViewParameters::SetBackgroundColour (const G4Colour& colour) {
0439   fBackgroundColour = colour;
0440 }
0441 
0442 inline void G4ViewParameters::SetPicking (G4bool picking) {
0443   fPicking = picking;
0444 }
0445 
0446 inline void G4ViewParameters::SetRotationStyle
0447   (G4ViewParameters::RotationStyle style) {
0448   fRotationStyle = style;
0449 }
0450 
0451 inline void G4ViewParameters::ClearVisAttributesModifiers () {
0452   fVisAttributesModifiers.clear ();
0453 }
0454 
0455 inline void G4ViewParameters::SetTimeParameters
0456 (const G4ModelingParameters::TimeParameters& timeParameters) {
0457   fTimeParameters = timeParameters;
0458 }
0459 
0460 inline void G4ViewParameters::SetSpecialMeshRendering (G4bool smr)
0461 {fSpecialMeshRendering = smr;}
0462 
0463 inline void G4ViewParameters::SetSpecialMeshRenderingOption (G4ViewParameters::SMROption option)
0464 {fSpecialMeshRenderingOption = option;}
0465 
0466 inline void G4ViewParameters::SetSpecialMeshVolumes
0467 (const std::vector<G4ModelingParameters::PVNameCopyNo>& smvs)
0468 {fSpecialMeshVolumes = smvs;}
0469 
0470 inline void G4ViewParameters::SetTransparencyByDepth (G4double transparencyByDepth) {
0471   fTransparencyByDepth = transparencyByDepth;
0472 }
0473 
0474 inline void G4ViewParameters::SetTransparencyByDepthOption (G4int transparencyByDepthOption) {
0475   fTransparencyByDepthOption = transparencyByDepthOption;
0476 }
0477 
0478 inline void G4ViewParameters::SetZoomToCursor (G4bool zoomToCursor){
0479   fZoomToCursor = zoomToCursor;
0480 }
0481 
0482 inline void G4ViewParameters::SetDotsSmooth (G4bool dotsSmooth){
0483   fDotsSmooth = dotsSmooth;
0484 }
0485 
0486 inline void G4ViewParameters::SetDotsSize (G4double dotsSize){
0487   fDotsSize = dotsSize;
0488 }