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  18th November 1996
0030 
0031 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;}
0032 
0033 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) {
0034   fDaughtersInvisible = v;
0035 }
0036 
0037 inline void G4VisAttributes::SetColour (const G4Colour& colour) {
0038   fColour = colour;
0039 }
0040 
0041 inline void G4VisAttributes::SetColor (const G4Color& color) {
0042   fColour = color;
0043 }
0044 
0045 inline void G4VisAttributes::SetColour
0046 (G4double red, G4double green, G4double blue, G4double alpha) {
0047   fColour = G4Colour (red, green, blue, alpha);
0048 }
0049 
0050 inline void G4VisAttributes::SetColor
0051 (G4double red, G4double green, G4double blue, G4double alpha) {
0052   fColour = G4Color (red, green, blue, alpha);
0053 }
0054 
0055 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) {
0056   fLineStyle = style;
0057 }
0058 
0059 inline void G4VisAttributes::SetLineWidth (G4double w) {
0060   fLineWidth = w;
0061 }
0062 
0063 inline void G4VisAttributes::SetStartTime(G4double time) {
0064   fStartTime = time;
0065 }
0066 
0067 inline void G4VisAttributes::SetEndTime(G4double time) {
0068   fEndTime = time;
0069 }
0070 
0071 inline void G4VisAttributes::SetAttValues
0072  (const std::vector<G4AttValue>* attValues){
0073   fAttValues = attValues;
0074 }
0075 
0076 inline void G4VisAttributes::SetAttDefs
0077  (const std::map<G4String,G4AttDef>* attDefs) {
0078   fAttDefs = attDefs;
0079 }
0080 
0081 inline G4bool G4VisAttributes::IsVisible () const {return fVisible;}
0082 
0083 inline G4bool G4VisAttributes::IsDaughtersInvisible () const {
0084   return fDaughtersInvisible;
0085 }
0086 
0087 inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;}
0088 
0089 inline const G4Color&  G4VisAttributes::GetColor  () const {return fColour;}
0090 
0091 inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const {
0092   return fLineStyle;
0093 }
0094 
0095 inline G4double G4VisAttributes::GetLineWidth () const {
0096   return fLineWidth;
0097 }
0098 
0099 inline G4bool G4VisAttributes::IsForceDrawingStyle () const {
0100   return fForceDrawingStyle;
0101 }
0102 
0103 inline G4int G4VisAttributes::GetForcedNumberOfCloudPoints () const {
0104   return fForcedNumberOfCloudPoints;
0105 }
0106 
0107 inline G4bool G4VisAttributes::IsForceAuxEdgeVisible () const {
0108   return fForceAuxEdgeVisible;
0109 }
0110 
0111 inline G4bool G4VisAttributes::IsForceLineSegmentsPerCircle () const {
0112   return fForcedLineSegmentsPerCircle > 0;
0113 }
0114 
0115 inline G4int G4VisAttributes::GetForcedLineSegmentsPerCircle () const {
0116   return fForcedLineSegmentsPerCircle;
0117 }
0118 
0119 inline G4double G4VisAttributes::GetStartTime() const {
0120   return fStartTime;
0121 }
0122 
0123 inline G4double G4VisAttributes::GetEndTime() const {
0124   return fEndTime;
0125 }
0126 
0127 inline
0128 const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs () const {
0129   return fAttDefs;
0130 }
0131 
0132 inline
0133 G4int G4VisAttributes::GetMinLineSegmentsPerCircle () {
0134   return fMinLineSegmentsPerCircle;
0135 }