G4VisCommandViewerClearCutawayPlanes Class Reference

#include <G4VisCommandsViewer.hh>

Inheritance diagram for G4VisCommandViewerClearCutawayPlanes:

G4VVisCommandViewer G4VVisCommand G4UImessenger

Public Member Functions

 G4VisCommandViewerClearCutawayPlanes ()
virtual ~G4VisCommandViewerClearCutawayPlanes ()
G4String GetCurrentValue (G4UIcommand *command)
void SetNewValue (G4UIcommand *command, G4String newValue)

Detailed Description

Definition at line 93 of file G4VisCommandsViewer.hh.


Constructor & Destructor Documentation

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]

Definition at line 294 of file G4VisCommandsViewer.cc.

00294                                                                              {
00295   delete fpCommand;
00296 }


Member Function Documentation

G4String G4VisCommandViewerClearCutawayPlanes::GetCurrentValue ( G4UIcommand command  )  [virtual]

Reimplemented from G4UImessenger.

Definition at line 298 of file G4VisCommandsViewer.cc.

00298                                                                             {
00299   return "";
00300 }

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 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:47 2013 for Geant4 by  doxygen 1.4.7