#include <G4VisCommandsGeometrySet.hh>
Inheritance diagram for G4VisCommandGeometrySetForceLineSegmentsPerCircle:
Public Member Functions | |
G4VisCommandGeometrySetForceLineSegmentsPerCircle () | |
virtual | ~G4VisCommandGeometrySetForceLineSegmentsPerCircle () |
G4String | GetCurrentValue (G4UIcommand *command) |
void | SetNewValue (G4UIcommand *command, G4String newValue) |
Definition at line 236 of file G4VisCommandsGeometrySet.hh.
G4VisCommandGeometrySetForceLineSegmentsPerCircle::G4VisCommandGeometrySetForceLineSegmentsPerCircle | ( | ) |
Definition at line 298 of file G4VisCommandsGeometrySet.cc.
References G4UIparameter::SetDefaultValue(), G4UIparameter::SetGuidance(), G4UIcommand::SetGuidance(), and G4UIcommand::SetParameter().
00299 { 00300 G4bool omitable; 00301 fpCommand = new G4UIcommand("/vis/geometry/set/forceLineSegmentsPerCircle", this); 00302 fpCommand->SetGuidance 00303 ("Forces number of line segments per circle, the precision with which a" 00304 "\ncurved line or surface is represented by a polygon or polyhedron," 00305 "\nregardless of the view parameters."); 00306 fpCommand->SetGuidance("\"all\" sets all logical volumes."); 00307 fpCommand->SetGuidance 00308 ("Optionally propagates down hierarchy to given depth."); 00309 G4UIparameter* parameter; 00310 parameter = new G4UIparameter ("logical-volume-name", 's', omitable = true); 00311 parameter->SetDefaultValue("all"); 00312 fpCommand->SetParameter(parameter); 00313 parameter = new G4UIparameter("depth", 'd', omitable = true); 00314 parameter->SetDefaultValue(0); 00315 parameter->SetGuidance 00316 ("Depth of propagation (-1 means unlimited depth)."); 00317 fpCommand->SetParameter(parameter); 00318 parameter = new G4UIparameter("lineSegmentsPerCircle", 'd', omitable = true); 00319 parameter->SetGuidance 00320 ("< 0 means not forced, i.e., under control of viewer."); 00321 parameter->SetDefaultValue(-1); 00322 fpCommand->SetParameter(parameter); 00323 }
G4VisCommandGeometrySetForceLineSegmentsPerCircle::~G4VisCommandGeometrySetForceLineSegmentsPerCircle | ( | ) | [virtual] |
G4String G4VisCommandGeometrySetForceLineSegmentsPerCircle::GetCurrentValue | ( | G4UIcommand * | command | ) | [virtual] |
void G4VisCommandGeometrySetForceLineSegmentsPerCircle::SetNewValue | ( | G4UIcommand * | command, | |
G4String | newValue | |||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 337 of file G4VisCommandsGeometrySet.cc.
00338 { 00339 G4String name; 00340 G4int requestedDepth; 00341 G4int lineSegmentsPerCircle; 00342 std::istringstream iss(newValue); 00343 iss >> name >> requestedDepth >> lineSegmentsPerCircle; 00344 00345 G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction setForceLineSegmentsPerCircle(lineSegmentsPerCircle); 00346 Set(name, setForceLineSegmentsPerCircle, requestedDepth); 00347 }