2 // ********************************************************************
3 // * License and Disclaimer *
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. *
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. *
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 // ********************************************************************
27 // $Id: G4VisAttributes.icc 66376 2012-12-18 09:42:59Z gcosmo $
30 // John Allison 18th November 1996
32 inline const G4VisAttributes& G4VisAttributes::GetInvisible() {
36 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;}
38 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) {
39 fDaughtersInvisible = v;
42 inline void G4VisAttributes::SetColour (const G4Colour& colour) {
46 inline void G4VisAttributes::SetColor (const G4Color& color) {
50 inline void G4VisAttributes::SetColour
51 (G4double red, G4double green, G4double blue, G4double alpha) {
52 fColour = G4Colour (red, green, blue, alpha);
55 inline void G4VisAttributes::SetColor
56 (G4double red, G4double green, G4double blue, G4double alpha) {
57 fColour = G4Color (red, green, blue, alpha);
60 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) {
64 inline void G4VisAttributes::SetLineWidth (G4double w) {
68 inline void G4VisAttributes::SetForceWireframe (G4bool force) {
69 fForceDrawingStyle = force;
70 fForcedStyle = G4VisAttributes::wireframe;
73 inline void G4VisAttributes::SetForceSolid (G4bool force) {
74 fForceDrawingStyle = force;
75 fForcedStyle = G4VisAttributes::solid;
78 inline void G4VisAttributes::SetForceAuxEdgeVisible (G4bool force) {
79 fForceAuxEdgeVisible = force;
82 inline void G4VisAttributes::SetStartTime(G4double time) {
86 inline void G4VisAttributes::SetEndTime(G4double time) {
90 inline void G4VisAttributes::SetAttValues
91 (const std::vector<G4AttValue>* attValues){
92 fAttValues = attValues;
95 inline void G4VisAttributes::SetAttDefs
96 (const std::map<G4String,G4AttDef>* attDefs) {
100 inline G4bool G4VisAttributes::IsVisible () const {return fVisible;}
102 inline G4bool G4VisAttributes::IsDaughtersInvisible () const {
103 return fDaughtersInvisible;
106 inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;}
108 inline const G4Color& G4VisAttributes::GetColor () const {return fColour;}
110 inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const {
114 inline G4double G4VisAttributes::GetLineWidth () const {
118 inline G4bool G4VisAttributes::IsForceDrawingStyle () const {
119 return fForceDrawingStyle;
122 inline G4VisAttributes::ForcedDrawingStyle
123 G4VisAttributes::GetForcedDrawingStyle () const {
127 inline G4bool G4VisAttributes::IsForceAuxEdgeVisible () const {
128 return fForceAuxEdgeVisible;
131 inline G4bool G4VisAttributes::IsForceLineSegmentsPerCircle () const {
132 return fForcedLineSegmentsPerCircle > 0;
135 inline G4int G4VisAttributes::GetForcedLineSegmentsPerCircle () const {
136 return fForcedLineSegmentsPerCircle;
139 inline G4double G4VisAttributes::GetStartTime() const {
143 inline G4double G4VisAttributes::GetEndTime() const {
148 const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs () const {