Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VVisCommand.hh 95006 2016-01-15 08:26:18Z gcosmo $
|
||||
// $Id: G4VVisCommand.hh 104163 2017-05-15 06:52:42Z gcosmo $
|
||||
|
||||
// Base class for visualization commands - John Allison 9th August 1998
|
||||
// It is really a messenger - we have one command per messenger.
|
||||
@@ -62,11 +62,27 @@ public:
|
||||
protected:
|
||||
|
||||
// Conversion routines augmenting those in G4UIcommand.
|
||||
|
||||
static G4String ConvertToString(G4double x, G4double y,
|
||||
const char * unitName);
|
||||
static void ConvertToDoublePair(const G4String& paramString,
|
||||
G4double& xval,
|
||||
G4double& yval);
|
||||
|
||||
static G4bool ConvertToDoublePair(const G4String& paramString,
|
||||
G4double& xval,
|
||||
G4double& yval);
|
||||
// Return false if problem parsing paramString.
|
||||
|
||||
void ConvertToColour
|
||||
(G4Colour& colour,
|
||||
const G4String& redOrString, G4double green, G4double blue, G4double opacity);
|
||||
// Note: colour is supplied by the caller and becomes the default if the
|
||||
// remaining parameters cannot be parsed.
|
||||
// Note: redOrString is either a number or string. If a string it must be
|
||||
// one of the recognised colours.
|
||||
// Thus the arguments can be, for example:
|
||||
// (colour,"red",...,...,0.5): will give the colour red with opacity 0.5 (the
|
||||
// third and fourth arguments are ignored), or
|
||||
// (1.,0.,0.,0.5): this also will be red with opacity 0.5.
|
||||
static const G4String& ConvertToColourGuidance();
|
||||
|
||||
// Other utilities.
|
||||
void UpdateVisManagerScene (const G4String& sceneName = "");
|
||||
@@ -78,6 +94,7 @@ protected:
|
||||
static G4int fErrorCode;
|
||||
|
||||
// Current quantities for use in appropriate commands
|
||||
static G4int fCurrentArrow3DLineSegmentsPerCircle;
|
||||
static G4Colour fCurrentColour;
|
||||
//static G4VMarker::FillStyle fCurrentFillStyle; Not yet used.
|
||||
//static G4VMarker::SizeType fCurrentSizeType; Not yet used.
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisCommandsSceneAdd.hh 93069 2015-10-02 09:54:27Z gcosmo $
|
||||
// $Id: G4VisCommandsSceneAdd.hh 104163 2017-05-15 06:52:42Z gcosmo $
|
||||
|
||||
// /vis/scene commands - John Allison 9th August 1998
|
||||
|
||||
@@ -190,6 +190,18 @@ private:
|
||||
G4UIcommand* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSceneAddGPS: public G4VVisCommandScene {
|
||||
public:
|
||||
G4VisCommandSceneAddGPS ();
|
||||
virtual ~G4VisCommandSceneAddGPS ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4VisCommandSceneAddGPS (const G4VisCommandSceneAddGPS&);
|
||||
G4VisCommandSceneAddGPS& operator = (const G4VisCommandSceneAddGPS&);
|
||||
G4UIcommand* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSceneAddGhosts: public G4VVisCommandScene {
|
||||
public:
|
||||
G4VisCommandSceneAddGhosts ();
|
||||
|
||||
@@ -35,9 +35,22 @@
|
||||
#include "G4VVisCommand.hh"
|
||||
|
||||
class G4UIcommand;
|
||||
class G4UIcmdWithAnInteger;
|
||||
class G4UIcmdWithADouble;
|
||||
class G4UIcmdWithAString;
|
||||
|
||||
class G4VisCommandSetArrow3DLineSegmentsPerCircle: public G4VVisCommand {
|
||||
public:
|
||||
G4VisCommandSetArrow3DLineSegmentsPerCircle ();
|
||||
virtual ~G4VisCommandSetArrow3DLineSegmentsPerCircle ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4VisCommandSetArrow3DLineSegmentsPerCircle (const G4VisCommandSetArrow3DLineSegmentsPerCircle&);
|
||||
G4VisCommandSetArrow3DLineSegmentsPerCircle& operator = (const G4VisCommandSetArrow3DLineSegmentsPerCircle&);
|
||||
G4UIcmdWithAnInteger* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSetColour: public G4VVisCommand {
|
||||
public:
|
||||
G4VisCommandSetColour ();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisCommandsViewer.hh 102575 2017-02-09 09:07:12Z gcosmo $
|
||||
// $Id: G4VisCommandsViewer.hh 102234 2017-01-13 15:59:41Z gcosmo $
|
||||
|
||||
// /vis/viewer commands - John Allison 25th October 1998
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisManager.hh 97316 2016-06-01 12:12:58Z gcosmo $
|
||||
// $Id: G4VisManager.hh 102802 2017-02-22 15:19:00Z gcosmo $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -180,13 +180,20 @@ public: // With description
|
||||
// /vis/scene/add/userAction.
|
||||
void RegisterRunDurationUserVisAction
|
||||
(const G4String& name, G4VUserVisAction*,
|
||||
const G4VisExtent& = G4VisExtent::NullExtent);
|
||||
const G4VisExtent& = G4VisExtent());
|
||||
void RegisterEndOfEventUserVisAction
|
||||
(const G4String& name, G4VUserVisAction*,
|
||||
const G4VisExtent& = G4VisExtent::NullExtent);
|
||||
const G4VisExtent& = G4VisExtent());
|
||||
void RegisterEndOfRunUserVisAction
|
||||
(const G4String& name, G4VUserVisAction*,
|
||||
const G4VisExtent& = G4VisExtent::NullExtent);
|
||||
const G4VisExtent& = G4VisExtent());
|
||||
void SetUserAction
|
||||
(G4VUserVisAction* pVisAction,
|
||||
const G4VisExtent& = G4VisExtent());
|
||||
// SetUserAction is deprecated. Use RegisterRunDurationUserVisAction
|
||||
// or other of the above.
|
||||
void SetUserActionExtent (const G4VisExtent&); //Legacy: deprecated.
|
||||
|
||||
|
||||
G4bool RegisterGraphicsSystem (G4VGraphicsSystem*);
|
||||
// Register an individual graphics system. Normally this is done in
|
||||
@@ -407,10 +414,6 @@ public: // With description
|
||||
G4bool GetWaitOnEventQueueFull () const;
|
||||
#endif
|
||||
|
||||
void SetUserAction
|
||||
(G4VUserVisAction* pVisAction,
|
||||
const G4VisExtent& = G4VisExtent::NullExtent); // Register run-duration.
|
||||
void SetUserActionExtent (const G4VisExtent&); //Legacy: deprecated.
|
||||
void SetCurrentGraphicsSystem (G4VGraphicsSystem*);
|
||||
void SetCurrentScene (G4Scene*);
|
||||
void SetCurrentSceneHandler (G4VSceneHandler*);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisManager.icc 93026 2015-09-30 16:07:07Z gcosmo $
|
||||
// $Id: G4VisManager.icc 102233 2017-01-13 15:59:06Z gcosmo $
|
||||
//
|
||||
//
|
||||
// GEANT4 Visualization Manager - John Allison 02/Jan/1996.
|
||||
@@ -111,12 +111,6 @@ inline G4bool G4VisManager::GetWaitOnEventQueueFull () const {
|
||||
|
||||
#endif
|
||||
|
||||
inline void G4VisManager::SetUserAction
|
||||
(G4VUserVisAction* pVisAction,
|
||||
const G4VisExtent& extent) {
|
||||
RegisterRunDurationUserVisAction("SetUserAction",pVisAction,extent);
|
||||
}
|
||||
|
||||
inline G4SceneList& G4VisManager::SetSceneList () {
|
||||
return fSceneList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user