[834] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 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. * |
---|
| 10 | // * * |
---|
| 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. * |
---|
| 17 | // * * |
---|
| 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 | // ******************************************************************** |
---|
| 25 | // |
---|
[931] | 26 | // $Id: G4VisTrajContext.icc,v 1.4 2009/02/24 12:00:56 allison Exp $ |
---|
[944] | 27 | // GEANT4 tag $Name: $ |
---|
[834] | 28 | // |
---|
| 29 | // Jane Tinslay May 2006 |
---|
| 30 | // |
---|
| 31 | #ifndef G4VISTRAJ_CONTEXT_ICC |
---|
| 32 | #define G4VISTRAJ_CONTEXT_ICC |
---|
| 33 | |
---|
| 34 | inline G4String G4VisTrajContext::Name() const {return fName;} |
---|
| 35 | |
---|
| 36 | inline void G4VisTrajContext::SetVisible(const G4bool& visible) |
---|
| 37 | { |
---|
| 38 | SetLineVisible(visible); |
---|
| 39 | SetAuxPtsVisible(visible); |
---|
| 40 | SetStepPtsVisible(visible); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | // Line |
---|
| 44 | inline void G4VisTrajContext::SetLineColour(const G4Colour& colour) {fLineColour = colour;} |
---|
| 45 | inline G4Colour G4VisTrajContext::GetLineColour() const {return fLineColour;} |
---|
| 46 | |
---|
| 47 | inline void G4VisTrajContext::SetDrawLine(const G4bool& draw) {fDrawLine = draw;} |
---|
| 48 | inline G4bool G4VisTrajContext::GetDrawLine() const {return fDrawLine;} |
---|
| 49 | |
---|
| 50 | inline void G4VisTrajContext::SetLineVisible(const G4bool& visible) {fLineVisible = visible;} |
---|
| 51 | inline G4bool G4VisTrajContext::GetLineVisible() const {return fLineVisible;} |
---|
| 52 | |
---|
| 53 | // Auxiliary points |
---|
| 54 | inline void G4VisTrajContext::SetDrawAuxPts(const G4bool& draw) {fDrawAuxPts = draw;} |
---|
| 55 | inline G4bool G4VisTrajContext::GetDrawAuxPts() const {return fDrawAuxPts;} |
---|
| 56 | |
---|
| 57 | inline void G4VisTrajContext::SetAuxPtsType(const G4Polymarker::MarkerType& marker) {fAuxPtsType = marker;} |
---|
| 58 | inline G4Polymarker::MarkerType G4VisTrajContext::GetAuxPtsType() const {return fAuxPtsType;} |
---|
| 59 | |
---|
| 60 | inline void G4VisTrajContext::SetAuxPtsSize(const G4double& size) {fAuxPtsSize = size;} |
---|
| 61 | inline G4double G4VisTrajContext::GetAuxPtsSize() const {return fAuxPtsSize;} |
---|
| 62 | |
---|
[931] | 63 | inline void G4VisTrajContext::SetAuxPtsSizeType(const G4VMarker::SizeType& sizeType) {fAuxPtsSizeType = sizeType;} |
---|
| 64 | inline G4VMarker::SizeType G4VisTrajContext::GetAuxPtsSizeType() const {return fAuxPtsSizeType;} |
---|
| 65 | |
---|
[834] | 66 | inline void G4VisTrajContext::SetAuxPtsFillStyle(const G4VMarker::FillStyle& style) {fAuxPtsFillStyle = style;} |
---|
| 67 | inline G4VMarker::FillStyle G4VisTrajContext::GetAuxPtsFillStyle() const {return fAuxPtsFillStyle;} |
---|
| 68 | |
---|
| 69 | inline void G4VisTrajContext::SetAuxPtsColour(const G4Colour& colour) {fAuxPtsColour = colour;} |
---|
| 70 | inline G4Colour G4VisTrajContext::GetAuxPtsColour() const {return fAuxPtsColour;} |
---|
| 71 | |
---|
| 72 | inline void G4VisTrajContext::SetAuxPtsVisible(const G4bool& visible) {fAuxPtsVisible = visible;} |
---|
| 73 | inline G4bool G4VisTrajContext::GetAuxPtsVisible() const {return fAuxPtsVisible;} |
---|
| 74 | |
---|
| 75 | // Step points |
---|
| 76 | inline void G4VisTrajContext::SetDrawStepPts(const G4bool& draw) {fDrawStepPts = draw;} |
---|
| 77 | inline G4bool G4VisTrajContext::GetDrawStepPts() const {return fDrawStepPts;} |
---|
| 78 | |
---|
| 79 | inline void G4VisTrajContext::SetStepPtsType(const G4Polymarker::MarkerType& marker) {fStepPtsType = marker;} |
---|
| 80 | inline G4Polymarker::MarkerType G4VisTrajContext::GetStepPtsType() const {return fStepPtsType;} |
---|
| 81 | |
---|
| 82 | inline void G4VisTrajContext::SetStepPtsSize(const G4double& size) {fStepPtsSize = size;} |
---|
| 83 | inline G4double G4VisTrajContext::GetStepPtsSize() const {return fStepPtsSize;} |
---|
| 84 | |
---|
[931] | 85 | inline void G4VisTrajContext::SetStepPtsSizeType(const G4VMarker::SizeType& sizeType) {fStepPtsSizeType = sizeType;} |
---|
| 86 | inline G4VMarker::SizeType G4VisTrajContext::GetStepPtsSizeType() const {return fStepPtsSizeType;} |
---|
| 87 | |
---|
[834] | 88 | inline void G4VisTrajContext::SetStepPtsFillStyle(const G4VMarker::FillStyle& style) {fStepPtsFillStyle = style;} |
---|
| 89 | inline G4VMarker::FillStyle G4VisTrajContext::GetStepPtsFillStyle() const {return fStepPtsFillStyle;} |
---|
| 90 | |
---|
| 91 | inline void G4VisTrajContext::SetStepPtsColour(const G4Colour& colour) {fStepPtsColour = colour;} |
---|
| 92 | inline G4Colour G4VisTrajContext::GetStepPtsColour() const {return fStepPtsColour;} |
---|
| 93 | |
---|
| 94 | inline void G4VisTrajContext::SetStepPtsVisible(const G4bool& visible) {fStepPtsVisible = visible;} |
---|
| 95 | inline G4bool G4VisTrajContext::GetStepPtsVisible() const {return fStepPtsVisible;} |
---|
| 96 | |
---|
| 97 | inline void G4VisTrajContext::SetTimeSliceInterval(const G4double& interval) {fTimeSliceInterval = interval;} |
---|
| 98 | inline G4double G4VisTrajContext::GetTimeSliceInterval() const {return fTimeSliceInterval;} |
---|
| 99 | |
---|
| 100 | #include "G4UnitsTable.hh" |
---|
| 101 | |
---|
| 102 | inline void G4VisTrajContext::Print(std::ostream& ostr) const |
---|
| 103 | { |
---|
| 104 | ostr<<"Name: "<<Name()<<G4endl; |
---|
| 105 | ostr<<"Line colour "<<GetLineColour()<<G4endl; |
---|
| 106 | ostr<<"Draw line ? "<<GetDrawLine()<<G4endl; |
---|
| 107 | ostr<<"Line visibile ? "<<GetLineVisible()<<G4endl; |
---|
| 108 | ostr<<"Draw auxiliary points ? "<<GetDrawAuxPts()<<G4endl; |
---|
| 109 | ostr<<"Auxiliary points type "<<GetAuxPtsType()<<G4endl; |
---|
| 110 | ostr<<"Auxiliary points size "<<GetAuxPtsSize()<<G4endl; |
---|
| 111 | ostr<<"Auxiliary points fill style "<<GetAuxPtsFillStyle()<<G4endl; |
---|
| 112 | ostr<<"Auxiliary points colour "<<GetAuxPtsColour()<<G4endl; |
---|
| 113 | ostr<<"Auxiliary points visible ? "<<GetAuxPtsVisible()<<G4endl; |
---|
| 114 | ostr<<"Draw step points ? "<<GetDrawStepPts()<<G4endl; |
---|
| 115 | ostr<<"Step points type "<<GetStepPtsType()<<G4endl; |
---|
| 116 | ostr<<"Step points size "<<GetStepPtsSize()<<G4endl; |
---|
| 117 | ostr<<"Step points fill style "<<GetStepPtsFillStyle()<<G4endl; |
---|
| 118 | ostr<<"Step points colour "<<GetStepPtsColour()<<G4endl; |
---|
| 119 | ostr<<"Step points visible ? "<<GetStepPtsVisible()<<G4endl; |
---|
| 120 | ostr<<"Time slice interval "<<G4BestUnit(GetTimeSliceInterval(),"Time")<<G4endl; |
---|
| 121 | } |
---|
| 122 | |
---|
| 123 | #endif |
---|