#include <G4VisCommandsViewer.hh>
Definition at line 57 of file G4VisCommandsViewer.hh.
G4VisCommandViewerAddCutawayPlane::G4VisCommandViewerAddCutawayPlane |
( |
| ) |
|
Definition at line 89 of file G4VisCommandsViewer.cc.
91 fpCommand =
new G4UIcommand (
"/vis/viewer/addCutawayPlane",
this);
92 fpCommand -> SetGuidance
93 (
"Add cutaway plane to current viewer.");
96 parameter -> SetDefaultValue (0);
97 parameter -> SetGuidance (
"Coordinate of point on the plane.");
100 parameter -> SetDefaultValue (0);
101 parameter -> SetGuidance (
"Coordinate of point on the plane.");
104 parameter -> SetDefaultValue (0);
105 parameter -> SetGuidance (
"Coordinate of point on the plane.");
108 parameter -> SetDefaultValue (
"m");
109 parameter -> SetGuidance (
"Unit of point on the plane.");
112 parameter -> SetDefaultValue (1);
113 parameter -> SetGuidance (
"Component of plane normal.");
116 parameter -> SetDefaultValue (0);
117 parameter -> SetGuidance (
"Component of plane normal.");
120 parameter -> SetDefaultValue (0);
121 parameter -> SetGuidance (
"Component of plane normal.");
void SetParameter(G4UIparameter *const newParameter)
G4VisCommandViewerAddCutawayPlane::~G4VisCommandViewerAddCutawayPlane |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 133 of file G4VisCommandsViewer.cc.
141 "ERROR: No current viewer - \"/vis/viewer/list\" to see possibilities."
149 std::istringstream is (newValue);
150 is >> x >> y >> z >> unit >> nx >> ny >> nz;
152 x *= F; y *= F; z *= F;
157 G4cout <<
"Cutaway planes for viewer \"" << viewer->
GetName() <<
"\" now:";
159 for (
size_t i = 0; i < cutaways.size(); ++i)
160 G4cout <<
"\n " << i <<
": " << cutaways[i];
const G4String & GetName() const
void AddCutawayPlane(const G4Plane3D &cutawayPlane)
const G4ViewParameters & GetViewParameters() const
void SetViewParameters(G4VViewer *, const G4ViewParameters &)
HepGeom::Point3D< G4double > G4Point3D
const G4Planes & GetCutawayPlanes() const
G4GLOB_DLL std::ostream G4cout
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: