#include <G4VisCommandsSceneAdd.hh>
Definition at line 319 of file G4VisCommandsSceneAdd.hh.
◆ G4VisCommandSceneAddMagneticField() [1/2]
G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField |
( |
| ) |
|
Definition at line 1723 of file G4VisCommandsSceneAdd.cc.
1727 (
"Adds magnetic field representation to current scene.");
1729 (
"The first parameter is no. of data points per half scene. So, possibly, at" 1730 "\nmaximum, the number of data points sampled is (2*n+1)^3, which can grow" 1731 "\nlarge--be warned!" 1732 "\nYou might find that your scene is cluttered by thousands of arrows for" 1733 "\nthe default number of data points, so try reducing to 2 or 3, e.g:" 1734 "\n /vis/scene/add/magneticField 3" 1735 "\nor, if only a small part of the scene has a field:" 1736 "\n /vis/scene/add/magneticField 50 # or more");
1738 (
"In the arrow representation, the length of the arrow is proportional" 1739 "\nto the magnitude of the field and the colour is mapped onto the range" 1740 "\nas a fraction of the maximum magnitude: 0->0.5->1 is blue->green->red.");
1742 parameter =
new G4UIparameter (
"nDataPointsPerHalfScene",
'i', omitable =
true);
1743 parameter -> SetDefaultValue (10);
1745 parameter =
new G4UIparameter (
"representation",
's', omitable =
true);
1746 parameter -> SetParameterCandidates(
"fullArrow lightArrow");
1747 parameter -> SetDefaultValue (
"fullArrow");
◆ ~G4VisCommandSceneAddMagneticField()
G4VisCommandSceneAddMagneticField::~G4VisCommandSceneAddMagneticField |
( |
| ) |
|
|
virtual |
◆ G4VisCommandSceneAddMagneticField() [2/2]
◆ GetCurrentValue()
◆ operator=()
◆ SetNewValue()
void G4VisCommandSceneAddMagneticField::SetNewValue |
( |
G4UIcommand * |
command, |
|
|
G4String |
newValue |
|
) |
| |
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 1760 of file G4VisCommandsSceneAdd.cc.
1768 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
1773 G4int nDataPointsPerHalfScene;
1775 std::istringstream iss(newValue);
1776 iss >> nDataPointsPerHalfScene >> representation;
1779 if (representation ==
"lightArrow") {
1784 const G4String& currentSceneName = pScene -> GetName ();
1785 G4bool successful = pScene -> AddRunDurationModel (model, warn);
1788 G4cout <<
"Magnetic field, if any, will be drawn in scene \"" 1791 << nDataPointsPerHalfScene
1792 <<
" data points per half scene and with representation \""
G4Scene * GetCurrentScene() const
void UpdateVisManagerScene(const G4String &sceneName="")
static void G4VisCommandsSceneAddUnsuccessful(G4VisManager::Verbosity verbosity)
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
◆ fpCommand
G4UIcommand* G4VisCommandSceneAddMagneticField::fpCommand |
|
private |
The documentation for this class was generated from the following files: