79#ifndef G4VISMANAGER_HH
80#define G4VISMANAGER_HH
84#define G4VIS_USE_STD11
341#ifdef G4MULTITHREADED
343 virtual void SetUpForAThread();
364 void BeginOfEvent ();
413#ifdef G4MULTITHREADED
414 G4int GetMaxEventQueueSize ()
const;
415 G4bool GetWaitOnEventQueueFull ()
const;
437#ifdef G4MULTITHREADED
438 void SetMaxEventQueueSize (
G4int);
439 void SetWaitOnEventQueueFull (
G4bool);
489 template <
class T>
void DrawT
490 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
491 template <
class T>
void DrawT2D
492 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
494 void PrintAvailableModels (
Verbosity)
const;
495 void InitialiseG4ColourMap ()
const;
496 void PrintAvailableColours (
Verbosity)
const;
497 void PrintAvailableUserVisActions (
Verbosity)
const;
498 void PrintInvalidPointers ()
const;
501 void ClearTransientStoreIfMarked();
507 std::vector<UserVisAction> fRunDurationUserVisActions;
508 std::vector<UserVisAction> fEndOfEventUserVisActions;
509 std::vector<UserVisAction> fEndOfRunUserVisActions;
510 std::map<G4VUserVisAction*,G4VisExtent> fUserVisActionExtents;
519 std::vector<G4UImessenger*> fMessengerList;
520 std::vector<G4UIcommand*> fDirectoryList;
523 G4bool fTransientsDrawnThisRun;
524 G4bool fTransientsDrawnThisEvent;
525 G4int fNoOfEventsDrawnThisRun;
526 G4int fNKeepRequests;
527 G4bool fEventKeepingSuspended;
528 G4bool fDrawEventOnlyIfToBeKept;
529 const G4Event* fpRequestedEvent;
530 G4bool fReviewingKeptEvents;
531 G4bool fAbortReviewKeptEvents;
534 G4int fDrawGroupNestingDepth;
535 G4bool fIgnoreStateChanges;
536#ifdef G4MULTITHREADED
537 G4int fMaxEventQueueSize;
538 G4bool fWaitOnEventQueueFull;
554#include "G4VisManager.icc"
void * G4ThreadFunReturnType
void * G4ThreadFunArgType
G4VModelFactory< G4VFilter< G4VHit > > G4HitFilterFactory
G4VModelFactory< G4VTrajectoryModel > G4TrajDrawModelFactory
G4VModelFactory< G4VFilter< G4VTrajectory > > G4TrajFilterFactory
G4VModelFactory< G4VFilter< G4VDigi > > G4DigiFilterFactory
void SelectTrajectoryModel(const G4String &model)
void RegisterRunDurationUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent())
void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())
void SetCurrentGraphicsSystem(G4VGraphicsSystem *)
G4Scene * GetCurrentScene() const
void Draw2D(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())
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 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())
G4bool GetTransientsDrawnThisEvent() const
G4String ViewerShortName(const G4String &viewerName) const
const std::map< G4VUserVisAction *, G4VisExtent > & GetUserVisActionExtents() const
void RegisterModel(G4VTrajectoryModel *model)
void RegisterMessenger(G4UImessenger *messenger)
G4bool GetAbortReviewKeptEvents() const
void SetCurrentViewer(G4VViewer *)
friend std::ostream & operator<<(std::ostream &, const G4VGraphicsSystem &)
void SetUserAction(G4VUserVisAction *pVisAction, const G4VisExtent &=G4VisExtent())
const G4ViewParameters & GetDefaultViewParameters() const
void SetUserActionExtent(const G4VisExtent &)
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)
G4SceneHandlerList & SetAvailableSceneHandlers()
G4VViewer * GetCurrentViewer() const
void SetRequestedEvent(const G4Event *)
G4bool RegisterGraphicsSystem(G4VGraphicsSystem *)
G4bool GetDrawEventOnlyIfToBeKept() const
const std::vector< UserVisAction > & GetEndOfEventUserVisActions() const
void PrintAvailableGraphicsSystems(Verbosity) const
virtual void RegisterModelFactories()
G4VSceneHandler * GetCurrentSceneHandler() const
void SetReviewingKeptEvents(G4bool)
const G4SceneList & GetSceneList() const
static Verbosity GetVerbosity()
void RegisterMessengers()
void ResetTransientsDrawnFlags()
G4bool FilterTrajectory(const G4VTrajectory &)
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
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 DispatchToModel(const G4VTrajectory &)
G4VViewer * GetViewer(const G4String &viewerName) const
UserVisAction(const G4String &name, G4VUserVisAction *pUserVisAction)
G4VUserVisAction * fpUserVisAction