#include <G4VisCommandsSceneAdd.hh>
Definition at line 319 of file G4VisCommandsSceneAdd.hh.
G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField |
( |
| ) |
|
Definition at line 1735 of file G4VisCommandsSceneAdd.cc.
1737 fpCommand =
new G4UIcommand (
"/vis/scene/add/magneticField",
this);
1738 fpCommand -> SetGuidance
1739 (
"Adds magnetic field representation to current scene.");
1740 fpCommand -> SetGuidance
1741 (
"The first parameter is no. of data points per half scene. So, possibly, at"
1742 "\nmaximum, the number of data points sampled is (2*n+1)^3, which can grow"
1743 "\nlarge--be warned!"
1744 "\nYou might find that your scene is cluttered by thousands of arrows for"
1745 "\nthe default number of data points, so try reducing to 2 or 3, e.g:"
1746 "\n /vis/scene/add/magneticField 3"
1747 "\nor, if only a small part of the scene has a field:"
1748 "\n /vis/scene/add/magneticField 50 # or more");
1749 fpCommand -> SetGuidance
1750 (
"In the arrow representation, the length of the arrow is proportional"
1751 "\nto the magnitude of the field and the colour is mapped onto the range"
1752 "\nas a fraction of the maximum magnitude: 0->0.5->1 is blue->green->red.");
1754 parameter =
new G4UIparameter (
"nDataPointsPerHalfScene",
'i', omitable =
true);
1755 parameter -> SetDefaultValue (10);
1756 fpCommand -> SetParameter (parameter);
1757 parameter =
new G4UIparameter (
"representation",
's', omitable =
true);
1758 parameter -> SetParameterCandidates(
"fullArrow lightArrow");
1759 parameter -> SetDefaultValue (
"fullArrow");
1760 fpCommand -> SetParameter (parameter);
G4VisCommandSceneAddMagneticField::~G4VisCommandSceneAddMagneticField |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 1772 of file G4VisCommandsSceneAdd.cc.
1780 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
1785 G4int nDataPointsPerHalfScene;
1787 std::istringstream iss(newValue);
1788 iss >> nDataPointsPerHalfScene >> representation;
1791 if (representation ==
"lightArrow") {
1796 const G4String& currentSceneName = pScene -> GetName ();
1797 G4bool successful = pScene -> AddRunDurationModel (model, warn);
1800 G4cout <<
"Magnetic field, if any, will be drawn in scene \""
1803 << nDataPointsPerHalfScene
1804 <<
" data points per half scene and with representation \""
void UpdateVisManagerScene(const G4String &sceneName="")
static void G4VisCommandsSceneAddUnsuccessful(G4VisManager::Verbosity verbosity)
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
const XML_Char XML_Content * model
G4Scene * GetCurrentScene() const
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: