#include <G4VisCommandsSceneAdd.hh>
Definition at line 218 of file G4VisCommandsSceneAdd.hh.
◆ G4VisCommandSceneAddLine() [1/2]
G4VisCommandSceneAddLine::G4VisCommandSceneAddLine |
( |
| ) |
|
Definition at line 909 of file G4VisCommandsSceneAdd.cc.
911 fpCommand -> SetGuidance (
"Adds line to current scene.");
926 parameter =
new G4UIparameter (
"unit",
's', omitable =
true);
void SetParameter(G4UIparameter *const newParameter)
void SetDefaultValue(const char *theDefaultValue)
◆ ~G4VisCommandSceneAddLine()
G4VisCommandSceneAddLine::~G4VisCommandSceneAddLine |
( |
| ) |
|
|
virtual |
◆ G4VisCommandSceneAddLine() [2/2]
◆ GetCurrentValue()
◆ operator=()
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 939 of file G4VisCommandsSceneAdd.cc.
947 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
954 std::istringstream is(newValue);
955 is >> x1 >> y1 >> z1 >> x2 >> y2 >> z2 >> unitString;
957 x1 *= unit; y1 *= unit; z1 *= unit;
958 x2 *= unit; y2 *= unit; z2 *= unit;
960 Line* line =
new Line(x1, y1, z1, x2, y2, z2,
967 const G4String& currentSceneName = pScene -> GetName ();
968 G4bool successful = pScene -> AddRunDurationModel (model, warn);
971 G4cout <<
"Line has been added to scene \"" 972 << currentSceneName <<
"\"."
void SetGlobalTag(const G4String &)
static G4Colour fCurrentColour
G4Scene * GetCurrentScene() const
void UpdateVisManagerScene(const G4String &sceneName="")
static void G4VisCommandsSceneAddUnsuccessful(G4VisManager::Verbosity verbosity)
G4GLOB_DLL std::ostream G4cout
void SetType(const G4String &)
static G4double ValueOf(const char *unitName)
static G4double fCurrentLineWidth
static Verbosity GetVerbosity()
void SetGlobalDescription(const G4String &)
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
◆ fpCommand
The documentation for this class was generated from the following files: