Geant4-11
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes
G4VisCommandViewerInterpolate Class Reference

#include <G4VisCommandsViewer.hh>

Inheritance diagram for G4VisCommandViewerInterpolate:
G4VVisCommand G4UImessenger

Public Member Functions

G4bool CommandsShouldBeInMaster () const
 
 G4VisCommandViewerInterpolate ()
 
G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool operator== (const G4UImessenger &messenger) const
 
void SetNewValue (G4UIcommand *command, G4String newValue)
 
virtual ~G4VisCommandViewerInterpolate ()
 

Static Public Member Functions

static const G4ColourGetCurrentTextColour ()
 
static G4VisManagerGetVisManager ()
 
static void SetVisManager (G4VisManager *pVisManager)
 

Protected Member Functions

void AddUIcommand (G4UIcommand *newCommand)
 
G4String BtoS (G4bool b)
 
void CheckSceneAndNotifyHandlers (G4Scene *=nullptr)
 
G4bool CheckView ()
 
void ConvertToColour (G4Colour &colour, const G4String &redOrString, G4double green, G4double blue, G4double opacity)
 
const G4StringConvertToColourGuidance ()
 
void CopyCameraParameters (G4ViewParameters &target, const G4ViewParameters &from)
 
void CopyGuidanceFrom (const G4UIcommand *fromCmd, G4UIcommand *toCmd, G4int startLine=0)
 
void CopyMostViewParameters (G4ViewParameters &target, const G4ViewParameters &from)
 
void CopyParametersFrom (const G4UIcommand *fromCmd, G4UIcommand *toCmd)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
void DrawExtent (const G4VisExtent &)
 
G4String DtoS (G4double a)
 
void G4VisCommandsSceneAddUnsuccessful (G4VisManager::Verbosity verbosity)
 
void InterpolateToNewView (G4VViewer *currentViewer, const G4ViewParameters &oldVP, const G4ViewParameters &newVP, const G4int nInterpolationPoints=50, const G4int waitTimePerPointmilliseconds=20, const G4String exportString="")
 
void InterpolateViews (G4VViewer *currentViewer, std::vector< G4ViewParameters > viewVector, const G4int nInterpolationPoints=50, const G4int waitTimePerPointmilliseconds=20, const G4String exportString="")
 
G4String ItoS (G4int i)
 
G4bool ProvideValueOfUnit (const G4String &where, const G4String &unit, const G4String &category, G4double &value)
 
void RefreshIfRequired (G4VViewer *viewer)
 
void SetViewParameters (G4VViewer *viewer, const G4ViewParameters &viewParams)
 
G4bool StoB (G4String s)
 
G4double StoD (G4String s)
 
G4int StoI (G4String s)
 
G4long StoL (G4String s)
 

Static Protected Member Functions

static G4bool ConvertToDoublePair (const G4String &paramString, G4double &xval, G4double &yval)
 
static G4String ConvertToString (G4double x, G4double y, const char *unitName)
 

Protected Attributes

G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Static Protected Attributes

static G4int fCurrentArrow3DLineSegmentsPerCircle = 6
 
static G4Colour fCurrentColour = G4Colour::White()
 
static G4VisExtent fCurrentExtentForField
 
static G4double fCurrentLineWidth = 1.
 
static G4Colour fCurrentTextColour = G4Colour::Blue()
 
static G4Text::Layout fCurrentTextLayout = G4Text::left
 
static G4double fCurrentTextSize = 12.
 
static G4PhysicalVolumeModel::TouchableProperties fCurrentTouchableProperties
 
static std::vector< G4PhysicalVolumesSearchScene::FindingsfCurrrentPVFindingsForField
 
static G4VisManagerfpVisManager = nullptr
 
static G4bool fThereWasAViewer = false
 
static G4ViewParameters fVPExistingViewer
 

Private Member Functions

 G4VisCommandViewerInterpolate (const G4VisCommandViewerInterpolate &)
 
G4VisCommandViewerInterpolateoperator= (const G4VisCommandViewerInterpolate &)
 

Private Attributes

G4UIcommandfpCommand
 

Detailed Description

Definition at line 209 of file G4VisCommandsViewer.hh.

Constructor & Destructor Documentation

◆ G4VisCommandViewerInterpolate() [1/2]

G4VisCommandViewerInterpolate::G4VisCommandViewerInterpolate ( )

Definition at line 1228 of file G4VisCommandsViewer.cc.

1228 {
1229 G4bool omitable;
1230 fpCommand = new G4UIcommand ("/vis/viewer/interpolate", this);
1231 fpCommand -> SetGuidance
1232 ("Interpolate views defined by the first argument, which can contain "
1233 "Unix-shell-style pattern matching characters such as '*', '?' and '[' "
1234 "- see \"man sh\" and look for \"Pattern Matching\". The contents "
1235 "of each file are assumed to be \"/vis/viewer\" commands "
1236 "that specify a particular view. The files are processed in alphanumeric "
1237 "order of filename. The files may be written by hand or produced by the "
1238 "\"/vis/viewer/save\" command.");
1239 fpCommand -> SetGuidance
1240 ("The default is to search the working directory for files with a .g4view "
1241 "extension. Another procedure is to assemble view files in a subdirectory, "
1242 "e.g., \"myviews\"; then they can be interpolated with\n"
1243 "\"/vis/viewer/interpolate myviews\".");
1244 fpCommand -> SetGuidance
1245 ("To export interpolated views to file for a future possible movie, "
1246 "write \"export\" as 5th parameter (OpenGL only).");
1247 G4UIparameter* parameter;
1248 parameter = new G4UIparameter("pattern", 's', omitable = true);
1249 parameter -> SetGuidance("Pattern that defines the view files.");
1250 parameter -> SetDefaultValue("*.g4view");
1251 fpCommand -> SetParameter(parameter);
1252 parameter = new G4UIparameter("no-of-points", 'i', omitable = true);
1253 parameter -> SetGuidance ("Number of interpolation points per interval.");
1254 parameter -> SetDefaultValue(50);
1255 fpCommand -> SetParameter(parameter);
1256 parameter = new G4UIparameter("wait-time", 's', omitable = true);
1257 parameter -> SetGuidance("Wait time per interpolated point");
1258 parameter -> SetDefaultValue("20.");
1259 fpCommand -> SetParameter(parameter);
1260 parameter = new G4UIparameter("time-unit", 's', omitable = true);
1261 parameter -> SetDefaultValue("millisecond");
1262 fpCommand -> SetParameter (parameter);
1263 parameter = new G4UIparameter("export", 's', omitable = true);
1264 parameter -> SetDefaultValue("no");
1265 fpCommand -> SetParameter (parameter);
1266}
bool G4bool
Definition: G4Types.hh:86

References fpCommand.

◆ ~G4VisCommandViewerInterpolate()

G4VisCommandViewerInterpolate::~G4VisCommandViewerInterpolate ( )
virtual

