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 98730 2016-08-09 10:47:54Z gcosmo $
30 // John Allison 18th November 1996
32 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;}
34 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) {
35 fDaughtersInvisible = v;
38 inline void G4VisAttributes::SetColour (const G4Colour& colour) {
42 inline void G4VisAttributes::SetColor (const G4Color& color) {
46 inline void G4VisAttributes::SetColour
47 (G4double red, G4double green, G4double blue, G4double alpha) {
48 fColour = G4Colour (red, green, blue, alpha);
51 inline void G4VisAttributes::SetColor
52 (G4double red, G4double green, G4double blue, G4double alpha) {
53 fColour = G4Color (red, green, blue, alpha);
56 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) {
60 inline void G4VisAttributes::SetLineWidth (G4double w) {
64 inline void G4VisAttributes::SetStartTime(G4double time) {
68 inline void G4VisAttributes::SetEndTime(G4double time) {
72 inline void G4VisAttributes::SetAttValues
73 (const std::vector<G4AttValue>* attValues){
74 fAttValues = attValues;
77 inline void G4VisAttributes::SetAttDefs
78 (const std::map<G4String,G4AttDef>* attDefs) {
82 inline G4bool G4VisAttributes::IsVisible () const {return fVisible;}
84 inline G4bool G4VisAttributes::IsDaughtersInvisible () const {
85 return fDaughtersInvisible;
88 inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;}
90 inline const G4Color& G4VisAttributes::GetColor () const {return fColour;}
92 inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const {
96 inline G4double G4VisAttributes::GetLineWidth () const {
100 inline G4bool G4VisAttributes::IsForceDrawingStyle () const {
101 return fForceDrawingStyle;
104 inline G4bool G4VisAttributes::IsForceAuxEdgeVisible () const {
105 return fForceAuxEdgeVisible;
108 inline G4bool G4VisAttributes::IsForceLineSegmentsPerCircle () const {
109 return fForcedLineSegmentsPerCircle > 0;
112 inline G4int G4VisAttributes::GetForcedLineSegmentsPerCircle () const {
113 return fForcedLineSegmentsPerCircle;
116 inline G4double G4VisAttributes::GetStartTime() const {
120 inline G4double G4VisAttributes::GetEndTime() const {
125 const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs () const {
130 G4int G4VisAttributes::GetMinLineSegmentsPerCircle () {
131 return fMinLineSegmentsPerCircle;