Geant4  10.02.p01
G4VisAttributes.icc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4VisAttributes.icc 85261 2014-10-27 08:54:57Z gcosmo $
28 //
29 //
30 // John Allison 18th November 1996
31 
32 inline const G4VisAttributes& G4VisAttributes::GetInvisible() {
33  return Invisible;
34 }
35 
36 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;}
37 
38 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) {
39  fDaughtersInvisible = v;
40 }
41 
42 inline void G4VisAttributes::SetColour (const G4Colour& colour) {
43  fColour = colour;
44 }
45 
46 inline void G4VisAttributes::SetColor (const G4Color& color) {
47  fColour = color;
48 }
49 
50 inline void G4VisAttributes::SetColour
51 (G4double red, G4double green, G4double blue, G4double alpha) {
52  fColour = G4Colour (red, green, blue, alpha);
53 }
54 
55 inline void G4VisAttributes::SetColor
56 (G4double red, G4double green, G4double blue, G4double alpha) {
57  fColour = G4Color (red, green, blue, alpha);
58 }
59 
60 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) {
61  fLineStyle = style;
62 }
63 
64 inline void G4VisAttributes::SetLineWidth (G4double w) {
65  fLineWidth = w;
66 }
67 
68 inline void G4VisAttributes::SetForceWireframe (G4bool force) {
69  fForceDrawingStyle = force;
70  fForcedStyle = G4VisAttributes::wireframe;
71 }
72 
73 inline void G4VisAttributes::SetForceSolid (G4bool force) {
74  fForceDrawingStyle = force;
75  fForcedStyle = G4VisAttributes::solid;
76 }
77 
78 inline void G4VisAttributes::SetForceAuxEdgeVisible (G4bool force) {
79  fForceAuxEdgeVisible = force;
80 }
81 
82 inline void G4VisAttributes::SetStartTime(G4double time) {
83  fStartTime = time;
84 }
85 
86 inline void G4VisAttributes::SetEndTime(G4double time) {
87  fEndTime = time;
88 }
89 
90 inline void G4VisAttributes::SetAttValues
91  (const std::vector<G4AttValue>* attValues){
92  fAttValues = attValues;
93 }
94 
95 inline void G4VisAttributes::SetAttDefs
96  (const std::map<G4String,G4AttDef>* attDefs) {
97  fAttDefs = attDefs;
98 }
99 
100 inline G4bool G4VisAttributes::IsVisible () const {return fVisible;}
101 
102 inline G4bool G4VisAttributes::IsDaughtersInvisible () const {
103  return fDaughtersInvisible;
104 }
105 
106 inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;}
107 
108 inline const G4Color& G4VisAttributes::GetColor () const {return fColour;}
109 
110 inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const {
111  return fLineStyle;
112 }
113 
114 inline G4double G4VisAttributes::GetLineWidth () const {
115  return fLineWidth;
116 }
117 
118 inline G4bool G4VisAttributes::IsForceDrawingStyle () const {
119  return fForceDrawingStyle;
120 }
121 
122 inline G4VisAttributes::ForcedDrawingStyle
123 G4VisAttributes::GetForcedDrawingStyle () const {
124  return fForcedStyle;
125 }
126 
127 inline G4bool G4VisAttributes::IsForceAuxEdgeVisible () const {
128  return fForceAuxEdgeVisible;
129 }
130 
131 inline G4bool G4VisAttributes::IsForceLineSegmentsPerCircle () const {
132  return fForcedLineSegmentsPerCircle > 0;
133 }
134 
135 inline G4int G4VisAttributes::GetForcedLineSegmentsPerCircle () const {
136  return fForcedLineSegmentsPerCircle;
137 }
138 
139 inline G4double G4VisAttributes::GetStartTime() const {
140  return fStartTime;
141 }
142 
143 inline G4double G4VisAttributes::GetEndTime() const {
144  return fEndTime;
145 }
146 
147 inline
148 const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs () const {
149  return fAttDefs;
150 }