Definition at line 1268 of file G4VisCommandsViewer.cc.

1268 {
1269 delete fpCommand;
1270}

References fpCommand.

◆ G4VisCommandViewerInterpolate() [2/2]

G4VisCommandViewerInterpolate::G4VisCommandViewerInterpolate ( const G4VisCommandViewerInterpolate )
private

Member Function Documentation

◆ AddUIcommand()

void G4UImessenger::AddUIcommand ( G4UIcommand newCommand)
protectedinherited

Definition at line 149 of file G4UImessenger.cc.

150{
151 G4cerr << "Warning : Old style definition of G4UIcommand <"
152 << newCommand->GetCommandPath() << ">." << G4endl;
153}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
const G4String & GetCommandPath() const
Definition: G4UIcommand.hh:136

References G4cerr, G4endl, and G4UIcommand::GetCommandPath().

◆ BtoS()

G4String G4UImessenger::BtoS ( G4bool  b)
protectedinherited

Definition at line 98 of file G4UImessenger.cc.

99{
100 G4String vl = "0";
101 if(b)
102 vl = "true";
103 return vl;
104}

◆ CheckSceneAndNotifyHandlers()

void G4VVisCommand::CheckSceneAndNotifyHandlers ( G4Scene pScene = nullptr)
protectedinherited

Definition at line 207 of file G4VVisCommand.cc.

208{
210
211 if (!pScene) {
212 if (verbosity >= G4VisManager::warnings) {
213 G4cout << "WARNING: Scene pointer is null."
214 << G4endl;
215 }
216 return;
217 }
218
219 G4VSceneHandler* pSceneHandler = fpVisManager -> GetCurrentSceneHandler();
220 if (!pSceneHandler) {
221 if (verbosity >= G4VisManager::warnings) {
222 G4cout << "WARNING: Scene handler not found." << G4endl;
223 }
224 return;
225 }
226
227 // Scene has changed. If it is the scene of the currrent scene handler
228 // refresh viewers of all scene handlers using this scene. If not, it may be
229 // a scene that the user is building up before attaching to a scene handler,
230 // so do nothing.
231 if (pScene == pSceneHandler->GetScene()) {
232 G4UImanager::GetUIpointer () -> ApplyCommand ("/vis/scene/notifyHandlers");
233 }
234
235}
G4GLOB_DLL std::ostream G4cout
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77
G4Scene * GetScene() const
static G4VisManager * fpVisManager
static Verbosity GetVerbosity()

References G4VVisCommand::fpVisManager, G4cout, G4endl, G4VSceneHandler::GetScene(), G4UImanager::GetUIpointer(), G4VisManager::GetVerbosity(), and G4VisManager::warnings.

Referenced by G4VisCommandSceneActivateModel::SetNewValue(), G4VisCommandSceneRemoveModel::SetNewValue(), G4VisCommandSceneSelect::SetNewValue(), G4VisCommandSceneAddArrow::SetNewValue(), G4VisCommandSceneAddArrow2D::SetNewValue(), G4VisCommandSceneAddAxes::SetNewValue(), G4VisCommandSceneAddDate::SetNewValue(), G4VisCommandSceneAddDigis::SetNewValue(), G4VisCommandSceneAddEventID::SetNewValue(), G4VisCommandSceneAddExtent::SetNewValue(), G4VisCommandSceneAddElectricField::SetNewValue(), G4VisCommandSceneAddFrame::SetNewValue(), G4VisCommandSceneAddGPS::SetNewValue(), G4VisCommandSceneAddHits::SetNewValue(), G4VisCommandSceneAddLine::SetNewValue(), G4VisCommandSceneAddLine2D::SetNewValue(), G4VisCommandSceneAddLocalAxes::SetNewValue(), G4VisCommandSceneAddLogicalVolume::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), G4VisCommandSceneAddLogo2D::SetNewValue(), G4VisCommandSceneAddMagneticField::SetNewValue(), G4VisCommandSceneAddPSHits::SetNewValue(), G4VisCommandSceneAddScale::SetNewValue(), G4VisCommandSceneAddText::SetNewValue(), G4VisCommandSceneAddText2D::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandSceneAddUserAction::SetNewValue(), G4VisCommandSceneAddVolume::SetNewValue(), G4VisCommandSceneAddPlotter::SetNewValue(), and G4VisCommandViewerRefresh::SetNewValue().

◆ CheckView()

G4bool G4VVisCommand::CheckView ( )
protectedinherited

Definition at line 237 of file G4VVisCommand.cc.

238{
240 G4VViewer* viewer = fpVisManager -> GetCurrentViewer ();
241
242 if (!viewer) {
243 if (verbosity >= G4VisManager::errors) {
244 G4cerr <<
245 "ERROR: No current viewer - \"/vis/viewer/list\" to see possibilities."
246 << G4endl;
247 }
248 return false;
249 }
250
251 return true;
252}

References G4VisManager::errors, G4VVisCommand::fpVisManager, G4cerr, G4endl, and G4VisManager::GetVerbosity().

◆ CommandsShouldBeInMaster()

G4bool G4UImessenger::CommandsShouldBeInMaster ( ) const
inlineinherited

Definition at line 77 of file G4UImessenger.hh.

78 {
80 }
G4bool commandsShouldBeInMaster

References G4UImessenger::commandsShouldBeInMaster.

Referenced by G4UIcommand::G4UIcommandCommonConstructorCode().

◆ ConvertToColour()

void G4VVisCommand::ConvertToColour ( G4Colour colour,
const G4String redOrString,
G4double  green,
G4double  blue,
G4double  opacity 
)
protectedinherited

Definition at line 119 of file G4VVisCommand.cc.

122{
123 // Note: colour is supplied by the caller and some or all of its components
124 // may act as default.
125 //
126 // Note: redOrString is either a number or string. If a string it must be
127 // one of the recognised colours.
128 //
129 // Thus the arguments can be, for example:
130 // (colour,"red",...,...,0.5): will give the colour red with opacity 0.5 (the
131 // third and fourth arguments are ignored), or
132 // (1.,0.,0.,0.5): this also will be red with opacity 0.5.
133
135
136 const size_t iPos0 = 0;
137 if (std::isalpha(redOrString[iPos0])) {
138
139 // redOrString is probably alphabetic characters defining the colour
140 if (!G4Colour::GetColour(redOrString, colour)) {
141 // Not a recognised string
142 if (verbosity >= G4VisManager::warnings) {
143 G4cout << "WARNING: Colour \"" << redOrString
144 << "\" not found. Defaulting to " << colour
145 << G4endl;
146 }
147 return;
148 } else {
149 // It was a recognised string. Now add opacity.
150 colour.SetAlpha(opacity);
151 return;
152 }
153
154 } else {
155
156 // redOrString is probably numeric defining the red component
157 std::istringstream iss(redOrString);
158 G4double red;
159 iss >> red;
160 if (iss.fail()) {
161 if (verbosity >= G4VisManager::warnings) {
162 G4cout << "WARNING: String \"" << redOrString
163 << "\" cannot be parsed. Defaulting to " << colour
164 << G4endl;
165 }
166 return;
167 } else {
168 colour = G4Colour(red,green,blue,opacity);
169 return;
170 }
171
172 }
173}
double G4double
Definition: G4Types.hh:83
static G4bool GetColour(const G4String &key, G4Colour &result)
Definition: G4Colour.cc:161
void SetAlpha(G4double)
Definition: G4Colour.cc:70

References G4VVisCommand::fpVisManager, G4cout, G4endl, G4Colour::GetColour(), G4VisManager::GetVerbosity(), G4Colour::SetAlpha(), and G4VisManager::warnings.

Referenced by G4VisCommandGeometrySetColour::SetNewValue(), G4VisCommandSceneAddGPS::SetNewValue(), G4VisCommandSetColour::SetNewValue(), G4VisCommandSetTextColour::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), and G4VisCommandsViewerSet::SetNewValue().

◆ ConvertToColourGuidance()

const G4String & G4VVisCommand::ConvertToColourGuidance ( )
protectedinherited

Definition at line 109 of file G4VVisCommand.cc.

110{
111 static G4String guidance
112 ("Accepts (a) RGB triplet. e.g., \".3 .4 .5\", or"
113 "\n (b) string such as \"white\", \"black\", \"grey\", \"red\"...or"
114 "\n (c) an additional number for opacity, e.g., \".3 .4 .5 .6\""
115 "\n or \"grey ! ! .6\" (note \"!\"'s for unused parameters).");
116 return guidance;
117}

Referenced by G4VisCommandSceneAddGPS::G4VisCommandSceneAddGPS(), G4VisCommandSetColour::G4VisCommandSetColour(), G4VisCommandSetTextColour::G4VisCommandSetTextColour(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), and G4VisCommandsViewerSet::G4VisCommandsViewerSet().

◆ ConvertToDoublePair()

G4bool G4VVisCommand::ConvertToDoublePair ( const G4String paramString,
G4double xval,
G4double yval 
)
staticprotectedinherited

Definition at line 85 of file G4VVisCommand.cc.

88{
89 G4double x, y;
90 G4String unit;
91
92 std::istringstream is(paramString);
93 is >> x >> y >> unit;
94
96 xval = x*G4UIcommand::ValueOf(unit);
97 yval = y*G4UIcommand::ValueOf(unit);
98 } else {
100 if (verbosity >= G4VisManager::errors) {
101 G4cout << "ERROR: Unrecognised unit" << G4endl;
102 }
103 return false;
104 }
105
106 return true;
107}
static G4double ValueOf(const char *unitName)
Definition: G4UIcommand.cc:363
static G4bool IsUnitDefined(const G4String &)

References G4VisManager::errors, G4VVisCommand::fpVisManager, G4cout, G4endl, G4VisManager::GetVerbosity(), G4UnitDefinition::IsUnitDefined(), and G4UIcommand::ValueOf().

Referenced by G4VisCommandViewerPan::SetNewValue(), and G4VisCommandsViewerSet::SetNewValue().

◆ ConvertToString()

G4String G4VVisCommand::ConvertToString ( G4double  x,
G4double  y,
const char *  unitName 
)
staticprotectedinherited

Definition at line 75 of file G4VVisCommand.cc.

77{
78 G4double uv = G4UIcommand::ValueOf(unitName);
79
80 std::ostringstream oss;
81 oss << x/uv << " " << y/uv << " " << unitName;
82 return oss.str();
83}

References G4UIcommand::ValueOf().

Referenced by G4VisCommandViewerPan::GetCurrentValue().

◆ CopyCameraParameters()

void G4VVisCommand::CopyCameraParameters ( G4ViewParameters target,
const G4ViewParameters from 
)
protectedinherited

Definition at line 385 of file G4VVisCommand.cc.

387{
388 // Copy view parameters pertaining only to camera
392 target.SetUpVector (from.GetUpVector());
393 target.SetFieldHalfAngle (from.GetFieldHalfAngle());
394 target.SetZoomFactor (from.GetZoomFactor());
395 target.SetScaleFactor (from.GetScaleFactor());
397 target.SetDolly (from.GetDolly());
398}
void SetViewpointDirection(const G4Vector3D &viewpointDirection)
void SetScaleFactor(const G4Vector3D &scaleFactor)
const G4Vector3D & GetScaleFactor() const
void SetCurrentTargetPoint(const G4Point3D &currentTargetPoint)
const G4Vector3D & GetLightpointDirection() const
void SetFieldHalfAngle(G4double fieldHalfAngle)
const G4Vector3D & GetViewpointDirection() const
const G4Point3D & GetCurrentTargetPoint() const
G4double GetFieldHalfAngle() const
G4double GetZoomFactor() const
void SetDolly(G4double dolly)
const G4Vector3D & GetUpVector() const
void SetZoomFactor(G4double zoomFactor)
void SetUpVector(const G4Vector3D &upVector)
void SetLightpointDirection(const G4Vector3D &lightpointDirection)
void SetLightsMoveWithCamera(G4bool moves)
G4bool GetLightsMoveWithCamera() const
G4double GetDolly() const

References G4ViewParameters::GetCurrentTargetPoint(), G4ViewParameters::GetDolly(), G4ViewParameters::GetFieldHalfAngle(), G4ViewParameters::GetLightpointDirection(), G4ViewParameters::GetLightsMoveWithCamera(), G4ViewParameters::GetScaleFactor(), G4ViewParameters::GetUpVector(), G4ViewParameters::GetViewpointDirection(), G4ViewParameters::GetZoomFactor(), G4ViewParameters::SetCurrentTargetPoint(), G4ViewParameters::SetDolly(), G4ViewParameters::SetFieldHalfAngle(), G4ViewParameters::SetLightpointDirection(), G4ViewParameters::SetLightsMoveWithCamera(), G4ViewParameters::SetScaleFactor(), G4ViewParameters::SetUpVector(), G4ViewParameters::SetViewpointDirection(), and G4ViewParameters::SetZoomFactor().

Referenced by G4VisCommandViewerCopyViewFrom::SetNewValue().

◆ CopyGuidanceFrom()

void G4VVisCommand::CopyGuidanceFrom ( const G4UIcommand fromCmd,
G4UIcommand toCmd,
G4int  startLine = 0 
)
protectedinherited

Definition at line 335 of file G4VVisCommand.cc.

337{
338 if (fromCmd && toCmd) {
339 const G4int nGuideEntries = fromCmd->GetGuidanceEntries();
340 for (G4int i = startLine; i < nGuideEntries; ++i) {
341 const G4String& guidance = fromCmd->GetGuidanceLine(i);
342 toCmd->SetGuidance(guidance);
343 }
344 }
345}
int G4int
Definition: G4Types.hh:85
const G4String & GetGuidanceLine(G4int i) const
Definition: G4UIcommand.hh:132
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156
std::size_t GetGuidanceEntries() const
Definition: G4UIcommand.hh:128

References G4UIcommand::GetGuidanceEntries(), G4UIcommand::GetGuidanceLine(), and G4UIcommand::SetGuidance().

Referenced by G4VisCommandDrawLogicalVolume::G4VisCommandDrawLogicalVolume(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField(), G4VisCommandsTouchable::G4VisCommandsTouchable(), and G4VisCommandViewerCentreOn::G4VisCommandViewerCentreOn().

◆ CopyMostViewParameters()

void G4VVisCommand::CopyMostViewParameters ( G4ViewParameters target,
const G4ViewParameters from 
)
protectedinherited

Definition at line 374 of file G4VVisCommand.cc.

376{
377 // Copy view parameters except for autoRefresh and background...
378 auto targetAutoRefresh = target.IsAutoRefresh();
379 auto targetBackground = target.GetBackgroundColour();
380 target = from;
381 target.SetAutoRefresh(targetAutoRefresh);
382 target.SetBackgroundColour(targetBackground);
383}
void SetAutoRefresh(G4bool)
void SetBackgroundColour(const G4Colour &)
const G4Colour & GetBackgroundColour() const
G4bool IsAutoRefresh() const

References G4ViewParameters::GetBackgroundColour(), G4ViewParameters::IsAutoRefresh(), G4ViewParameters::SetAutoRefresh(), and G4ViewParameters::SetBackgroundColour().

Referenced by G4VisCommandViewerCreate::SetNewValue(), and G4VisCommandsViewerSet::SetNewValue().

◆ CopyParametersFrom()

void G4VVisCommand::CopyParametersFrom ( const G4UIcommand fromCmd,
G4UIcommand toCmd 
)
protectedinherited

Definition at line 347 of file G4VVisCommand.cc.

349{
350 if (fromCmd && toCmd) {
351 const G4int nParEntries = fromCmd->GetParameterEntries();
352 for (G4int i = 0; i < nParEntries; ++i) {
353 G4UIparameter* parameter = new G4UIparameter(*(fromCmd->GetParameter(i)));
354 toCmd->SetParameter(parameter);
355 }
356 }
357}
std::size_t GetParameterEntries() const
Definition: G4UIcommand.hh:138
G4UIparameter * GetParameter(G4int i) const
Definition: G4UIcommand.hh:139
void SetParameter(G4UIparameter *const newParameter)
Definition: G4UIcommand.hh:146

References G4UIcommand::GetParameter(), G4UIcommand::GetParameterEntries(), and G4UIcommand::SetParameter().

Referenced by G4VisCommandDrawLogicalVolume::G4VisCommandDrawLogicalVolume(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField(), and G4VisCommandViewerCentreOn::G4VisCommandViewerCentreOn().

◆ CreateCommand()

template<typename T >
T * G4UImessenger::CreateCommand ( const G4String cname,
const G4String dsc 
)
protectedinherited

Definition at line 110 of file G4UImessenger.hh.

111{
112 G4String path;
113 if(cname[0] != '/')
114 {
115 path = baseDirName + cname;
116 if(path[0] != '/')
117 path = "/" + path;
118 }
119
120 T* command = new T(path.c_str(), this);
121 command->SetGuidance(dsc.c_str());
122
123 return command;
124}
G4String baseDirName

References G4UImessenger::baseDirName.

◆ CreateDirectory()

void G4UImessenger::CreateDirectory ( const G4String path,
const G4String dsc,
G4bool  commandsToBeBroadcasted = true 
)
protectedinherited

Definition at line 156 of file G4UImessenger.cc.

158{
160
161 G4String fullpath = path;
162 if(fullpath.back() != '/')
163 fullpath.append("/");
164
165 G4UIcommandTree* tree = ui->GetTree()->FindCommandTree(fullpath.c_str());
166 if(tree != nullptr)
167 {
168 baseDirName = tree->GetPathName();
169 }
170 else
171 {
172 baseDir = new G4UIdirectory(fullpath.c_str(), commandsToBeBroadcasted);
173 baseDirName = fullpath;
174 baseDir->SetGuidance(dsc.c_str());
175 }
176}
const G4String & GetPathName() const
G4UIcommandTree * FindCommandTree(const char *commandPath)
G4UIcommandTree * GetTree() const
Definition: G4UImanager.hh:186
G4UIdirectory * baseDir

References G4UImessenger::baseDir, G4UImessenger::baseDirName, G4UIcommandTree::FindCommandTree(), G4UIcommandTree::GetPathName(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), and G4UIcommand::SetGuidance().

Referenced by G4MoleculeShootMessenger::G4MoleculeShootMessenger(), and G4UImessenger::G4UImessenger().

◆ DrawExtent()

void G4VVisCommand::DrawExtent ( const G4VisExtent extent)
protectedinherited

Definition at line 359 of file G4VVisCommand.cc.

360{
361 if (fpVisManager) {
362 const G4double halfX = (extent.GetXmax() - extent.GetXmin()) / 2.;
363 const G4double halfY = (extent.GetYmax() - extent.GetYmin()) / 2.;
364 const G4double halfZ = (extent.GetZmax() - extent.GetZmin()) / 2.;
365 if (halfX > 0. && halfY > 0. && halfZ > 0.) {
366 const G4Box box("vis_extent",halfX,halfY,halfZ);
367 const G4VisAttributes visAtts(G4Color::Red());
368 const G4Point3D& centre = extent.GetExtentCenter();
369 fpVisManager->Draw(box,visAtts,G4Translate3D(centre));
370 }
371 }
372}
HepGeom::Translate3D G4Translate3D
Definition: G4Box.hh:56
static G4Colour Red()
Definition: G4Colour.hh:161
G4double GetYmin() const
Definition: G4VisExtent.hh:101
G4double GetXmax() const
Definition: G4VisExtent.hh:100
const G4Point3D & GetExtentCenter() const
Definition: G4VisExtent.hh:106
G4double GetYmax() const
Definition: G4VisExtent.hh:102
G4double GetZmax() const
Definition: G4VisExtent.hh:104
G4double GetZmin() const
Definition: G4VisExtent.hh:103
G4double GetXmin() const
Definition: G4VisExtent.hh:99
void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())

References G4VisManager::Draw(), G4VVisCommand::fpVisManager, G4VisExtent::GetExtentCenter(), G4VisExtent::GetXmax(), G4VisExtent::GetXmin(), G4VisExtent::GetYmax(), G4VisExtent::GetYmin(), G4VisExtent::GetZmax(), G4VisExtent::GetZmin(), and G4Colour::Red().

Referenced by G4VisCommandSceneShowExtents::SetNewValue(), G4VisCommandSetVolumeForField::SetNewValue(), and G4VisCommandsTouchable::SetNewValue().

◆ DtoS()

G4String G4UImessenger::DtoS ( G4double  a)
protectedinherited

Definition at line 90 of file G4UImessenger.cc.

91{
92 std::ostringstream os;
93 os << a;
94 return G4String(os.str());
95}

Referenced by G4ScoreQuantityMessenger::FilterCommands(), and G4UIcontrolMessenger::SetNewValue().

◆ G4VisCommandsSceneAddUnsuccessful()

void G4VVisCommand::G4VisCommandsSceneAddUnsuccessful ( G4VisManager::Verbosity  verbosity)
protectedinherited

Definition at line 254 of file G4VVisCommand.cc.

255 {
256 // Some frequently used error printing...
257 if (verbosity >= G4VisManager::warnings) {
258 G4cout <<
259 "WARNING: For some reason, possibly mentioned above, it has not been"
260 "\n possible to add to the scene."
261 << G4endl;
262 }
263}

References G4cout, G4endl, and G4VisManager::warnings.

Referenced by G4VisCommandSceneAddUserAction::AddVisAction(), G4VisCommandSceneAddArrow::SetNewValue(), G4VisCommandSceneAddArrow2D::SetNewValue(), G4VisCommandSceneAddAxes::SetNewValue(), G4VisCommandSceneAddDate::SetNewValue(), G4VisCommandSceneAddDigis::SetNewValue(), G4VisCommandSceneAddEventID::SetNewValue(), G4VisCommandSceneAddExtent::SetNewValue(), G4VisCommandSceneAddElectricField::SetNewValue(), G4VisCommandSceneAddFrame::SetNewValue(), G4VisCommandSceneAddGPS::SetNewValue(), G4VisCommandSceneAddHits::SetNewValue(), G4VisCommandSceneAddLine::SetNewValue(), G4VisCommandSceneAddLine2D::SetNewValue(), G4VisCommandSceneAddLocalAxes::SetNewValue(), G4VisCommandSceneAddLogicalVolume::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), G4VisCommandSceneAddLogo2D::SetNewValue(), G4VisCommandSceneAddMagneticField::SetNewValue(), G4VisCommandSceneAddPSHits::SetNewValue(), G4VisCommandSceneAddScale::SetNewValue(), G4VisCommandSceneAddText::SetNewValue(), G4VisCommandSceneAddText2D::SetNewValue(), G4VisCommandSceneAddVolume::SetNewValue(), G4VisCommandSceneAddPlotter::SetNewValue(), and G4VisCommandsTouchable::SetNewValue().

◆ GetCurrentTextColour()

const G4Colour & G4VVisCommand::GetCurrentTextColour ( )
staticinherited

Definition at line 70 of file G4VVisCommand.cc.

71{
72 return fCurrentTextColour;
73}
static G4Colour fCurrentTextColour

References G4VVisCommand::fCurrentTextColour.

◆ GetCurrentValue()

G4String G4VisCommandViewerInterpolate::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 1272 of file G4VisCommandsViewer.cc.

1272 {
1273 return "";
1274}

◆ GetVisManager()

G4VisManager * G4VVisCommand::GetVisManager ( )
staticinherited

Definition at line 60 of file G4VVisCommand.cc.

61{
62 return fpVisManager;
63}

References G4VVisCommand::fpVisManager.

◆ InterpolateToNewView()

void G4VVisCommand::InterpolateToNewView ( G4VViewer currentViewer,
const G4ViewParameters oldVP,
const G4ViewParameters newVP,
const G4int  nInterpolationPoints = 50,
const G4int  waitTimePerPointmilliseconds = 20,
const G4String  exportString = "" 
)
protectedinherited

Definition at line 313 of file G4VVisCommand.cc.

320{
321 std::vector<G4ViewParameters> viewVector;
322 viewVector.push_back(oldVP);
323 viewVector.push_back(oldVP);
324 viewVector.push_back(newVP);
325 viewVector.push_back(newVP);
326
328 (currentViewer,
329 viewVector,
330 nInterpolationPoints,
331 waitTimePerPointmilliseconds,
332 exportString);
333}
void InterpolateViews(G4VViewer *currentViewer, std::vector< G4ViewParameters > viewVector, const G4int nInterpolationPoints=50, const G4int waitTimePerPointmilliseconds=20, const G4String exportString="")

References G4VVisCommand::InterpolateViews().

Referenced by G4VisCommandsTouchable::SetNewValue(), and G4VisCommandViewerCentreOn::SetNewValue().

◆ InterpolateViews()

void G4VVisCommand::InterpolateViews ( G4VViewer currentViewer,
std::vector< G4ViewParameters viewVector,
const G4int  nInterpolationPoints = 50,
const G4int  waitTimePerPointmilliseconds = 20,
const G4String  exportString = "" 
)
protectedinherited

Definition at line 288 of file G4VVisCommand.cc.

294{
295 const G4int safety = viewVector.size()*nInterpolationPoints;
296 G4int safetyCount = 0;
297 do {
298 G4ViewParameters* vp =
299 G4ViewParameters::CatmullRomCubicSplineInterpolation(viewVector,nInterpolationPoints);
300 if (!vp) break; // Finished.
301 currentViewer->SetViewParameters(*vp);
302 currentViewer->RefreshView();
303 if (exportString == "export" &&
304 G4StrUtil::contains(currentViewer->GetName(), "OpenGL")) {
305 G4UImanager::GetUIpointer()->ApplyCommand("/vis/ogl/export");
306 }
307 currentViewer->ShowView();
308 if (waitTimePerPointmilliseconds > 0)
309 std::this_thread::sleep_for(std::chrono::milliseconds(waitTimePerPointmilliseconds));
310 } while (safetyCount++ < safety); // Loop checking, 16.02.2016, J.Allison
311}
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:485
const G4String & GetName() const
void SetViewParameters(const G4ViewParameters &vp)
Definition: G4VViewer.cc:120
void RefreshView()
virtual void ShowView()
Definition: G4VViewer.cc:103
static G4ViewParameters * CatmullRomCubicSplineInterpolation(const std::vector< G4ViewParameters > &views, G4int nInterpolationPoints=50)
G4bool contains(const G4String &str, std::string_view ss)
Check if a string contains a given substring.

References G4UImanager::ApplyCommand(), G4ViewParameters::CatmullRomCubicSplineInterpolation(), G4StrUtil::contains(), G4VViewer::GetName(), G4UImanager::GetUIpointer(), G4VViewer::RefreshView(), G4VViewer::SetViewParameters(), and G4VViewer::ShowView().

Referenced by G4VVisCommand::InterpolateToNewView(), and SetNewValue().

◆ ItoS()

G4String G4UImessenger::ItoS ( G4int  i)
protectedinherited

Definition at line 82 of file G4UImessenger.cc.

83{
84 std::ostringstream os;
85 os << i;
86 return G4String(os.str());
87}

Referenced by G4GenericMessenger::DeclareMethod(), and G4ParticleGunMessenger::GetCurrentValue().

◆ operator!=()

G4bool G4UImessenger::operator!= ( const G4UImessenger messenger) const
inherited

Definition at line 76 of file G4UImessenger.cc.

77{
78 return this != &messenger;
79}

◆ operator=()

G4VisCommandViewerInterpolate & G4VisCommandViewerInterpolate::operator= ( const G4VisCommandViewerInterpolate )
private

◆ operator==()

G4bool G4UImessenger::operator== ( const G4UImessenger messenger) const
inherited

Definition at line 70 of file G4UImessenger.cc.

71{
72 return this == &messenger;
73}

◆ ProvideValueOfUnit()

G4bool G4VVisCommand::ProvideValueOfUnit ( const G4String where,
const G4String unit,
const G4String category,
G4double value 
)
protectedinherited

Definition at line 175 of file G4VVisCommand.cc.

180{
181 // Return false if there's a problem
182
184
185 G4bool success = true;
187 if (verbosity >= G4VisManager::warnings) {
188 G4cerr << where
189 << "\n Unit \"" << unit << "\" not defined"
190 << G4endl;
191 }
192 success = false;
193 } else if (G4UnitDefinition::GetCategory(unit) != category) {
194 if (verbosity >= G4VisManager::warnings) {
195 G4cerr << where
196 << "\n Unit \"" << unit << "\" not a unit of " << category;
197 if (category == "Volumic Mass") G4cerr << " (density)";
198 G4cerr << G4endl;
199 }
200 success = false;
201 } else {
202 value = G4UnitDefinition::GetValueOf(unit);
203 }
204 return success;
205}
static G4double GetValueOf(const G4String &)
static G4String GetCategory(const G4String &)

References G4VVisCommand::fpVisManager, G4cerr, G4endl, G4UnitDefinition::GetCategory(), G4UnitDefinition::GetValueOf(), G4VisManager::GetVerbosity(), G4UnitDefinition::IsUnitDefined(), and G4VisManager::warnings.

Referenced by G4VisCommandViewerColourByDensity::SetNewValue(), and G4VisCommandsViewerSet::SetNewValue().

◆ RefreshIfRequired()

void G4VVisCommand::RefreshIfRequired ( G4VViewer viewer)
protectedinherited

Definition at line 271 of file G4VVisCommand.cc.

271 {
273 G4VSceneHandler* sceneHandler = viewer->GetSceneHandler();
274 const G4ViewParameters& viewParams = viewer->GetViewParameters();
275 if (sceneHandler && sceneHandler->GetScene()) {
276 if (viewParams.IsAutoRefresh()) {
277 G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/refresh");
278 }
279 else {
280 if (verbosity >= G4VisManager::warnings) {
281 G4cout << "Issue /vis/viewer/refresh or flush to see effect."
282 << G4endl;
283 }
284 }
285 }
286}
const G4ViewParameters & GetViewParameters() const
G4VSceneHandler * GetSceneHandler() const

References G4UImanager::ApplyCommand(), G4VVisCommand::fpVisManager, G4cout, G4endl, G4VSceneHandler::GetScene(), G4VViewer::GetSceneHandler(), G4UImanager::GetUIpointer(), G4VisManager::GetVerbosity(), G4VViewer::GetViewParameters(), G4ViewParameters::IsAutoRefresh(), and G4VisManager::warnings.

Referenced by G4VisCommandViewerReset::SetNewValue(), G4VisCommandViewerRebuild::SetNewValue(), G4VisCommandViewerSelect::SetNewValue(), and G4VVisCommand::SetViewParameters().

◆ SetNewValue()

void G4VisCommandViewerInterpolate::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 1276 of file G4VisCommandsViewer.cc.

1276 {
1277
1279
1280 G4VViewer* currentViewer = fpVisManager->GetCurrentViewer();
1281 if (!currentViewer) {
1282 if (verbosity >= G4VisManager::errors) {
1283 G4cerr <<
1284 "ERROR: G4VisCommandViewerInterpolate::SetNewValue: no current viewer."
1285 << G4endl;
1286 }
1287 return;
1288 }
1289
1290 G4String pattern;
1291 G4int nInterpolationPoints;
1292 G4String waitTimePerPointString;
1293 G4String timeUnit;
1294 G4String exportString;
1295
1296 std::istringstream iss (newValue);
1297 iss
1298 >> pattern
1299 >> nInterpolationPoints
1300 >> waitTimePerPointString
1301 >> timeUnit
1302 >> exportString;
1303 G4String waitTimePerPointDimString(waitTimePerPointString + ' ' + timeUnit);
1304 const G4double waitTimePerPoint =
1305 G4UIcommand::ConvertToDimensionedDouble(waitTimePerPointDimString.c_str());
1306 G4int waitTimePerPointmilliseconds = waitTimePerPoint/millisecond;
1307 if (waitTimePerPointmilliseconds < 0) waitTimePerPointmilliseconds = 0;
1308
1310
1311 // Save current view parameters
1312 G4ViewParameters saveVP = currentViewer->GetViewParameters();
1313
1314 // Save current verbosities
1316 G4int keepUIVerbosity = uiManager->GetVerboseLevel();
1317
1318 // Set verbosities for this operation
1320 uiManager->SetVerboseLevel(0);
1321
1322 // Switch off auto-refresh while we read in the view files (it will be
1323 // restored later). Note: the view files do not set auto-refresh.
1324 G4ViewParameters non_auto = saveVP;
1325 non_auto.SetAutoRefresh(false);
1326 currentViewer->SetViewParameters(non_auto);
1327
1328 const G4int safety = 99;
1329 G4int safetyCount = 0;
1330 G4fs::path pathPattern = pattern.c_str();
1331
1332 // Parent path - add "./" for empty directory
1333 G4String parentPathString
1334 (pathPattern.parent_path().string().length() ?
1335 pathPattern.parent_path().string() :
1336 std::string("./"));
1337 G4fs::path parentPath = parentPathString.c_str();
1338
1339 // Fill selected paths
1340 std::set<G4fs::path> paths; // Use std::set to ensure order
1341
1342 if (G4fs::is_directory(pathPattern)) {
1343
1344 // The user has specified a directory. Find all files.
1345 for (const auto& path: G4fs::directory_iterator(pathPattern)) {
1346 if (safetyCount++ >= safety) break;
1347 paths.insert(path);
1348 }
1349
1350 } else {
1351
1352 // Assume user has specified a Unix "glob" pattern in leaf
1353 // Default pattern is *.g4view, which translates to ^.*\\.g4view
1354 // Convert pattern into a regexp
1355 G4String regexp_pattern("^");
1356 for (size_t i = 0; i < pattern.length(); ++i) {
1357 if (pattern[i] == '.') {
1358 regexp_pattern += "\\.";
1359 } else if (pattern[i] == '*') {
1360 regexp_pattern += ".*";
1361 } else if (pattern[i] == '?') {
1362 regexp_pattern += "(.{1,1})";
1363 } else {
1364 regexp_pattern += pattern[i];
1365 }
1366 }
1367 std::regex regexp(regexp_pattern, std::regex_constants::basic | std::regex_constants::icase);
1368
1369 for (const auto& path: G4fs::directory_iterator(parentPath)) {
1370 const auto& pathname = path.path().relative_path().string();
1371 if (std::regex_match(pathname, regexp)) {
1372 if (safetyCount++ >= safety) break;
1373 paths.insert(path);
1374 }
1375 }
1376 }
1377
1378 if (safetyCount > safety) {
1379 if (verbosity >= G4VisManager::errors) {
1380 G4cerr <<
1381 "/vis/viewer/interpolate:"
1382 "\n the number of way points has been limited to the maximum currently allowed: "
1383 << safety << G4endl;
1384 }
1385 }
1386
1387 // Fill view vector of way points
1388 std::vector<G4ViewParameters> viewVector;
1389 for (const auto& path: paths) {
1390 uiManager->ApplyCommand("/control/execute " + path.relative_path().string());
1391 G4ViewParameters vp = currentViewer->GetViewParameters();
1392 // Set original auto-refresh status.
1393 vp.SetAutoRefresh(saveVP.IsAutoRefresh());
1394 viewVector.push_back(vp);
1395 }
1396
1398 (currentViewer,viewVector,
1399 nInterpolationPoints,waitTimePerPointmilliseconds,exportString);
1400
1401 // Restore original verbosities
1402 uiManager->SetVerboseLevel(keepUIVerbosity);
1403 fpVisManager->SetVerboseLevel(keepVisVerbosity);
1404
1405 // Restore original view parameters
1406 currentViewer->SetViewParameters(saveVP);
1407 currentViewer->RefreshView();
1408 if (verbosity >= G4VisManager::confirmations) {
1409 G4cout << "Viewer \"" << currentViewer -> GetName () << "\""
1410 << " restored." << G4endl;
1411 }
1412}
static constexpr double millisecond
Definition: G4SIunits.hh:139
static G4double ConvertToDimensionedDouble(const char *st)
Definition: G4UIcommand.cc:584
G4int GetVerboseLevel() const
Definition: G4UImanager.hh:200
void SetVerboseLevel(G4int val)
Definition: G4UImanager.hh:199
G4VViewer * GetCurrentViewer() const
void SetVerboseLevel(G4int)

