Geant4 Cross Reference |
>> 1 // This code implementation is the intellectual property of >> 2 // the GEANT4 collaboration. 1 // 3 // 2 // ******************************************* << 4 // By copying, distributing or modifying the Program (or any work 3 // * License and Disclaimer << 5 // based on the Program) you indicate your acceptance of this statement, 4 // * << 6 // and all its terms. 5 // * The Geant4 software is copyright of th << 6 // * the Geant4 Collaboration. It is provided << 7 // * conditions of the Geant4 Software License << 8 // * LICENSE and available at http://cern.ch/ << 9 // * include a list of copyright holders. << 10 // * << 11 // * Neither the authors of this software syst << 12 // * institutes,nor the agencies providing fin << 13 // * work make any representation or warran << 14 // * regarding this software system or assum << 15 // * use. Please see the license in the file << 16 // * for the full disclaimer and the limitatio << 17 // * << 18 // * This code implementation is the result << 19 // * technical work of the GEANT4 collaboratio << 20 // * By using, copying, modifying or distri << 21 // * any work based on the software) you ag << 22 // * use in resulting scientific publicati << 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* << 25 // << 26 // 7 // >> 8 // $Id: G4VisAttributes.icc,v 1.3 1999/12/15 14:50:34 gunter Exp $ >> 9 // GEANT4 tag $Name: geant4-03-00 $ 27 // 10 // 28 // 11 // 29 // John Allison 18th November 1996 12 // John Allison 18th November 1996 30 13 31 inline void G4VisAttributes::SetVisibility (G4 << 32 << 33 inline void G4VisAttributes::SetDaughtersInvis << 34 fDaughtersInvisible = v; << 35 } << 36 << 37 inline void G4VisAttributes::SetColour (const << 38 fColour = colour; << 39 } << 40 << 41 inline void G4VisAttributes::SetColor (const G << 42 fColour = color; << 43 } << 44 << 45 inline void G4VisAttributes::SetColour << 46 (G4double red, G4double green, G4double blue, << 47 fColour = G4Colour (red, green, blue, alpha) << 48 } << 49 << 50 inline void G4VisAttributes::SetColor << 51 (G4double red, G4double green, G4double blue, << 52 fColour = G4Color (red, green, blue, alpha); << 53 } << 54 << 55 inline void G4VisAttributes::SetLineStyle (G4V << 56 fLineStyle = style; << 57 } << 58 << 59 inline void G4VisAttributes::SetLineWidth (G4d << 60 fLineWidth = w; << 61 } << 62 << 63 inline void G4VisAttributes::SetStartTime(G4do << 64 fStartTime = time; << 65 } << 66 << 67 inline void G4VisAttributes::SetEndTime(G4doub << 68 fEndTime = time; << 69 } << 70 << 71 inline void G4VisAttributes::SetAttValues << 72 (const std::vector<G4AttValue>* attValues){ << 73 fAttValues = attValues; << 74 } << 75 << 76 inline void G4VisAttributes::SetAttDefs << 77 (const std::map<G4String,G4AttDef>* attDefs) << 78 fAttDefs = attDefs; << 79 } << 80 << 81 inline G4bool G4VisAttributes::IsVisible () co 14 inline G4bool G4VisAttributes::IsVisible () const {return fVisible;} 82 15 83 inline G4bool G4VisAttributes::IsDaughtersInvi 16 inline G4bool G4VisAttributes::IsDaughtersInvisible () const { 84 return fDaughtersInvisible; 17 return fDaughtersInvisible; 85 } 18 } 86 19 87 inline const G4Colour& G4VisAttributes::GetCol 20 inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;} 88 21 89 inline const G4Color& G4VisAttributes::GetCol 22 inline const G4Color& G4VisAttributes::GetColor () const {return fColour;} 90 23 91 inline G4VisAttributes::LineStyle G4VisAttribu 24 inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const { 92 return fLineStyle; 25 return fLineStyle; 93 } 26 } 94 27 95 inline G4double G4VisAttributes::GetLineWidth 28 inline G4double G4VisAttributes::GetLineWidth () const { 96 return fLineWidth; 29 return fLineWidth; 97 } 30 } 98 31 99 inline G4bool G4VisAttributes::IsForceDrawingS 32 inline G4bool G4VisAttributes::IsForceDrawingStyle () const { 100 return fForceDrawingStyle; 33 return fForceDrawingStyle; 101 } 34 } >> 35 inline G4VisAttributes::ForcedDrawingStyle >> 36 G4VisAttributes::GetForcedDrawingStyle () const { >> 37 return fForcedStyle; >> 38 } >> 39 >> 40 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;} 102 41 103 inline G4int G4VisAttributes::GetForcedNumberO << 42 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) { 104 return fForcedNumberOfCloudPoints; << 43 fDaughtersInvisible = v; 105 } 44 } 106 45 107 inline G4bool G4VisAttributes::IsForceAuxEdgeV << 46 inline void G4VisAttributes::SetColour (const G4Colour& colour) { 108 return fForceAuxEdgeVisible; << 47 fColour = colour; 109 } 48 } 110 49 111 inline G4bool G4VisAttributes::IsForceLineSegm << 50 inline void G4VisAttributes::SetColor (const G4Color& color) { 112 return fForcedLineSegmentsPerCircle > 0; << 51 fColour = color; 113 } 52 } 114 53 115 inline G4int G4VisAttributes::GetForcedLineSeg << 54 inline void G4VisAttributes::SetColour 116 return fForcedLineSegmentsPerCircle; << 55 (G4double red, G4double green, G4double blue, G4double alpha) { >> 56 fColour = G4Colour (red, green, blue, alpha); 117 } 57 } 118 58 119 inline G4double G4VisAttributes::GetStartTime( << 59 inline void G4VisAttributes::SetColor 120 return fStartTime; << 60 (G4double red, G4double green, G4double blue, G4double alpha) { >> 61 fColour = G4Color (red, green, blue, alpha); 121 } 62 } 122 63 123 inline G4double G4VisAttributes::GetEndTime() << 64 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) { 124 return fEndTime; << 65 fLineStyle = style; >> 66 } >> 67 >> 68 inline void G4VisAttributes::SetLineWidth (G4double w) { >> 69 fLineWidth = w; 125 } 70 } 126 71 127 inline << 72 inline void G4VisAttributes::SetForceWireframe (G4bool force) { 128 const std::map<G4String,G4AttDef>* G4VisAttrib << 73 fForceDrawingStyle = force; 129 return fAttDefs; << 74 fForcedStyle = G4VisAttributes::wireframe; 130 } 75 } 131 76 132 inline << 77 inline void G4VisAttributes::SetForceSolid (G4bool force) { 133 G4int G4VisAttributes::GetMinLineSegmentsPerCi << 78 fForceDrawingStyle = force; 134 return fMinLineSegmentsPerCircle; << 79 fForcedStyle = G4VisAttributes::solid; 135 } 80 } 136 81