source: trunk/source/visualization/modeling/include/G4VisTrajContext.hh@ 1332

Last change on this file since 1332 was 944, checked in by garnier, 17 years ago

mise a jour des tags

File size: 4.5 KB
RevLine 
[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.hh,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 G4VISTRAJCONTEXT_HH
32#define G4VISTRAJCONTEXT_HH
33
34#include "G4Colour.hh"
35#include "G4Polymarker.hh"
36
37class G4VisTrajContext {
38
39public:
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
[931]74 void SetAuxPtsSizeType(const G4VMarker::SizeType& sizeType);
75 G4VMarker::SizeType GetAuxPtsSizeType() const;
76
[834]77 void SetAuxPtsFillStyle(const G4VMarker::FillStyle& style);
78 G4VMarker::FillStyle GetAuxPtsFillStyle() const;
79
80 void SetAuxPtsColour(const G4Colour& colour);
81 G4Colour GetAuxPtsColour() const;
82
83 void SetAuxPtsVisible(const G4bool& visible);
84 G4bool GetAuxPtsVisible() const;
85
86 // Step points
87 void SetDrawStepPts(const G4bool& draw);
88 G4bool GetDrawStepPts() const;
89
90 void SetStepPtsType(const G4Polymarker::MarkerType& marker);
91 G4Polymarker::MarkerType GetStepPtsType() const;
92
93 void SetStepPtsSize(const G4double& size);
94 G4double GetStepPtsSize() const;
95
[931]96 void SetStepPtsSizeType(const G4VMarker::SizeType& sizeType);
97 G4VMarker::SizeType GetStepPtsSizeType() const;
98
[834]99 void SetStepPtsFillStyle(const G4VMarker::FillStyle& style);
100 G4VMarker::FillStyle GetStepPtsFillStyle() const;
101
102 void SetStepPtsColour(const G4Colour& colour);
103 G4Colour GetStepPtsColour() const;
104
105 void SetStepPtsVisible(const G4bool& visible);
106 G4bool GetStepPtsVisible() const;
107
108 void SetTimeSliceInterval(const G4double& interval);
109 G4double GetTimeSliceInterval() const;
110
111private:
112
113 // Data members
114 G4String fName;
115
116 // Line data
117 G4Colour fLineColour;
118 G4bool fLineVisible;
119 G4bool fDrawLine;
120
121 // Auxiliary point data
122 G4bool fDrawAuxPts;
123 G4Polymarker::MarkerType fAuxPtsType;
124 G4double fAuxPtsSize;
[931]125 G4VMarker::SizeType fAuxPtsSizeType;
[834]126 G4VMarker::FillStyle fAuxPtsFillStyle;
127 G4Colour fAuxPtsColour;
128 G4bool fAuxPtsVisible;
129
130 // Step point data
131 G4bool fDrawStepPts;
132 G4Polymarker::MarkerType fStepPtsType;
133 G4double fStepPtsSize;
[931]134 G4VMarker::SizeType fStepPtsSizeType;
[834]135 G4VMarker::FillStyle fStepPtsFillStyle;
136 G4Colour fStepPtsColour;
137 G4bool fStepPtsVisible;
138
139 // Time slicing
140 G4double fTimeSliceInterval;
141
142};
143
144#include "G4VisTrajContext.icc"
145
146#endif
147
Note: See TracBrowser for help on using the repository browser.