#include <G4VisCommandsViewer.hh>
Definition at line 69 of file G4VisCommandsViewer.hh.
G4VisCommandViewerChangeCutawayPlane::G4VisCommandViewerChangeCutawayPlane |
( |
| ) |
|
Definition at line 169 of file G4VisCommandsViewer.cc.
171 fpCommand =
new G4UIcommand (
"/vis/viewer/changeCutawayPlane",
this);
172 fpCommand -> SetGuidance(
"Change cutaway plane.");
175 parameter -> SetGuidance (
"Index of plane: 0, 1, 2.");
178 parameter -> SetDefaultValue (0);
179 parameter -> SetGuidance (
"Coordinate of point on the plane.");
182 parameter -> SetDefaultValue (0);
183 parameter -> SetGuidance (
"Coordinate of point on the plane.");
186 parameter -> SetDefaultValue (0);
187 parameter -> SetGuidance (
"Coordinate of point on the plane.");
190 parameter -> SetDefaultValue (
"m");
191 parameter -> SetGuidance (
"Unit of point on the plane.");
194 parameter -> SetDefaultValue (1);
195 parameter -> SetGuidance (
"Component of plane normal.");
198 parameter -> SetDefaultValue (0);
199 parameter -> SetGuidance (
"Component of plane normal.");
202 parameter -> SetDefaultValue (0);
203 parameter -> SetGuidance (
"Component of plane normal.");
void SetParameter(G4UIparameter *const newParameter)
G4VisCommandViewerChangeCutawayPlane::~G4VisCommandViewerChangeCutawayPlane |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 215 of file G4VisCommandsViewer.cc.
223 "ERROR: No current viewer - \"/vis/viewer/list\" to see possibilities."
232 std::istringstream is (newValue);
233 is >> index >> x >> y >> z >> unit >> nx >> ny >> nz;
235 x *= F; y *= F; z *= F;
241 G4cout <<
"Cutaway planes for viewer \"" << viewer->
GetName() <<
"\" now:";
243 for (
size_t i = 0; i < cutaways.size(); ++i)
244 G4cout <<
"\n " << i <<
": " << cutaways[i];
const G4String & GetName() const
const G4ViewParameters & GetViewParameters() const
void SetViewParameters(G4VViewer *, const G4ViewParameters &)
HepGeom::Point3D< G4double > G4Point3D
const G4Planes & GetCutawayPlanes() const
G4GLOB_DLL std::ostream G4cout
void ChangeCutawayPlane(size_t index, const G4Plane3D &cutawayPlane)
std::vector< G4Plane3D > G4Planes
static G4double ValueOf(const char *unitName)
static Verbosity GetVerbosity()
HepGeom::Plane3D< G4double > G4Plane3D
G4GLOB_DLL std::ostream G4cerr
HepGeom::Normal3D< G4double > G4Normal3D
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: