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 | // |
---|
26 | // $Id: G4VisTrajContext.hh,v 1.3 2006/08/14 11:47:53 allison Exp $ |
---|
27 | // GEANT4 tag $Name: $ |
---|
28 | // |
---|
29 | // Jane Tinslay May 2006 |
---|
30 | // |
---|
31 | #ifndef G4VISTRAJCONTEXT_HH |
---|
32 | #define G4VISTRAJCONTEXT_HH |
---|
33 | |
---|
34 | #include "G4Colour.hh" |
---|
35 | #include "G4Polymarker.hh" |
---|
36 | |
---|
37 | class G4VisTrajContext { |
---|
38 | |
---|
39 | public: |
---|
40 | |
---|
41 | // Default configuration |
---|
42 | G4VisTrajContext(const G4String& name = "Unspecified"); |
---|
43 | |
---|
44 | // Destructor |
---|
45 | virtual ~G4VisTrajContext(); |
---|
46 | |
---|
47 | G4String Name() const; |
---|
48 | |
---|
49 | void SetVisible(const G4bool& visible); |
---|
50 | |
---|
51 | // Print configuration |
---|
52 | void Print(std::ostream& ostr) const; |
---|
53 | |
---|
54 | // Line |
---|
55 | void SetLineColour(const G4Colour& colour); |
---|
56 | G4Colour GetLineColour() const; |
---|
57 | |
---|
58 | void SetDrawLine(const G4bool& draw); |
---|
59 | G4bool GetDrawLine() const; |
---|
60 | |
---|
61 | void SetLineVisible(const G4bool& visible); |
---|
62 | G4bool GetLineVisible() const; |
---|
63 | |
---|
64 | // Auxiliary points |
---|
65 | void SetDrawAuxPts(const G4bool& draw); |
---|
66 | G4bool GetDrawAuxPts() const; |
---|
67 | |
---|
68 | void SetAuxPtsType(const G4Polymarker::MarkerType& marker); |
---|
69 | G4Polymarker::MarkerType GetAuxPtsType() const; |
---|
70 | |
---|
71 | void SetAuxPtsSize(const G4double& size); |
---|
72 | G4double GetAuxPtsSize() const; |
---|
73 | |
---|
74 | void SetAuxPtsFillStyle(const G4VMarker::FillStyle& style); |
---|
75 | G4VMarker::FillStyle GetAuxPtsFillStyle() const; |
---|
76 | |
---|
77 | void SetAuxPtsColour(const G4Colour& colour); |
---|
78 | G4Colour GetAuxPtsColour() const; |
---|
79 | |
---|
80 | void SetAuxPtsVisible(const G4bool& visible); |
---|
81 | G4bool GetAuxPtsVisible() const; |
---|
82 | |
---|
83 | // Step points |
---|
84 | void SetDrawStepPts(const G4bool& draw); |
---|
85 | G4bool GetDrawStepPts() const; |
---|
86 | |
---|
87 | void SetStepPtsType(const G4Polymarker::MarkerType& marker); |
---|
88 | G4Polymarker::MarkerType GetStepPtsType() const; |
---|
89 | |
---|
90 | void SetStepPtsSize(const G4double& size); |
---|
91 | G4double GetStepPtsSize() const; |
---|
92 | |
---|
93 | void SetStepPtsFillStyle(const G4VMarker::FillStyle& style); |
---|
94 | G4VMarker::FillStyle GetStepPtsFillStyle() const; |
---|
95 | |
---|
96 | void SetStepPtsColour(const G4Colour& colour); |
---|
97 | G4Colour GetStepPtsColour() const; |
---|
98 | |
---|
99 | void SetStepPtsVisible(const G4bool& visible); |
---|
100 | G4bool GetStepPtsVisible() const; |
---|
101 | |
---|
102 | void SetTimeSliceInterval(const G4double& interval); |
---|
103 | G4double GetTimeSliceInterval() const; |
---|
104 | |
---|
105 | private: |
---|
106 | |
---|
107 | // Data members |
---|
108 | G4String fName; |
---|
109 | |
---|
110 | // Line data |
---|
111 | G4Colour fLineColour; |
---|
112 | G4bool fLineVisible; |
---|
113 | G4bool fDrawLine; |
---|
114 | |
---|
115 | // Auxiliary point data |
---|
116 | G4bool fDrawAuxPts; |
---|
117 | G4Polymarker::MarkerType fAuxPtsType; |
---|
118 | G4double fAuxPtsSize; |
---|
119 | G4VMarker::FillStyle fAuxPtsFillStyle; |
---|
120 | G4Colour fAuxPtsColour; |
---|
121 | G4bool fAuxPtsVisible; |
---|
122 | |
---|
123 | // Step point data |
---|
124 | G4bool fDrawStepPts; |
---|
125 | G4Polymarker::MarkerType fStepPtsType; |
---|
126 | G4double fStepPtsSize; |
---|
127 | G4VMarker::FillStyle fStepPtsFillStyle; |
---|
128 | G4Colour fStepPtsColour; |
---|
129 | G4bool fStepPtsVisible; |
---|
130 | |
---|
131 | // Time slicing |
---|
132 | G4double fTimeSliceInterval; |
---|
133 | |
---|
134 | }; |
---|
135 | |
---|
136 | #include "G4VisTrajContext.icc" |
---|
137 | |
---|
138 | #endif |
---|
139 | |
---|