References G4UImanager::ApplyCommand(), G4VisManager::confirmations, G4UIcommand::ConvertToDimensionedDouble(), G4VisManager::errors, G4VVisCommand::fpVisManager, G4cerr, G4cout, G4endl, G4VisManager::GetCurrentViewer(), G4UImanager::GetUIpointer(), G4UImanager::GetVerboseLevel(), G4VisManager::GetVerbosity(), G4VViewer::GetViewParameters(), G4VVisCommand::InterpolateViews(), G4ViewParameters::IsAutoRefresh(), millisecond, G4VViewer::RefreshView(), G4ViewParameters::SetAutoRefresh(), G4UImanager::SetVerboseLevel(), G4VisManager::SetVerboseLevel(), and G4VViewer::SetViewParameters().

◆ SetViewParameters()

void G4VVisCommand::SetViewParameters ( G4VViewer viewer,
const G4ViewParameters viewParams 
)
protectedinherited

◆ SetVisManager()

void G4VVisCommand::SetVisManager ( G4VisManager pVisManager)
staticinherited

Definition at line 65 of file G4VVisCommand.cc.

66{
67 fpVisManager = pVisManager;
68}

References G4VVisCommand::fpVisManager.

Referenced by G4VisManager::G4VisManager().

◆ StoB()

G4bool G4UImessenger::StoB ( G4String  s)
protectedinherited

Definition at line 137 of file G4UImessenger.cc.

138{
140 G4bool vl = false;
141 if(v == "Y" || v == "YES" || v == "1" || v == "T" || v == "TRUE")
142 {
143 vl = true;
144 }
145 return vl;
146}
G4String to_upper_copy(G4String str)
Return uppercase copy of string.

References G4StrUtil::to_upper_copy().

Referenced by G4LocalThreadCoutMessenger::SetNewValue(), G4CascadeParamMessenger::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), and G4ScoringMessenger::SetNewValue().

◆ StoD()

G4double G4UImessenger::StoD ( G4String  s)
protectedinherited

◆ StoI()

G4int G4UImessenger::StoI ( G4String  s)
protectedinherited

◆ StoL()

G4long G4UImessenger::StoL ( G4String  s)
protectedinherited

Definition at line 117 of file G4UImessenger.cc.

118{
119 G4long vl;
120 const char* t = str;
121 std::istringstream is(t);
122 is >> vl;
123 return vl;
124}
long G4long
Definition: G4Types.hh:87

Referenced by G4RunMessenger::SetNewValue().

Field Documentation

◆ baseDir

G4UIdirectory* G4UImessenger::baseDir = nullptr
protectedinherited

◆ baseDirName

G4String G4UImessenger::baseDirName = ""
protectedinherited

◆ commandsShouldBeInMaster

G4bool G4UImessenger::commandsShouldBeInMaster = false
protectedinherited

◆ fCurrentArrow3DLineSegmentsPerCircle

G4int G4VVisCommand::fCurrentArrow3DLineSegmentsPerCircle = 6
staticprotectedinherited

◆ fCurrentColour

G4Colour G4VVisCommand::fCurrentColour = G4Colour::White()
staticprotectedinherited

◆ fCurrentExtentForField

G4VisExtent G4VVisCommand::fCurrentExtentForField
staticprotectedinherited

◆ fCurrentLineWidth

G4double G4VVisCommand::fCurrentLineWidth = 1.
staticprotectedinherited

◆ fCurrentTextColour

G4Colour G4VVisCommand::fCurrentTextColour = G4Colour::Blue()
staticprotectedinherited

◆ fCurrentTextLayout

G4Text::Layout G4VVisCommand::fCurrentTextLayout = G4Text::left
staticprotectedinherited

◆ fCurrentTextSize

G4double G4VVisCommand::fCurrentTextSize = 12.
staticprotectedinherited

◆ fCurrentTouchableProperties

G4PhysicalVolumeModel::TouchableProperties G4VVisCommand::fCurrentTouchableProperties
staticprotectedinherited

◆ fCurrrentPVFindingsForField

std::vector< G4PhysicalVolumesSearchScene::Findings > G4VVisCommand::fCurrrentPVFindingsForField
staticprotectedinherited

◆ fpCommand

G4UIcommand* G4VisCommandViewerInterpolate::fpCommand
private

◆ fpVisManager

G4VisManager * G4VVisCommand::fpVisManager = nullptr
staticprotectedinherited

Definition at line 143 of file G4VVisCommand.hh.

