#include <G4VisCommandsViewer.hh>
Inheritance diagram for G4VisCommandViewerClearCutawayPlanes:
Public Member Functions | |
G4VisCommandViewerClearCutawayPlanes () | |
virtual | ~G4VisCommandViewerClearCutawayPlanes () |
G4String | GetCurrentValue (G4UIcommand *command) |
void | SetNewValue (G4UIcommand *command, G4String newValue) |
Definition at line 93 of file G4VisCommandsViewer.hh.
G4VisCommandViewerClearCutawayPlanes::G4VisCommandViewerClearCutawayPlanes | ( | ) |
Definition at line 288 of file G4VisCommandsViewer.cc.
00288 { 00289 fpCommand = new G4UIcmdWithoutParameter 00290 ("/vis/viewer/clearCutawayPlanes", this); 00291 fpCommand -> SetGuidance ("Clear cutaway planes of current viewer."); 00292 }
G4VisCommandViewerClearCutawayPlanes::~G4VisCommandViewerClearCutawayPlanes | ( | ) | [virtual] |
G4String G4VisCommandViewerClearCutawayPlanes::GetCurrentValue | ( | G4UIcommand * | command | ) | [virtual] |
void G4VisCommandViewerClearCutawayPlanes::SetNewValue | ( | G4UIcommand * | command, | |
G4String | newValue | |||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 302 of file G4VisCommandsViewer.cc.
References G4ViewParameters::ClearCutawayPlanes(), G4VisManager::confirmations, G4VisManager::errors, G4VVisCommand::fpVisManager, G4cout, G4endl, G4VViewer::GetName(), G4VisManager::GetVerbosity(), G4VViewer::GetViewParameters(), and G4VVisCommandViewer::SetViewParameters().
00302 { 00303 00304 G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity(); 00305 00306 G4VViewer* viewer = fpVisManager -> GetCurrentViewer (); 00307 if (!viewer) { 00308 if (verbosity >= G4VisManager::errors) { 00309 G4cout << 00310 "ERROR: No current viewer - \"/vis/viewer/list\" to see possibilities." 00311 << G4endl; 00312 } 00313 return; 00314 } 00315 00316 G4ViewParameters vp = viewer->GetViewParameters(); 00317 vp.ClearCutawayPlanes(); 00318 if (verbosity >= G4VisManager::confirmations) { 00319 G4cout << "Cutaway planes for viewer \"" << viewer->GetName() 00320 << "\" now cleared." << G4endl; 00321 } 00322 00323 SetViewParameters(viewer, vp); 00324 }