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