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