source: trunk/source/graphics_reps/include/G4VisAttributes.icc @ 1202

Last change on this file since 1202 was 1058, checked in by garnier, 15 years ago

file release beta

File size: 4.7 KB
Line 
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,v 1.14 2007/01/05 14:12:13 allison Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//
31// John Allison  18th November 1996
32
33inline const G4VisAttributes& G4VisAttributes::GetInvisible() {
34  return Invisible;
35}
36
37inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;}
38
39inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) {
40  fDaughtersInvisible = v;
41}
42
43inline void G4VisAttributes::SetColour (const G4Colour& colour) {
44  fColour = colour;
45}
46
47inline void G4VisAttributes::SetColor (const G4Color& color) {
48  fColour = color;
49}
50
51inline void G4VisAttributes::SetColour
52(G4double red, G4double green, G4double blue, G4double alpha) {
53  fColour = G4Colour (red, green, blue, alpha);
54}
55
56inline void G4VisAttributes::SetColor
57(G4double red, G4double green, G4double blue, G4double alpha) {
58  fColour = G4Color (red, green, blue, alpha);
59}
60
61inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) {
62  fLineStyle = style;
63}
64
65inline void G4VisAttributes::SetLineWidth (G4double w) {
66  fLineWidth = w;
67}
68
69inline void G4VisAttributes::SetForceWireframe (G4bool force) {
70  fForceDrawingStyle = force;
71  fForcedStyle = G4VisAttributes::wireframe;
72}
73
74inline void G4VisAttributes::SetForceSolid (G4bool force) {
75  fForceDrawingStyle = force;
76  fForcedStyle = G4VisAttributes::solid;
77}
78
79inline void G4VisAttributes::SetForceAuxEdgeVisible (G4bool force) {
80  fForceAuxEdgeVisible = force;
81}
82
83inline void G4VisAttributes::SetStartTime(G4double time) {
84  fStartTime = time;
85}
86
87inline void G4VisAttributes::SetEndTime(G4double time) {
88  fEndTime = time;
89}
90
91inline void G4VisAttributes::SetAttValues
92 (const std::vector<G4AttValue>* attValues){
93  fAttValues = attValues;
94}
95
96inline void G4VisAttributes::SetAttDefs
97 (const std::map<G4String,G4AttDef>* attDefs) {
98  fAttDefs = attDefs;
99}
100
101inline G4bool G4VisAttributes::IsVisible () const {return fVisible;}
102
103inline G4bool G4VisAttributes::IsDaughtersInvisible () const {
104  return fDaughtersInvisible;
105}
106
107inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;}
108
109inline const G4Color&  G4VisAttributes::GetColor  () const {return fColour;}
110
111inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const {
112  return fLineStyle;
113}
114
115inline G4double G4VisAttributes::GetLineWidth () const {
116  return fLineWidth;
117}
118
119inline G4bool G4VisAttributes::IsForceDrawingStyle () const {
120  return fForceDrawingStyle;
121}
122
123inline G4VisAttributes::ForcedDrawingStyle
124G4VisAttributes::GetForcedDrawingStyle () const {
125  return fForcedStyle;
126}
127
128inline G4bool G4VisAttributes::IsForceAuxEdgeVisible () const {
129  return fForceAuxEdgeVisible;
130}
131
132inline G4bool G4VisAttributes::IsForceLineSegmentsPerCircle () const {
133  return fForcedLineSegmentsPerCircle > 0;
134}
135
136inline G4int G4VisAttributes::GetForcedLineSegmentsPerCircle () const {
137  return fForcedLineSegmentsPerCircle;
138}
139
140inline G4double G4VisAttributes::GetStartTime() const {
141  return fStartTime;
142}
143
144inline G4double G4VisAttributes::GetEndTime() const {
145  return fEndTime;
146}
147
148inline
149const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs () const {
150  return fAttDefs;
151}
Note: See TracBrowser for help on using the repository browser.