G4VisTrajContext Class Reference

#include <G4VisTrajContext.hh>


Public Member Functions

 G4VisTrajContext (const G4String &name="Unspecified")
virtual ~G4VisTrajContext ()
G4String Name () const
void SetVisible (const G4bool &visible)
void Print (std::ostream &ostr) const
void SetLineColour (const G4Colour &colour)
G4Colour GetLineColour () const
void SetDrawLine (const G4bool &draw)
G4bool GetDrawLine () const
void SetLineVisible (const G4bool &visible)
G4bool GetLineVisible () const
void SetDrawAuxPts (const G4bool &draw)
G4bool GetDrawAuxPts () const
void SetAuxPtsType (const G4Polymarker::MarkerType &marker)
G4Polymarker::MarkerType GetAuxPtsType () const
void SetAuxPtsSize (const G4double &size)
G4double GetAuxPtsSize () const
void SetAuxPtsSizeType (const G4VMarker::SizeType &sizeType)
G4VMarker::SizeType GetAuxPtsSizeType () const
void SetAuxPtsFillStyle (const G4VMarker::FillStyle &style)
G4VMarker::FillStyle GetAuxPtsFillStyle () const
void SetAuxPtsColour (const G4Colour &colour)
G4Colour GetAuxPtsColour () const
void SetAuxPtsVisible (const G4bool &visible)
G4bool GetAuxPtsVisible () const
void SetDrawStepPts (const G4bool &draw)
G4bool GetDrawStepPts () const
void SetStepPtsType (const G4Polymarker::MarkerType &marker)
G4Polymarker::MarkerType GetStepPtsType () const
void SetStepPtsSize (const G4double &size)
G4double GetStepPtsSize () const
void SetStepPtsSizeType (const G4VMarker::SizeType &sizeType)
G4VMarker::SizeType GetStepPtsSizeType () const
void SetStepPtsFillStyle (const G4VMarker::FillStyle &style)
G4VMarker::FillStyle GetStepPtsFillStyle () const
void SetStepPtsColour (const G4Colour &colour)
G4Colour GetStepPtsColour () const
void SetStepPtsVisible (const G4bool &visible)
G4bool GetStepPtsVisible () const
void SetTimeSliceInterval (const G4double &interval)
G4double GetTimeSliceInterval () const


Detailed Description

Definition at line 36 of file G4VisTrajContext.hh.


Constructor & Destructor Documentation

G4VisTrajContext::G4VisTrajContext ( const G4String name = "Unspecified"  ) 

Definition at line 29 of file G4VisTrajContext.cc.

00030   :fName(name)
00031   ,fLineColour(G4Colour::Grey())
00032   ,fLineVisible(true)
00033   ,fDrawLine(true)
00034   ,fDrawAuxPts(false)
00035   ,fAuxPtsType(G4Polymarker::squares)
00036   ,fAuxPtsSize(2)
00037   ,fAuxPtsSizeType(G4VMarker::screen)
00038   ,fAuxPtsFillStyle(G4VMarker::filled)
00039   ,fAuxPtsColour(G4Colour::Magenta())
00040   ,fAuxPtsVisible(true)
00041   ,fDrawStepPts(false)
00042   ,fStepPtsType(G4Polymarker::circles)
00043   ,fStepPtsSize(2)
00044   ,fStepPtsSizeType(G4VMarker::screen)
00045   ,fStepPtsFillStyle(G4VMarker::filled)
00046   ,fStepPtsColour(G4Colour::Yellow())
00047   ,fStepPtsVisible(true)
00048   ,fTimeSliceInterval(0.)
00049 {}

G4VisTrajContext::~G4VisTrajContext (  )  [virtual]

Definition at line 52 of file G4VisTrajContext.cc.

00052 {}


Member Function Documentation

G4Colour G4VisTrajContext::GetAuxPtsColour (  )  const [inline]

Definition at line 69 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00069 {return fAuxPtsColour;}

G4VMarker::FillStyle G4VisTrajContext::GetAuxPtsFillStyle (  )  const [inline]

Definition at line 66 of file G4VisTrajContext.icc.

Referenced by Print().

00066 {return fAuxPtsFillStyle;}

G4double G4VisTrajContext::GetAuxPtsSize (  )  const [inline]

Definition at line 60 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00060 {return fAuxPtsSize;}

