G4VisAttributes.icc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // 
00030 // John Allison  18th November 1996
00031 
00032 inline const G4VisAttributes& G4VisAttributes::GetInvisible() {
00033   return Invisible;
00034 }
00035 
00036 inline void G4VisAttributes::SetVisibility (G4bool v) {fVisible = v;}
00037 
00038 inline void G4VisAttributes::SetDaughtersInvisible (G4bool v) {
00039   fDaughtersInvisible = v;
00040 }
00041 
00042 inline void G4VisAttributes::SetColour (const G4Colour& colour) {
00043   fColour = colour;
00044 }
00045 
00046 inline void G4VisAttributes::SetColor (const G4Color& color) {
00047   fColour = color;
00048 }
00049 
00050 inline void G4VisAttributes::SetColour
00051 (G4double red, G4double green, G4double blue, G4double alpha) {
00052   fColour = G4Colour (red, green, blue, alpha);
00053 }
00054 
00055 inline void G4VisAttributes::SetColor
00056 (G4double red, G4double green, G4double blue, G4double alpha) {
00057   fColour = G4Color (red, green, blue, alpha);
00058 }
00059 
00060 inline void G4VisAttributes::SetLineStyle (G4VisAttributes::LineStyle style) {
00061   fLineStyle = style;
00062 }
00063 
00064 inline void G4VisAttributes::SetLineWidth (G4double w) {
00065   fLineWidth = w;
00066 }
00067 
00068 inline void G4VisAttributes::SetForceWireframe (G4bool force) {
00069   fForceDrawingStyle = force;
00070   fForcedStyle = G4VisAttributes::wireframe;
00071 }
00072 
00073 inline void G4VisAttributes::SetForceSolid (G4bool force) {
00074   fForceDrawingStyle = force;
00075   fForcedStyle = G4VisAttributes::solid;
00076 }
00077 
00078 inline void G4VisAttributes::SetForceAuxEdgeVisible (G4bool force) {
00079   fForceAuxEdgeVisible = force;
00080 }
00081 
00082 inline void G4VisAttributes::SetStartTime(G4double time) {
00083   fStartTime = time;
00084 }
00085 
00086 inline void G4VisAttributes::SetEndTime(G4double time) {
00087   fEndTime = time;
00088 }
00089 
00090 inline void G4VisAttributes::SetAttValues
00091  (const std::vector<G4AttValue>* attValues){
00092   fAttValues = attValues;
00093 }
00094 
00095 inline void G4VisAttributes::SetAttDefs
00096  (const std::map<G4String,G4AttDef>* attDefs) {
00097   fAttDefs = attDefs;
00098 }
00099 
00100 inline G4bool G4VisAttributes::IsVisible () const {return fVisible;}
00101 
00102 inline G4bool G4VisAttributes::IsDaughtersInvisible () const {
00103   return fDaughtersInvisible;
00104 }
00105 
00106 inline const G4Colour& G4VisAttributes::GetColour () const {return fColour;}
00107 
00108 inline const G4Color&  G4VisAttributes::GetColor  () const {return fColour;}
00109 
00110 inline G4VisAttributes::LineStyle G4VisAttributes::GetLineStyle () const {
00111   return fLineStyle;
00112 }
00113 
00114 inline G4double G4VisAttributes::GetLineWidth () const {
00115   return fLineWidth;
00116 }
00117 
00118 inline G4bool G4VisAttributes::IsForceDrawingStyle () const {
00119   return fForceDrawingStyle;
00120 }
00121 
00122 inline G4VisAttributes::ForcedDrawingStyle
00123 G4VisAttributes::GetForcedDrawingStyle () const {
00124   return fForcedStyle;
00125 }
00126 
00127 inline G4bool G4VisAttributes::IsForceAuxEdgeVisible () const {
00128   return fForceAuxEdgeVisible;
00129 }
00130 
00131 inline G4bool G4VisAttributes::IsForceLineSegmentsPerCircle () const {
00132   return fForcedLineSegmentsPerCircle > 0;
00133 }
00134 
00135 inline G4int G4VisAttributes::GetForcedLineSegmentsPerCircle () const {
00136   return fForcedLineSegmentsPerCircle;
00137 }
00138 
00139 inline G4double G4VisAttributes::GetStartTime() const {
00140   return fStartTime;
00141 }
00142 
00143 inline G4double G4VisAttributes::GetEndTime() const {
00144   return fEndTime;
00145 }
00146 
00147 inline
00148 const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs () const {
00149   return fAttDefs;
00150 }

Generated on Mon May 27 17:50:14 2013 for Geant4 by  doxygen 1.4.7