File indexing completed on 2025-01-18 09:59:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 #ifndef G4VISTRAJ_CONTEXT_ICC
0030 #define G4VISTRAJ_CONTEXT_ICC
0031
0032 inline G4String G4VisTrajContext::Name() const {return fName;}
0033
0034 inline void G4VisTrajContext::SetVisible(const G4bool& visible)
0035 {
0036 SetLineVisible(visible);
0037 SetAuxPtsVisible(visible);
0038 SetStepPtsVisible(visible);
0039 }
0040
0041
0042 inline void G4VisTrajContext::SetLineWidth(const G4double& width) {fLineWidth = width;}
0043 inline G4double G4VisTrajContext::GetLineWidth() const {return fLineWidth;}
0044
0045 inline void G4VisTrajContext::SetLineColour(const G4Colour& colour) {fLineColour = colour;}
0046 inline G4Colour G4VisTrajContext::GetLineColour() const {return fLineColour;}
0047
0048 inline void G4VisTrajContext::SetDrawLine(const G4bool& draw) {fDrawLine = draw;}
0049 inline G4bool G4VisTrajContext::GetDrawLine() const {return fDrawLine;}
0050
0051 inline void G4VisTrajContext::SetLineVisible(const G4bool& visible) {fLineVisible = visible;}
0052 inline G4bool G4VisTrajContext::GetLineVisible() const {return fLineVisible;}
0053
0054
0055 inline void G4VisTrajContext::SetDrawAuxPts(const G4bool& draw) {fDrawAuxPts = draw;}
0056 inline G4bool G4VisTrajContext::GetDrawAuxPts() const {return fDrawAuxPts;}
0057
0058 inline void G4VisTrajContext::SetAuxPtsType(const G4Polymarker::MarkerType& marker) {fAuxPtsType = marker;}
0059 inline G4Polymarker::MarkerType G4VisTrajContext::GetAuxPtsType() const {return fAuxPtsType;}
0060
0061 inline void G4VisTrajContext::SetAuxPtsSize(const G4double& size) {fAuxPtsSize = size;}
0062 inline G4double G4VisTrajContext::GetAuxPtsSize() const {return fAuxPtsSize;}
0063
0064 inline void G4VisTrajContext::SetAuxPtsSizeType(const G4VMarker::SizeType& sizeType) {fAuxPtsSizeType = sizeType;}
0065 inline G4VMarker::SizeType G4VisTrajContext::GetAuxPtsSizeType() const {return fAuxPtsSizeType;}
0066
0067 inline void G4VisTrajContext::SetAuxPtsFillStyle(const G4VMarker::FillStyle& style) {fAuxPtsFillStyle = style;}
0068 inline G4VMarker::FillStyle G4VisTrajContext::GetAuxPtsFillStyle() const {return fAuxPtsFillStyle;}
0069
0070 inline void G4VisTrajContext::SetAuxPtsColour(const G4Colour& colour) {fAuxPtsColour = colour;}
0071 inline G4Colour G4VisTrajContext::GetAuxPtsColour() const {return fAuxPtsColour;}
0072
0073 inline void G4VisTrajContext::SetAuxPtsVisible(const G4bool& visible) {fAuxPtsVisible = visible;}
0074 inline G4bool G4VisTrajContext::GetAuxPtsVisible() const {return fAuxPtsVisible;}
0075
0076
0077 inline void G4VisTrajContext::SetDrawStepPts(const G4bool& draw) {fDrawStepPts = draw;}
0078 inline G4bool G4VisTrajContext::GetDrawStepPts() const {return fDrawStepPts;}
0079
0080 inline void G4VisTrajContext::SetStepPtsType(const G4Polymarker::MarkerType& marker) {fStepPtsType = marker;}
0081 inline G4Polymarker::MarkerType G4VisTrajContext::GetStepPtsType() const {return fStepPtsType;}
0082
0083 inline void G4VisTrajContext::SetStepPtsSize(const G4double& size) {fStepPtsSize = size;}
0084 inline G4double G4VisTrajContext::GetStepPtsSize() const {return fStepPtsSize;}
0085
0086 inline void G4VisTrajContext::SetStepPtsSizeType(const G4VMarker::SizeType& sizeType) {fStepPtsSizeType = sizeType;}
0087 inline G4VMarker::SizeType G4VisTrajContext::GetStepPtsSizeType() const {return fStepPtsSizeType;}
0088
0089 inline void G4VisTrajContext::SetStepPtsFillStyle(const G4VMarker::FillStyle& style) {fStepPtsFillStyle = style;}
0090 inline G4VMarker::FillStyle G4VisTrajContext::GetStepPtsFillStyle() const {return fStepPtsFillStyle;}
0091
0092 inline void G4VisTrajContext::SetStepPtsColour(const G4Colour& colour) {fStepPtsColour = colour;}
0093 inline G4Colour G4VisTrajContext::GetStepPtsColour() const {return fStepPtsColour;}
0094
0095 inline void G4VisTrajContext::SetStepPtsVisible(const G4bool& visible) {fStepPtsVisible = visible;}
0096 inline G4bool G4VisTrajContext::GetStepPtsVisible() const {return fStepPtsVisible;}
0097
0098 inline void G4VisTrajContext::SetTimeSliceInterval(const G4double& interval) {fTimeSliceInterval = interval;}
0099 inline G4double G4VisTrajContext::GetTimeSliceInterval() const {return fTimeSliceInterval;}
0100
0101 #include "G4UnitsTable.hh"
0102
0103 inline void G4VisTrajContext::Print(std::ostream& ostr) const
0104 {
0105 ostr<<"Name: "<<Name()<<G4endl;
0106 ostr<<"Line colour "<<GetLineColour()<<G4endl;
0107 ostr<<"Draw line ? "<<GetDrawLine()<<G4endl;
0108 ostr<<"Line visibile ? "<<GetLineVisible()<<G4endl;
0109 ostr<<"Draw auxiliary points ? "<<GetDrawAuxPts()<<G4endl;
0110 ostr<<"Auxiliary points type "<<GetAuxPtsType()<<G4endl;
0111 ostr<<"Auxiliary points size "<<GetAuxPtsSize()<<G4endl;
0112 ostr<<"Auxiliary points fill style "<<GetAuxPtsFillStyle()<<G4endl;
0113 ostr<<"Auxiliary points colour "<<GetAuxPtsColour()<<G4endl;
0114 ostr<<"Auxiliary points visible ? "<<GetAuxPtsVisible()<<G4endl;
0115 ostr<<"Draw step points ? "<<GetDrawStepPts()<<G4endl;
0116 ostr<<"Step points type "<<GetStepPtsType()<<G4endl;
0117 ostr<<"Step points size "<<GetStepPtsSize()<<G4endl;
0118 ostr<<"Step points fill style "<<GetStepPtsFillStyle()<<G4endl;
0119 ostr<<"Step points colour "<<GetStepPtsColour()<<G4endl;
0120 ostr<<"Step points visible ? "<<GetStepPtsVisible()<<G4endl;
0121 ostr<<"Time slice interval "<<G4BestUnit(GetTimeSliceInterval(),"Time")<<G4endl;
0122 }
0123
0124 #endif