G4VMarker::SizeType G4VisTrajContext::GetAuxPtsSizeType (  )  const [inline]

Definition at line 63 of file G4VisTrajContext.icc.

00063 {return fAuxPtsSizeType;}

G4Polymarker::MarkerType G4VisTrajContext::GetAuxPtsType (  )  const [inline]

Definition at line 57 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00057 {return fAuxPtsType;}

G4bool G4VisTrajContext::GetAuxPtsVisible (  )  const [inline]

Definition at line 72 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00072 {return fAuxPtsVisible;}

G4bool G4VisTrajContext::GetDrawAuxPts (  )  const [inline]

Definition at line 54 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), G4TrajectoryDrawerUtils::DrawLineAndPoints(), and Print().

00054 {return fDrawAuxPts;}

G4bool G4VisTrajContext::GetDrawLine (  )  const [inline]

Definition at line 47 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawerUtils::DrawLineAndPoints(), and Print().

00047 {return fDrawLine;}

G4bool G4VisTrajContext::GetDrawStepPts (  )  const [inline]

Definition at line 76 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), G4TrajectoryDrawerUtils::DrawLineAndPoints(), and Print().

00076 {return fDrawStepPts;}

G4Colour G4VisTrajContext::GetLineColour (  )  const [inline]

Definition at line 44 of file G4VisTrajContext.icc.

Referenced by Print().

00044 {return fLineColour;}

G4bool G4VisTrajContext::GetLineVisible (  )  const [inline]

Definition at line 50 of file G4VisTrajContext.icc.

Referenced by Print().

00050 {return fLineVisible;}

G4Colour G4VisTrajContext::GetStepPtsColour (  )  const [inline]

Definition at line 91 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00091 {return fStepPtsColour;}

G4VMarker::FillStyle G4VisTrajContext::GetStepPtsFillStyle (  )  const [inline]

Definition at line 88 of file G4VisTrajContext.icc.

Referenced by Print().

00088 {return fStepPtsFillStyle;}

G4double G4VisTrajContext::GetStepPtsSize (  )  const [inline]

Definition at line 82 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00082 {return fStepPtsSize;}

G4VMarker::SizeType G4VisTrajContext::GetStepPtsSizeType (  )  const [inline]

Definition at line 85 of file G4VisTrajContext.icc.

00085 {return fStepPtsSizeType;}

G4Polymarker::MarkerType G4VisTrajContext::GetStepPtsType (  )  const [inline]

Definition at line 79 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00079 {return fStepPtsType;}

G4bool G4VisTrajContext::GetStepPtsVisible (  )  const [inline]

Definition at line 94 of file G4VisTrajContext.icc.

Referenced by G4HepRepFileSceneHandler::AddCompound(), and Print().

00094 {return fStepPtsVisible;}

G4double G4VisTrajContext::GetTimeSliceInterval (  )  const [inline]

Definition at line 97 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawerUtils::DrawLineAndPoints(), G4TrajectoryDrawerUtils::GetPointsAndTimes(), and Print().

00097 {return fTimeSliceInterval;}

G4String G4VisTrajContext::Name (  )  const [inline]

Definition at line 33 of file G4VisTrajContext.icc.

Referenced by Print().

00033 {return fName;}

void G4VisTrajContext::Print ( std::ostream &  ostr  )  const [inline]

Definition at line 101 of file G4VisTrajContext.icc.

References G4BestUnit, G4endl, GetAuxPtsColour(), GetAuxPtsFillStyle(), GetAuxPtsSize(), GetAuxPtsType(), GetAuxPtsVisible(), GetDrawAuxPts(), GetDrawLine(), GetDrawStepPts(), GetLineColour(), GetLineVisible(), GetStepPtsColour(), GetStepPtsFillStyle(), GetStepPtsSize(), GetStepPtsType(), GetStepPtsVisible(), GetTimeSliceInterval(), and Name().

Referenced by G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByCharge::Draw(), G4TrajectoryDrawByAttribute::Draw(), G4TrajectoryGenericDrawer::Print(), G4TrajectoryDrawByParticleID::Print(), G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByCharge::Print(), and G4TrajectoryDrawByAttribute::Print().

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 }

void G4VisTrajContext::SetAuxPtsColour ( const G4Colour colour  )  [inline]

Definition at line 68 of file G4VisTrajContext.icc.

00068 {fAuxPtsColour = colour;}

void G4VisTrajContext::SetAuxPtsFillStyle ( const G4VMarker::FillStyle style  )  [inline]

Definition at line 65 of file G4VisTrajContext.icc.

00065 {fAuxPtsFillStyle = style;}

void G4VisTrajContext::SetAuxPtsSize ( const G4double size  )  [inline]

Definition at line 59 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawerUtils::DrawLineAndPoints().

00059 {fAuxPtsSize = size;}

void G4VisTrajContext::SetAuxPtsSizeType ( const G4VMarker::SizeType sizeType  )  [inline]

Definition at line 62 of file G4VisTrajContext.icc.

00062 {fAuxPtsSizeType = sizeType;}

void G4VisTrajContext::SetAuxPtsType ( const G4Polymarker::MarkerType marker  )  [inline]

Definition at line 56 of file G4VisTrajContext.icc.

00056 {fAuxPtsType = marker;}

void G4VisTrajContext::SetAuxPtsVisible ( const G4bool visible  )  [inline]

Definition at line 71 of file G4VisTrajContext.icc.

Referenced by SetVisible().

00071 {fAuxPtsVisible = visible;}

void G4VisTrajContext::SetDrawAuxPts ( const G4bool draw  )  [inline]

Definition at line 53 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawerUtils::DrawLineAndPoints().

00053 {fDrawAuxPts = draw;}

void G4VisTrajContext::SetDrawLine ( const G4bool draw  )  [inline]

Definition at line 46 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawerUtils::DrawLineAndPoints().

00046 {fDrawLine = draw;}

void G4VisTrajContext::SetDrawStepPts ( const G4bool draw  )  [inline]

Definition at line 75 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawerUtils::DrawLineAndPoints().

00075 {fDrawStepPts = draw;}

void G4VisTrajContext::SetLineColour ( const G4Colour colour  )  [inline]

Definition at line 43 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), and G4TrajectoryDrawByCharge::Draw().

00043 {fLineColour = colour;}

void G4VisTrajContext::SetLineVisible ( const G4bool visible  )  [inline]

Definition at line 49 of file G4VisTrajContext.icc.

Referenced by SetVisible().

00049 {fLineVisible = visible;}

void G4VisTrajContext::SetStepPtsColour ( const G4Colour colour  )  [inline]

Definition at line 90 of file G4VisTrajContext.icc.

00090 {fStepPtsColour = colour;}

void G4VisTrajContext::SetStepPtsFillStyle ( const G4VMarker::FillStyle style  )  [inline]

Definition at line 87 of file G4VisTrajContext.icc.

00087 {fStepPtsFillStyle = style;}

void G4VisTrajContext::SetStepPtsSize ( const G4double size  )  [inline]

Definition at line 81 of file G4VisTrajContext.icc.

Referenced by G4TrajectoryDrawerUtils::DrawLineAndPoints().

00081 {fStepPtsSize = size;}

void G4VisTrajContext::SetStepPtsSizeType ( const G4VMarker::SizeType sizeType  )  [inline]

Definition at line 84 of file G4VisTrajContext.icc.

00084 {fStepPtsSizeType = sizeType;}

void G4VisTrajContext::SetStepPtsType ( const G4Polymarker::MarkerType marker  )  [inline]

Definition at line 78 of file G4VisTrajContext.icc.

00078 {fStepPtsType = marker;}

void G4VisTrajContext::SetStepPtsVisible ( const G4bool visible  )  [inline]

Definition at line 93 of file G4VisTrajContext.icc.

Referenced by SetVisible().

00093 {fStepPtsVisible = visible;}

void G4VisTrajContext::SetTimeSliceInterval ( const G4double interval  )  [inline]

Definition at line 96 of file G4VisTrajContext.icc.

00096 {fTimeSliceInterval = interval;}

void G4VisTrajContext::SetVisible ( const G4bool visible  )  [inline]

Definition at line 35 of file G4VisTrajContext.icc.

References SetAuxPtsVisible(), SetLineVisible(), and SetStepPtsVisible().

Referenced by G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByCharge::Draw(), and G4TrajectoryDrawByAttribute::Draw().

00036 {
00037   SetLineVisible(visible);
00038   SetAuxPtsVisible(visible);
00039   SetStepPtsVisible(visible);
00040 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:49 2013 for Geant4 by  doxygen 1.4.7