Import Geant4 10.4.0 source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VVisCommand.hh 104163 2017-05-15 06:52:42Z gcosmo $
|
||||
// $Id: G4VVisCommand.hh 105349 2017-07-21 12:23:24Z gcosmo $
|
||||
|
||||
// Base class for visualization commands - John Allison 9th August 1998
|
||||
// It is really a messenger - we have one command per messenger.
|
||||
@@ -71,9 +71,13 @@ protected:
|
||||
G4double& yval);
|
||||
// Return false if problem parsing paramString.
|
||||
|
||||
const G4String& ConvertToColourGuidance();
|
||||
void ConvertToColour
|
||||
(G4Colour& colour,
|
||||
const G4String& redOrString, G4double green, G4double blue, G4double opacity);
|
||||
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
|
||||
@@ -82,7 +86,6 @@ protected:
|
||||
// (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 = "");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisCommands.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
// $Id: G4VisCommands.hh 106384 2017-10-09 09:34:51Z gcosmo $
|
||||
|
||||
// /vis/ top level commands - John Allison 5th February 2001
|
||||
|
||||
@@ -49,6 +49,18 @@ private:
|
||||
G4UIcmdWithABool* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandDrawOnlyToBeKeptEvents: public G4VVisCommand {
|
||||
public:
|
||||
G4VisCommandDrawOnlyToBeKeptEvents ();
|
||||
virtual ~G4VisCommandDrawOnlyToBeKeptEvents ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4VisCommandDrawOnlyToBeKeptEvents (const G4VisCommandDrawOnlyToBeKeptEvents&);
|
||||
G4VisCommandDrawOnlyToBeKeptEvents& operator = (const G4VisCommandDrawOnlyToBeKeptEvents&);
|
||||
G4UIcmdWithABool* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandEnable: public G4VVisCommand {
|
||||
public:
|
||||
G4VisCommandEnable ();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisManager.hh 102802 2017-02-22 15:19:00Z gcosmo $
|
||||
// $Id: G4VisManager.hh 106384 2017-10-09 09:34:51Z gcosmo $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -174,7 +174,7 @@ public:
|
||||
public: // With description
|
||||
|
||||
void Initialise ();
|
||||
void Initialize (); // Alias Initialise ().
|
||||
void Initialize (); // Alias Initialise ()
|
||||
|
||||
// Optional registration of user vis actions. Added to scene with
|
||||
// /vis/scene/add/userAction.
|
||||
@@ -194,7 +194,6 @@ public: // With description
|
||||
// or other of the above.
|
||||
void SetUserActionExtent (const G4VisExtent&); //Legacy: deprecated.
|
||||
|
||||
|
||||
G4bool RegisterGraphicsSystem (G4VGraphicsSystem*);
|
||||
// Register an individual graphics system. Normally this is done in
|
||||
// a sub-class implementation of the protected virtual function,
|
||||
@@ -406,6 +405,7 @@ public: // With description
|
||||
static Verbosity GetVerbosity ();
|
||||
G4bool GetTransientsDrawnThisRun () const;
|
||||
G4bool GetTransientsDrawnThisEvent () const;
|
||||
G4bool GetDrawEventOnlyIfToBeKept () const;
|
||||
const G4Event* GetRequestedEvent () const;
|
||||
G4bool GetAbortReviewKeptEvents () const;
|
||||
const G4ViewParameters& GetDefaultViewParameters () const;
|
||||
@@ -427,6 +427,7 @@ public: // With description
|
||||
void ResetTransientsDrawnFlags ();
|
||||
void SetTransientsDrawnThisRun (G4bool);
|
||||
void SetTransientsDrawnThisEvent (G4bool);
|
||||
void SetDrawEventOnlyIfToBeKept (G4bool);
|
||||
// If non-zero, requested event is used in G4VSceneHandler::ProcessScene.
|
||||
void SetRequestedEvent (const G4Event*);
|
||||
void SetAbortReviewKeptEvents (G4bool);
|
||||
@@ -489,8 +490,9 @@ private:
|
||||
(const T& graphics_primitive, const G4Transform3D& objectTransform);
|
||||
|
||||
void PrintAvailableModels (Verbosity) const;
|
||||
void InitialiseG4ColourMap () const;
|
||||
void PrintAvailableColours (Verbosity) const;
|
||||
void PrintAvailableUserVisActions (Verbosity) const;
|
||||
void PrintAvailableUserVisActions (Verbosity) const;
|
||||
void PrintInvalidPointers () const;
|
||||
G4bool IsValidView ();
|
||||
// True if view is valid. Prints messages and sanitises various data.
|
||||
@@ -522,6 +524,7 @@ private:
|
||||
G4int fNKeepRequests;
|
||||
G4bool fEventKeepingSuspended;
|
||||
G4bool fKeptLastEvent;
|
||||
G4bool fDrawEventOnlyIfToBeKept;
|
||||
const G4Event* fpRequestedEvent; // If non-zero, scene handler uses.
|
||||
G4bool fAbortReviewKeptEvents;
|
||||
G4ViewParameters fDefaultViewParameters;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisManager.icc 102233 2017-01-13 15:59:06Z gcosmo $
|
||||
// $Id: G4VisManager.icc 105349 2017-07-21 12:23:24Z gcosmo $
|
||||
//
|
||||
//
|
||||
// GEANT4 Visualization Manager - John Allison 02/Jan/1996.
|
||||
@@ -87,6 +87,10 @@ inline G4bool G4VisManager::GetTransientsDrawnThisRun() const {
|
||||
return fTransientsDrawnThisRun;
|
||||
}
|
||||
|
||||
inline G4bool G4VisManager::GetDrawEventOnlyIfToBeKept() const {
|
||||
return fDrawEventOnlyIfToBeKept;
|
||||
}
|
||||
|
||||
inline const G4Event* G4VisManager::GetRequestedEvent() const {
|
||||
return fpRequestedEvent;
|
||||
}
|
||||
@@ -140,6 +144,10 @@ inline void G4VisManager::SetTransientsDrawnThisEvent (G4bool b) {
|
||||
fTransientsDrawnThisEvent = b;
|
||||
}
|
||||
|
||||
inline void G4VisManager::SetDrawEventOnlyIfToBeKept (G4bool b) {
|
||||
fDrawEventOnlyIfToBeKept = b;
|
||||
}
|
||||
|
||||
inline void G4VisManager::SetRequestedEvent (const G4Event* event) {
|
||||
fpRequestedEvent = event;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user