G4VisTrajContext.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 // $Id$
00027 //
00028 // Jane Tinslay May 2006
00029 //
00030 #ifndef G4VISTRAJ_CONTEXT_ICC
00031 #define G4VISTRAJ_CONTEXT_ICC
00032 
00033 inline G4String G4VisTrajContext::Name() const {return fName;}
00034 
00035 inline void G4VisTrajContext::SetVisible(const G4bool& visible) 
00036 {
00037   SetLineVisible(visible);
00038   SetAuxPtsVisible(visible);
00039   SetStepPtsVisible(visible);
00040 }
00041 
00042 // Line
00043 inline void G4VisTrajContext::SetLineColour(const G4Colour& colour) {fLineColour = colour;}
00044 inline G4Colour G4VisTrajContext::GetLineColour() const {return fLineColour;}
00045 
00046 inline void G4VisTrajContext::SetDrawLine(const G4bool& draw) {fDrawLine = draw;}
00047 inline G4bool G4VisTrajContext::GetDrawLine() const {return fDrawLine;}
00048 
00049 inline void G4VisTrajContext::SetLineVisible(const G4bool& visible) {fLineVisible = visible;}
00050 inline G4bool G4VisTrajContext::GetLineVisible() const {return fLineVisible;}
00051 
00052 // Auxiliary points
00053 inline void G4VisTrajContext::SetDrawAuxPts(const G4bool& draw) {fDrawAuxPts = draw;}
00054 inline G4bool G4VisTrajContext::GetDrawAuxPts() const {return fDrawAuxPts;}
00055 
00056 inline void G4VisTrajContext::SetAuxPtsType(const G4Polymarker::MarkerType& marker) {fAuxPtsType = marker;}
00057 inline G4Polymarker::MarkerType G4VisTrajContext::GetAuxPtsType() const {return fAuxPtsType;}
00058 
00059 inline void G4VisTrajContext::SetAuxPtsSize(const G4double& size) {fAuxPtsSize = size;}
00060 inline G4double G4VisTrajContext::GetAuxPtsSize() const {return fAuxPtsSize;}
00061 
00062 inline void G4VisTrajContext::SetAuxPtsSizeType(const G4VMarker::SizeType& sizeType) {fAuxPtsSizeType = sizeType;}
00063 inline G4VMarker::SizeType G4VisTrajContext::GetAuxPtsSizeType() const {return fAuxPtsSizeType;}
00064 
00065 inline void G4VisTrajContext::SetAuxPtsFillStyle(const G4VMarker::FillStyle& style) {fAuxPtsFillStyle = style;}
00066 inline G4VMarker::FillStyle G4VisTrajContext::GetAuxPtsFillStyle() const {return fAuxPtsFillStyle;}
00067 
00068 inline void G4VisTrajContext::SetAuxPtsColour(const G4Colour& colour) {fAuxPtsColour = colour;}
00069 inline G4Colour G4VisTrajContext::GetAuxPtsColour() const {return fAuxPtsColour;}
00070 
00071 inline void G4VisTrajContext::SetAuxPtsVisible(const G4bool& visible) {fAuxPtsVisible = visible;}
00072 inline G4bool G4VisTrajContext::GetAuxPtsVisible() const {return fAuxPtsVisible;}
00073 
00074 // Step points
00075 inline void G4VisTrajContext::SetDrawStepPts(const G4bool& draw) {fDrawStepPts = draw;}
00076 inline G4bool G4VisTrajContext::GetDrawStepPts() const {return fDrawStepPts;}
00077 
00078 inline void G4VisTrajContext::SetStepPtsType(const G4Polymarker::MarkerType& marker) {fStepPtsType = marker;}
00079 inline G4Polymarker::MarkerType G4VisTrajContext::GetStepPtsType() const {return fStepPtsType;}
00080 
00081 inline void G4VisTrajContext::SetStepPtsSize(const G4double& size) {fStepPtsSize = size;}
00082 inline G4double G4VisTrajContext::GetStepPtsSize() const {return fStepPtsSize;}
00083 
00084 inline void G4VisTrajContext::SetStepPtsSizeType(const G4VMarker::SizeType& sizeType) {fStepPtsSizeType = sizeType;}
00085 inline G4VMarker::SizeType G4VisTrajContext::GetStepPtsSizeType() const {return fStepPtsSizeType;}
00086 
00087 inline void G4VisTrajContext::SetStepPtsFillStyle(const G4VMarker::FillStyle& style) {fStepPtsFillStyle = style;}
00088 inline G4VMarker::FillStyle G4VisTrajContext::GetStepPtsFillStyle() const {return fStepPtsFillStyle;}
00089 
00090 inline void G4VisTrajContext::SetStepPtsColour(const G4Colour& colour) {fStepPtsColour = colour;}
00091 inline G4Colour G4VisTrajContext::GetStepPtsColour() const {return fStepPtsColour;}
00092 
00093 inline void G4VisTrajContext::SetStepPtsVisible(const G4bool& visible) {fStepPtsVisible = visible;}
00094 inline G4bool G4VisTrajContext::GetStepPtsVisible() const {return fStepPtsVisible;}
00095 
00096 inline void G4VisTrajContext::SetTimeSliceInterval(const G4double& interval) {fTimeSliceInterval = interval;}
00097 inline G4double G4VisTrajContext::GetTimeSliceInterval() const {return fTimeSliceInterval;}
00098 
00099 #include "G4UnitsTable.hh"
00100 
00101 inline void G4VisTrajContext::Print(std::ostream& ostr) const 
00102 {
00103   ostr<<"Name:                       "<<Name()<<G4endl;
00104   ostr<<"Line colour                 "<<GetLineColour()<<G4endl;
00105   ostr<<"Draw line ?                 "<<GetDrawLine()<<G4endl;
00106   ostr<<"Line visibile ?             "<<GetLineVisible()<<G4endl;
00107   ostr<<"Draw auxiliary points ?     "<<GetDrawAuxPts()<<G4endl;
00108   ostr<<"Auxiliary points type       "<<GetAuxPtsType()<<G4endl;
00109   ostr<<"Auxiliary points size       "<<GetAuxPtsSize()<<G4endl;
00110   ostr<<"Auxiliary points fill style "<<GetAuxPtsFillStyle()<<G4endl;
00111   ostr<<"Auxiliary points colour     "<<GetAuxPtsColour()<<G4endl;
00112   ostr<<"Auxiliary points visible ?  "<<GetAuxPtsVisible()<<G4endl;
00113   ostr<<"Draw step points ?          "<<GetDrawStepPts()<<G4endl;
00114   ostr<<"Step points type            "<<GetStepPtsType()<<G4endl;
00115   ostr<<"Step points size            "<<GetStepPtsSize()<<G4endl;
00116   ostr<<"Step points fill style      "<<GetStepPtsFillStyle()<<G4endl;
00117   ostr<<"Step points colour          "<<GetStepPtsColour()<<G4endl;
00118   ostr<<"Step points visible ?       "<<GetStepPtsVisible()<<G4endl;
00119   ostr<<"Time slice interval         "<<G4BestUnit(GetTimeSliceInterval(),"Time")<<G4endl;
00120 }
00121 
00122 #endif

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