79#ifndef G4VISMANAGER_HH
80#define G4VISMANAGER_HH
84#define G4VIS_USE_STD11
336#ifdef G4MULTITHREADED
338 virtual void SetUpForAThread();
359 void BeginOfEvent ();
411#ifdef G4MULTITHREADED
412 G4int GetMaxEventQueueSize ()
const;
413 G4bool GetWaitOnEventQueueFull ()
const;
441#ifdef G4MULTITHREADED
442 void SetMaxEventQueueSize (
G4int);
443 void SetWaitOnEventQueueFull (
G4bool);
505 template <
class T>
void DrawT
506 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
507 template <
class T>
void DrawT2D
508 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
510 void PrintAvailableModels (
Verbosity)
const;
511 void InitialiseG4ColourMap ()
const;
512 void PrintAvailableColours (
Verbosity)
const;
513 void PrintAvailableUserVisActions (
Verbosity)
const;
514 void PrintInvalidPointers ()
const;
517 void ClearTransientStoreIfMarked();
523 std::vector<UserVisAction> fRunDurationUserVisActions;
524 std::vector<UserVisAction> fEndOfEventUserVisActions;
525 std::vector<UserVisAction> fEndOfRunUserVisActions;
526 std::map<G4VUserVisAction*,G4VisExtent> fUserVisActionExtents;
534 std::vector<G4UImessenger*> fMessengerList;
535 std::vector<G4UIcommand*> fDirectoryList;
538 G4bool fTransientsDrawnThisRun;
539 G4bool fTransientsDrawnThisEvent;
540 G4int fNoOfEventsDrawnThisRun;
541 G4int fNKeepRequests;
542 G4bool fEventKeepingSuspended;
543 G4bool fDrawEventOnlyIfToBeKept;
544 const G4Event* fpRequestedEvent;
545 G4bool fReviewingKeptEvents;
546 G4bool fAbortReviewKeptEvents;
551 G4int fDrawGroupNestingDepth;
552 G4bool fIgnoreStateChanges;
553#ifdef G4MULTITHREADED
554 G4int fMaxEventQueueSize;
555 G4bool fWaitOnEventQueueFull;
571#include "G4VisManager.icc"
void * G4ThreadFunReturnType
void * G4ThreadFunArgType
G4VModelFactory< G4VFilter< G4VHit > > G4HitFilterFactory
G4VModelFactory< G4VTrajectoryModel > G4TrajDrawModelFactory
G4VModelFactory< G4VFilter< G4VTrajectory > > G4TrajFilterFactory
G4VModelFactory< G4VFilter< G4VDigi > > G4DigiFilterFactory
G4GLOB_DLL std::ostream G4cout
void SelectTrajectoryModel(const G4String &model)
void RegisterRunDurationUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent())
friend std::ostream & operator<<(std::ostream &, const G4VGraphicsSystem &)
G4String fDefaultXGeometryStringBasis
void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())
void SetCurrentGraphicsSystem(G4VGraphicsSystem *)
G4Scene * GetCurrentScene() const
void Draw2D(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())
void PrintAvailableGraphicsSystems(Verbosity, std::ostream &=G4cout) const
virtual void RegisterGraphicsSystems()=0
void SetDrawEventOnlyIfToBeKept(G4bool)
void BeginDraw2D(const G4Transform3D &objectTransformation=G4Transform3D())
void CreateSceneHandler(const G4String &name="")
G4int GetNKeepRequests() const
void SetCurrentSceneHandler(G4VSceneHandler *)
const std::vector< UserVisAction > & GetRunDurationUserVisActions() const
const G4VTrajectoryModel * CurrentTrajDrawModel() const
G4bool GetAbortReviewPlots() const
static Verbosity fVerbosity
G4bool FilterDigi(const G4VDigi &)
void SetTransientsDrawnThisEvent(G4bool)
void SetEventRefreshing(G4bool)
void SetCurrentScene(G4Scene *)
static std::vector< G4String > VerbosityGuidanceStrings
static G4String VerbosityString(Verbosity)
void RegisterEndOfEventUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent())
const G4String & GetDefaultGraphicsSystemBasis() const
G4bool GetTransientsDrawnThisEvent() const
G4String ViewerShortName(const G4String &viewerName) const
G4String fDefaultGraphicsSystemBasis
const std::map< G4VUserVisAction *, G4VisExtent > & GetUserVisActionExtents() const
void RegisterModel(G4VTrajectoryModel *model)
void RegisterMessenger(G4UImessenger *messenger)
const G4String & GetDefaultXGeometryStringBasis() const
G4bool GetAbortReviewKeptEvents() const
void SetCurrentViewer(G4VViewer *)
G4String fDefaultXGeometryString
const G4ViewParameters & GetDefaultViewParameters() const
void SetAbortReviewPlots(G4bool)
const std::vector< UserVisAction > & GetEndOfRunUserVisActions() const
void RegisterModelFactory(G4TrajDrawModelFactory *factory)
G4bool GetTransientsDrawnThisRun() const
G4SceneList & SetSceneList()
G4VGraphicsSystem * GetCurrentGraphicsSystem() const
G4bool FilterHit(const G4VHit &)
void SetAbortReviewKeptEvents(G4bool)
void SetReviewingPlots(G4bool)
G4SceneHandlerList & SetAvailableSceneHandlers()
const G4String & GetDefaultGraphicsSystemName() const
G4VViewer * GetCurrentViewer() const
void SetRequestedEvent(const G4Event *)
G4bool RegisterGraphicsSystem(G4VGraphicsSystem *)
G4bool GetDrawEventOnlyIfToBeKept() const
void SetDefaultXGeometryStringBasis(const G4String &)
const std::vector< UserVisAction > & GetEndOfEventUserVisActions() const
void SetDefaultGraphicsSystemBasis(const G4String &)
virtual void RegisterModelFactories()
G4VSceneHandler * GetCurrentSceneHandler() const
void SetReviewingKeptEvents(G4bool)
G4bool GetReviewingPlots() const
const G4SceneList & GetSceneList() const
static Verbosity GetVerbosity()
void RegisterMessengers()
void ResetTransientsDrawnFlags()
G4bool FilterTrajectory(const G4VTrajectory &)
G4String fDefaultGraphicsSystemName
void SetDefaultGraphicsSystemName(const G4String &)
const G4String & GetDefaultXGeometryString() const
void SetVerboseLevel(G4int)
void IgnoreStateChanges(G4bool)
void SetTransientsDrawnThisRun(G4bool)
void SetDefaultViewParameters(const G4ViewParameters &)
const G4SceneHandlerList & GetAvailableSceneHandlers() const
void SetVerboseLevel(Verbosity)
G4bool GetReviewingKeptEvents() const
const G4Event * GetRequestedEvent() const
G4VisManager(const G4String &verbosityString="warnings")
void DrawGeometry(G4VPhysicalVolume *, const G4Transform3D &t=G4Transform3D())
static Verbosity GetVerbosityValue(const G4String &)
static G4VisManager * GetInstance()
void GeometryHasChanged()
const G4GraphicsSystemList & GetAvailableGraphicsSystems()
void RegisterEndOfRunUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent())
void BeginDraw(const G4Transform3D &objectTransformation=G4Transform3D())
void CreateViewer(const G4String &name="", const G4String &XGeometry="")
void SetDefaultXGeometryString(const G4String &)
void DispatchToModel(const G4VTrajectory &)
G4VViewer * GetViewer(const G4String &viewerName) const
UserVisAction(const G4String &name, G4VUserVisAction *pUserVisAction)
G4VUserVisAction * fpUserVisAction