#include <G4VisCommandsViewer.hh>
Definition at line 221 of file G4VisCommandsViewer.hh.
G4VisCommandViewerPan::G4VisCommandViewerPan |
( |
| ) |
|
Definition at line 1304 of file G4VisCommandsViewer.cc.
1305 fPanIncrementRight (0.),
1306 fPanIncrementUp (0.),
1313 (
"/vis/viewer/pan",
this);
1314 fpCommandPan -> SetGuidance
1315 (
"Incremental pan.");
1316 fpCommandPan -> SetGuidance
1317 (
"Moves the camera incrementally right and up by these amounts (as seen"
1318 "\nfrom viewpoint direction).");
1320 parameter =
new G4UIparameter(
"right-increment",
'd', omitable =
true);
1321 parameter -> SetCurrentAsDefault (
true);
1322 fpCommandPan -> SetParameter (parameter);
1323 parameter =
new G4UIparameter(
"up-increment",
'd', omitable =
true);
1324 parameter -> SetCurrentAsDefault (
true);
1325 fpCommandPan -> SetParameter (parameter);
1326 parameter =
new G4UIparameter (
"unit",
's', omitable =
true);
1327 parameter -> SetDefaultValue (
"m");
1328 fpCommandPan -> SetParameter (parameter);
1331 (
"/vis/viewer/panTo",
this);
1332 fpCommandPanTo -> SetGuidance
1333 (
"Pan to specific coordinate.");
1334 fpCommandPanTo -> SetGuidance
1335 (
"Places the camera in this position right and up relative to standard"
1336 "\ntarget point (as seen from viewpoint direction).");
1337 parameter =
new G4UIparameter(
"right",
'd', omitable =
true);
1338 parameter -> SetCurrentAsDefault (
true);
1339 fpCommandPanTo -> SetParameter (parameter);
1341 parameter -> SetCurrentAsDefault (
true);
1342 fpCommandPanTo -> SetParameter (parameter);
1343 parameter =
new G4UIparameter (
"unit",
's', omitable =
true);
1344 parameter -> SetDefaultValue (
"m");
1345 fpCommandPanTo -> SetParameter (parameter);
G4VisCommandViewerPan::~G4VisCommandViewerPan |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 1353 of file G4VisCommandsViewer.cc.
1355 if (command == fpCommandPan) {
1356 currentValue =
ConvertToString(fPanIncrementRight, fPanIncrementUp,
"m");
1358 else if (command == fpCommandPanTo) {
1361 return currentValue;
static G4String ConvertToString(G4double x, G4double y, const char *unitName)
Reimplemented from G4UImessenger.
Definition at line 1364 of file G4VisCommandsViewer.cc.
1371 if (!currentViewer) {
1374 "ERROR: G4VisCommandsViewerPan::SetNewValue: no current viewer."
1382 if (command == fpCommandPan) {
1386 else if (command == fpCommandPanTo) {
1388 vp.
SetPan(fPanToRight, fPanToUp);
void IncrementPan(G4double right, G4double up)
void SetPan(G4double right, G4double up)
const G4ViewParameters & GetViewParameters() const
void SetViewParameters(G4VViewer *, const G4ViewParameters &)
const G4Point3D & GetCurrentTargetPoint() const
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
G4VViewer * GetCurrentViewer() const
static void ConvertToDoublePair(const G4String ¶mString, G4double &xval, G4double &yval)
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: