Geant4  10.03
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 98730 2016-08-09 10:47:54Z gcosmo $
28 //
29 //
30 // John Allison 18th November 1996
31 
32 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;}
33 
34 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) {
35  fDaughtersInvisible = v;
36 }
37 
38 inline void G4VisAttributes::SetColour (const G4Colour& colour) {
39  fColour = colour;
40 }
41 
42 inline void G4VisAttributes::SetColor (const G4Color& color) {
43  fColour = color;
44 }
45 
46 inline void G4VisAttributes::SetColour
47 (G4double red, G4double green, G4double blue, G4double alpha) {
48  fColour = G4Colour (red, green, blue, alpha);
49 }
50 
51 inline void G4VisAttributes::SetColor
52 (G4double red, G4double green, G4double blue, G4double alpha) {
53  fColour = G4Color (red, green, blue, alpha);
54 }
55 
56 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) {
57  fLineStyle = style;
58 }
59 
60 inline void G4VisAttributes::SetLineWidth (G4double w) {
61  fLineWidth = w;
62 }
63 
64 inline void G4VisAttributes::SetStartTime(G4double time) {
65  fStartTime = time;
66 }
67 
68 inline void G4VisAttributes::SetEndTime(G4double time) {
69  fEndTime = time;
70 }
71 
72 inline void G4VisAttributes::SetAttValues
73  (const std::vector<G4AttValue>* attValues){
74  fAttValues = attValues;
75 }
76 
77 inline void G4VisAttributes::SetAttDefs
78  (const std::map<G4String,G4AttDef>* attDefs) {
79  fAttDefs = attDefs;
80 }
81 
82 inline G4bool G4VisAttributes::IsVisible () const {return fVisible;}
83 
84 inline G4bool G4VisAttributes::IsDaughtersInvisible () const {
85  return fDaughtersInvisible;
86 }
87 
88 inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;}
89 
90 inline const G4Color& G4VisAttributes::GetColor () const {return fColour;}
91 
92 inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const {
93  return fLineStyle;
94 }
95 
96 inline G4double G4VisAttributes::GetLineWidth () const {
97  return fLineWidth;
98 }
99 
100 inline G4bool G4VisAttributes::IsForceDrawingStyle () const {
101  return fForceDrawingStyle;
102 }
103 
104 inline G4bool G4VisAttributes::IsForceAuxEdgeVisible () const {
105  return fForceAuxEdgeVisible;
106 }
107 
108 inline G4bool G4VisAttributes::IsForceLineSegmentsPerCircle () const {
109  return fForcedLineSegmentsPerCircle > 0;
110 }
111 
112 inline G4int G4VisAttributes::GetForcedLineSegmentsPerCircle () const {
113  return fForcedLineSegmentsPerCircle;
114 }
115 
116 inline G4double G4VisAttributes::GetStartTime() const {
117  return fStartTime;
118 }
119 
120 inline G4double G4VisAttributes::GetEndTime() const {
121  return fEndTime;
122 }
123 
124 inline
125 const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs () const {
126  return fAttDefs;
127 }
128 
129 inline
130 G4int G4VisAttributes::GetMinLineSegmentsPerCircle () {
131  return fMinLineSegmentsPerCircle;
132 }