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.7 2004/07/28 15:44:29 johna Exp $ >> 25 // GEANT4 tag $Name: geant4-07-00-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 const std::vector<G4AttDef>* G4VisAttributes::GetAttDefs () const { >> 67 return fAttDefs; >> 68 } >> 69 31 inline void G4VisAttributes::SetVisibility (G4 70 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;} 32 71 33 inline void G4VisAttributes::SetDaughtersInvis 72 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) { 34 fDaughtersInvisible = v; 73 fDaughtersInvisible = v; 35 } 74 } 36 75 37 inline void G4VisAttributes::SetColour (const 76 inline void G4VisAttributes::SetColour (const G4Colour& colour) { 38 fColour = colour; 77 fColour = colour; 39 } 78 } 40 79 41 inline void G4VisAttributes::SetColor (const G 80 inline void G4VisAttributes::SetColor (const G4Color& color) { 42 fColour = color; 81 fColour = color; 43 } 82 } 44 83 45 inline void G4VisAttributes::SetColour 84 inline void G4VisAttributes::SetColour 46 (G4double red, G4double green, G4double blue, 85 (G4double red, G4double green, G4double blue, G4double alpha) { 47 fColour = G4Colour (red, green, blue, alpha) 86 fColour = G4Colour (red, green, blue, alpha); 48 } 87 } 49 88 50 inline void G4VisAttributes::SetColor 89 inline void G4VisAttributes::SetColor 51 (G4double red, G4double green, G4double blue, 90 (G4double red, G4double green, G4double blue, G4double alpha) { 52 fColour = G4Color (red, green, blue, alpha); 91 fColour = G4Color (red, green, blue, alpha); 53 } 92 } 54 93 55 inline void G4VisAttributes::SetLineStyle (G4V 94 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) { 56 fLineStyle = style; 95 fLineStyle = style; 57 } 96 } 58 97 59 inline void G4VisAttributes::SetLineWidth (G4d 98 inline void G4VisAttributes::SetLineWidth (G4double w) { 60 fLineWidth = w; 99 fLineWidth = w; 61 } 100 } 62 101 63 inline void G4VisAttributes::SetStartTime(G4do << 102 inline void G4VisAttributes::SetForceWireframe (G4bool force) { 64 fStartTime = time; << 103 fForceDrawingStyle = force; >> 104 fForcedStyle = G4VisAttributes::wireframe; 65 } 105 } 66 106 67 inline void G4VisAttributes::SetEndTime(G4doub << 107 inline void G4VisAttributes::SetForceSolid (G4bool force) { 68 fEndTime = time; << 108 fForceDrawingStyle = force; >> 109 fForcedStyle = G4VisAttributes::solid; >> 110 } >> 111 >> 112 inline void G4VisAttributes::SetForceAuxEdgeVisible (G4bool force) { >> 113 fForceAuxEdgeVisible = force; 69 } 114 } 70 115 71 inline void G4VisAttributes::SetAttValues 116 inline void G4VisAttributes::SetAttValues 72 (const std::vector<G4AttValue>* attValues){ 117 (const std::vector<G4AttValue>* attValues){ 73 fAttValues = attValues; 118 fAttValues = attValues; 74 } 119 } 75 120 76 inline void G4VisAttributes::SetAttDefs 121 inline void G4VisAttributes::SetAttDefs 77 (const std::map<G4String,G4AttDef>* attDefs) << 122 (const std::vector<G4AttDef>* attDefs) { 78 fAttDefs = attDefs; 123 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 } 124 } 136 125