G4VisCommandGeometrySetForceSolid Class Reference

#include <G4VisCommandsGeometrySet.hh>

Inheritance diagram for G4VisCommandGeometrySetForceSolid:

G4VVisCommandGeometrySet G4VVisCommandGeometry G4VVisCommand G4UImessenger

Public Member Functions

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

Detailed Description

Definition at line 221 of file G4VisCommandsGeometrySet.hh.


Constructor & Destructor Documentation

G4VisCommandGeometrySetForceSolid::G4VisCommandGeometrySetForceSolid (  ) 

Definition at line 351 of file G4VisCommandsGeometrySet.cc.

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

00352 {
00353   G4bool omitable;
00354   fpCommand = new G4UIcommand("/vis/geometry/set/forceSolid", this);
00355   fpCommand->SetGuidance
00356    ("Forces logical volume(s) always to be drawn solid (surface drawing),"
00357     "\nregardless of the view parameters.");
00358   fpCommand->SetGuidance("\"all\" sets all logical volumes.");
00359   fpCommand->SetGuidance
00360     ("Optionally propagates down hierarchy to given depth.");
00361   G4UIparameter* parameter;
00362   parameter = new G4UIparameter ("logical-volume-name", 's', omitable = true);
00363   parameter->SetDefaultValue("all");
00364   fpCommand->SetParameter(parameter);
00365   parameter = new G4UIparameter("depth", 'd', omitable = true);
00366   parameter->SetDefaultValue(0);
00367   parameter->SetGuidance
00368     ("Depth of propagation (-1 means unlimited depth).");
00369   fpCommand->SetParameter(parameter);
00370   parameter = new G4UIparameter("forceSolid", 'b', omitable = true);
00371   parameter->SetDefaultValue(false);
00372   fpCommand->SetParameter(parameter);
00373 }

G4VisCommandGeometrySetForceSolid::~G4VisCommandGeometrySetForceSolid (  )  [virtual]

Definition at line 375 of file G4VisCommandsGeometrySet.cc.

00376 {
00377   delete fpCommand;
00378 }


Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 381 of file G4VisCommandsGeometrySet.cc.

00382 {
00383   return "";
00384 }

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

Reimplemented from G4UImessenger.

Definition at line 387 of file G4VisCommandsGeometrySet.cc.

References G4UIcommand::ConvertToBool().

00388 {
00389   G4String name;
00390   G4int requestedDepth;
00391   G4String forceSolidString;
00392   std::istringstream iss(newValue);
00393   iss >> name >> requestedDepth >> forceSolidString;
00394   G4bool forceSolid = G4UIcommand::ConvertToBool(forceSolidString);
00395 
00396   G4VisCommandGeometrySetForceSolidFunction setForceSolid(forceSolid);
00397   Set(name, setForceSolid, requestedDepth);
00398 }


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