G4VisCommandGeometrySetLineWidth Class Reference

#include <G4VisCommandsGeometrySet.hh>

Inheritance diagram for G4VisCommandGeometrySetLineWidth:

G4VVisCommandGeometrySet G4VVisCommandGeometry G4VVisCommand G4UImessenger

Public Member Functions

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

Detailed Description

Definition at line 281 of file G4VisCommandsGeometrySet.hh.


Constructor & Destructor Documentation

G4VisCommandGeometrySetLineWidth::G4VisCommandGeometrySetLineWidth (  ) 

Definition at line 506 of file G4VisCommandsGeometrySet.cc.

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

00507 {
00508   G4bool omitable;
00509   fpCommand = new G4UIcommand("/vis/geometry/set/lineWidth", this);
00510   fpCommand->SetGuidance("Sets line width of logical volume(s) drawing.");
00511   fpCommand->SetGuidance("\"all\" sets all logical volumes.");
00512   fpCommand->SetGuidance
00513     ("Optionally propagates down hierarchy to given depth.");
00514   G4UIparameter* parameter;
00515   parameter = new G4UIparameter ("logical-volume-name", 's', omitable = true);
00516   parameter->SetDefaultValue("all");
00517   fpCommand->SetParameter(parameter);
00518   parameter = new G4UIparameter("depth", 'd', omitable = true);
00519   parameter->SetDefaultValue(0);
00520   parameter->SetGuidance
00521     ("Depth of propagation (-1 means unlimited depth).");
00522   fpCommand->SetParameter(parameter);
00523   parameter = new G4UIparameter("lineWidth", 'd', omitable = true);
00524   parameter->SetDefaultValue(1.);
00525   fpCommand->SetParameter(parameter);
00526 }

G4VisCommandGeometrySetLineWidth::~G4VisCommandGeometrySetLineWidth (  )  [virtual]

Definition at line 528 of file G4VisCommandsGeometrySet.cc.

00529 {
00530   delete fpCommand;
00531 }


Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 534 of file G4VisCommandsGeometrySet.cc.

00535 {
00536   return "";
00537 }

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

Reimplemented from G4UImessenger.

Definition at line 540 of file G4VisCommandsGeometrySet.cc.

00541 {
00542   G4String name;
00543   G4int requestedDepth;
00544   G4double lineWidth;
00545   std::istringstream iss(newValue);
00546   iss >> name >> requestedDepth >> lineWidth;
00547 
00548   G4VisCommandGeometrySetLineWidthFunction setLineWidth(lineWidth);
00549   Set(name, setLineWidth, requestedDepth);
00550 }


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