G4VisCommandGeometrySetForceWireframe Class Reference

#include <G4VisCommandsGeometrySet.hh>

Inheritance diagram for G4VisCommandGeometrySetForceWireframe:

G4VVisCommandGeometrySet G4VVisCommandGeometry G4VVisCommand G4UImessenger

Public Member Functions

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

Detailed Description

Definition at line 251 of file G4VisCommandsGeometrySet.hh.


Constructor & Destructor Documentation

G4VisCommandGeometrySetForceWireframe::G4VisCommandGeometrySetForceWireframe (  ) 

Definition at line 402 of file G4VisCommandsGeometrySet.cc.

References G4UIparameter::SetDefaultValue(), G4UIparameter::SetGuidance(), G4UIcommand::SetGuidance(), and G4UIcommand::SetParameter().

00403 {
00404   G4bool omitable;
00405   fpCommand = new G4UIcommand("/vis/geometry/set/forceWireframe", this);
00406   fpCommand->SetGuidance
00407    ("Forces logical volume(s) always to be drawn as wireframe,"
00408     "\nregardless of the view parameters.");
00409   fpCommand->SetGuidance("\"all\" sets all logical volumes.");
00410   fpCommand->SetGuidance
00411     ("Optionally propagates down hierarchy to given depth.");
00412   G4UIparameter* parameter;
00413   parameter = new G4UIparameter ("logical-volume-name", 's', omitable = true);
00414   parameter->SetDefaultValue("all");
00415   fpCommand->SetParameter(parameter);
00416   parameter = new G4UIparameter("depth", 'd', omitable = true);
00417   parameter->SetDefaultValue(0);
00418   parameter->SetGuidance
00419     ("Depth of propagation (-1 means unlimited depth).");
00420   fpCommand->SetParameter(parameter);
00421   parameter = new G4UIparameter("forceWireframe", 'b', omitable = true);
00422   parameter->SetDefaultValue(false);
00423   fpCommand->SetParameter(parameter);
00424 }

G4VisCommandGeometrySetForceWireframe::~G4VisCommandGeometrySetForceWireframe (  )  [virtual]

Definition at line 426 of file G4VisCommandsGeometrySet.cc.

00427 {
00428   delete fpCommand;
00429 }


Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 432 of file G4VisCommandsGeometrySet.cc.

00433 {
00434   return "";
00435 }

void G4VisCommandGeometrySetForceWireframe::SetNewValue ( G4UIcommand command,
G4String  newValue 
) [virtual]

Reimplemented from G4UImessenger.

Definition at line 438 of file G4VisCommandsGeometrySet.cc.

References G4UIcommand::ConvertToBool().

00439 {
00440   G4String name;
00441   G4int requestedDepth;
00442   G4String forceWireframeString;
00443   std::istringstream iss(newValue);
00444   iss >> name >> requestedDepth >> forceWireframeString;
00445   G4bool forceWireframe = G4UIcommand::ConvertToBool(forceWireframeString);
00446 
00447   G4VisCommandGeometrySetForceWireframeFunction
00448     setForceWireframe(forceWireframe);
00449   Set(name, setForceWireframe, requestedDepth);
00450 }


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