Referenced by G4VisCommandSceneAddUserAction::AddVisAction(), G4VVisCommand::CheckSceneAndNotifyHandlers(), G4VVisCommand::CheckView(), G4VVisCommand::ConvertToColour(), G4VVisCommand::ConvertToDoublePair(), G4VVisCommandScene::CurrentSceneName(), G4VVisCommand::DrawExtent(), G4VisCommandSceneHandlerCreate::G4VisCommandSceneHandlerCreate(), G4VisCommandSceneHandlerAttach::GetCurrentValue(), G4VisCommandSceneHandlerCreate::GetCurrentValue(), G4VisCommandViewerClear::GetCurrentValue(), G4VisCommandViewerClearTransients::GetCurrentValue(), G4VisCommandViewerClone::GetCurrentValue(), G4VisCommandViewerCreate::GetCurrentValue(), G4VisCommandViewerFlush::GetCurrentValue(), G4VisCommandViewerReset::GetCurrentValue(), G4VisCommandViewerRefresh::GetCurrentValue(), G4VisCommandViewerRebuild::GetCurrentValue(), G4VisCommandViewerUpdate::GetCurrentValue(), G4VVisCommand::GetVisManager(), G4VisCommandViewerCreate::NextName(), G4VisCommandSceneAddEventID::EventID::operator()(), G4VVisCommand::ProvideValueOfUnit(), G4VVisCommand::RefreshIfRequired(), G4VVisCommandGeometrySet::Set(), G4VVisCommandGeometrySet::SetLVVisAtts(), G4ToolsSGSceneHandler::Messenger::SetNewValue(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::Messenger::SetNewValue(), G4VisCommandAbortReviewKeptEvents::SetNewValue(), G4VisCommandDrawOnlyToBeKeptEvents::SetNewValue(), G4VisCommandEnable::SetNewValue(), G4VisCommandInitialize::SetNewValue(), G4VisCommandList::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4VisCommandVerbose::SetNewValue(), G4VisCommandDrawTree::SetNewValue(), G4VisCommandDrawView::SetNewValue(), G4VisCommandDrawLogicalVolume::SetNewValue(), G4VisCommandDrawVolume::SetNewValue(), G4VisCommandOpen::SetNewValue(), G4VisCommandSpecify::SetNewValue(), G4VisCommandGeometryList::SetNewValue(), G4VisCommandGeometryRestore::SetNewValue(), G4VisCommandGeometrySetDaughtersInvisible::SetNewValue(), G4VisCommandGeometrySetVisibility::SetNewValue(), G4VisCommandSceneActivateModel::SetNewValue(), G4VisCommandSceneCreate::SetNewValue(), G4VisCommandSceneEndOfEventAction::SetNewValue(), G4VisCommandSceneEndOfRunAction::SetNewValue(), G4VisCommandSceneList::SetNewValue(), G4VisCommandSceneNotifyHandlers::SetNewValue(), G4VisCommandSceneRemoveModel::SetNewValue(), G4VisCommandSceneSelect::SetNewValue(), G4VisCommandSceneShowExtents::SetNewValue(), G4VisCommandSceneAddArrow::SetNewValue(), G4VisCommandSceneAddArrow2D::SetNewValue(), G4VisCommandSceneAddAxes::SetNewValue(), G4VisCommandSceneAddDate::SetNewValue(), G4VisCommandSceneAddDigis::SetNewValue(), G4VisCommandSceneAddEventID::SetNewValue(), G4VisCommandSceneAddExtent::SetNewValue(), G4VisCommandSceneAddElectricField::SetNewValue(), G4VisCommandSceneAddFrame::SetNewValue(), G4VisCommandSceneAddGPS::SetNewValue(), G4VisCommandSceneAddHits::SetNewValue(), G4VisCommandSceneAddLine::SetNewValue(), G4VisCommandSceneAddLine2D::SetNewValue(), G4VisCommandSceneAddLocalAxes::SetNewValue(), G4VisCommandSceneAddLogicalVolume::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), G4VisCommandSceneAddLogo2D::SetNewValue(), G4VisCommandSceneAddMagneticField::SetNewValue(), G4VisCommandSceneAddPSHits::SetNewValue(), G4VisCommandSceneAddScale::SetNewValue(), G4VisCommandSceneAddText::SetNewValue(), G4VisCommandSceneAddText2D::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandSceneAddUserAction::SetNewValue(), G4VisCommandSceneAddVolume::SetNewValue(), G4VisCommandSceneAddPlotter::SetNewValue(), G4VisCommandSceneHandlerAttach::SetNewValue(), G4VisCommandSceneHandlerCreate::SetNewValue(), G4VisCommandSceneHandlerList::SetNewValue(), G4VisCommandSceneHandlerSelect::SetNewValue(), G4VisCommandSetArrow3DLineSegmentsPerCircle::SetNewValue(), G4VisCommandSetColour::SetNewValue(), G4VisCommandSetExtentForField::SetNewValue(), G4VisCommandSetLineWidth::SetNewValue(), G4VisCommandSetTextColour::SetNewValue(), G4VisCommandSetTextLayout::SetNewValue(), G4VisCommandSetTextSize::SetNewValue(), G4VisCommandSetTouchable::SetNewValue(), G4VisCommandSetVolumeForField::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandViewerAddCutawayPlane::SetNewValue(), G4VisCommandViewerCentreOn::SetNewValue(), G4VisCommandViewerChangeCutawayPlane::SetNewValue(), G4VisCommandViewerClear::SetNewValue(), G4VisCommandViewerClearCutawayPlanes::SetNewValue(), G4VisCommandViewerClearTransients::SetNewValue(), G4VisCommandViewerClearVisAttributesModifiers::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerColourByDensity::SetNewValue(), G4VisCommandViewerCopyViewFrom::SetNewValue(), G4VisCommandViewerCreate::SetNewValue(), G4VisCommandViewerDolly::SetNewValue(), G4VisCommandViewerFlush::SetNewValue(), SetNewValue(), G4VisCommandViewerList::SetNewValue(), G4VisCommandViewerPan::SetNewValue(), G4VisCommandViewerReset::SetNewValue(), G4VisCommandViewerRefresh::SetNewValue(), G4VisCommandViewerRebuild::SetNewValue(), G4VisCommandViewerSave::SetNewValue(), G4VisCommandViewerScale::SetNewValue(), G4VisCommandViewerSelect::SetNewValue(), G4VisCommandViewerUpdate::SetNewValue(), G4VisCommandViewerZoom::SetNewValue(), G4VisCommandViewerDefaultHiddenEdge::SetNewValue(), G4VisCommandViewerDefaultStyle::SetNewValue(), G4VisCommandsViewerSet::SetNewValue(), G4VisCommandGeometrySetVisibility::SetNewValueOnLV(), and G4VVisCommand::SetVisManager().

◆ fThereWasAViewer

G4bool G4VVisCommand::fThereWasAViewer = false
staticprotectedinherited

◆ fVPExistingViewer

G4ViewParameters G4VVisCommand::fVPExistingViewer
staticprotectedinherited

The documentation for this class was generated from the following files: