80 #ifndef G4VISMANAGER_HH
81 #define G4VISMANAGER_HH
85 #define G4VIS_USE_STD11
336 #ifdef G4MULTITHREADED
338 virtual void SetUpForAThread();
359 void BeginOfEvent ();
405 #ifdef G4MULTITHREADED
406 G4int GetMaxEventQueueSize ()
const;
407 G4bool GetWaitOnEventQueueFull ()
const;
431 #ifdef G4MULTITHREADED
432 void SetMaxEventQueueSize (
G4int);
433 void SetWaitOnEventQueueFull (
G4bool);
483 template <
class T>
void DrawT
484 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
485 template <
class T>
void DrawT2D
486 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
488 void PrintAvailableModels (
Verbosity)
const;
489 void PrintAvailableColours (
Verbosity)
const;
490 void PrintAvailableUserVisActions (
Verbosity)
const;
491 void PrintInvalidPointers ()
const;
494 void ClearTransientStoreIfMarked();
500 std::vector<UserVisAction> fRunDurationUserVisActions;
501 std::vector<UserVisAction> fEndOfEventUserVisActions;
502 std::vector<UserVisAction> fEndOfRunUserVisActions;
503 std::map<G4VUserVisAction*,G4VisExtent> fUserVisActionExtents;
512 std::vector<G4UImessenger*> fMessengerList;
513 std::vector<G4UIcommand*> fDirectoryList;
516 G4bool fTransientsDrawnThisRun;
517 G4bool fTransientsDrawnThisEvent;
518 G4int fNoOfEventsDrawnThisRun;
519 G4int fNKeepRequests;
520 G4bool fEventKeepingSuspended;
522 const G4Event* fpRequestedEvent;
523 G4bool fAbortReviewKeptEvents;
526 G4int fDrawGroupNestingDepth;
527 G4bool fIgnoreStateChanges;
528 #ifdef G4MULTITHREADED
529 G4int fMaxEventQueueSize;
530 G4bool fWaitOnEventQueueFull;
546 #include "G4VisManager.icc"
G4bool GetTransientsDrawnThisRun() const
G4bool FilterDigi(const G4VDigi &)
void RegisterEndOfEventUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent::NullExtent)
void RegisterModelFactory(G4TrajDrawModelFactory *factory)
void SetTransientsDrawnThisRun(G4bool)
static const G4VisExtent NullExtent
friend std::ostream & operator<<(std::ostream &, const G4VGraphicsSystem &)
virtual void RegisterModelFactories()
void SetCurrentSceneHandler(G4VSceneHandler *)
void PrintAvailableGraphicsSystems(Verbosity) const
void SetEventRefreshing(G4bool)
void RegisterEndOfRunUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent::NullExtent)
void SetVerboseLevel(G4int)
void SetRequestedEvent(const G4Event *)
G4VModelFactory< G4VFilter< G4VDigi > > G4DigiFilterFactory
void GeometryHasChanged()
G4VGraphicsSystem * GetCurrentGraphicsSystem() const
void SetCurrentScene(G4Scene *)
void SetUserActionExtent(const G4VisExtent &)
static std::vector< G4String > VerbosityGuidanceStrings
static Verbosity GetVerbosityValue(const G4String &)
void BeginDraw(const G4Transform3D &objectTransformation=G4Transform3D())
const G4VTrajectoryModel * CurrentTrajDrawModel() const
void SetDefaultViewParameters(const G4ViewParameters &)
void RegisterMessengers()
const G4SceneHandlerList & GetAvailableSceneHandlers() const
G4VModelFactory< G4VFilter< G4VHit > > G4HitFilterFactory
void RegisterMessenger(G4UImessenger *messenger)
void SelectTrajectoryModel(const G4String &model)
G4VModelFactory< G4VFilter< G4VTrajectory > > G4TrajFilterFactory
const G4ViewParameters & GetDefaultViewParameters() const
G4SceneList & SetSceneList()
void IgnoreStateChanges(G4bool)
G4String ViewerShortName(const G4String &viewerName) const
G4bool FilterTrajectory(const G4VTrajectory &)
void ResetTransientsDrawnFlags()
static G4VisManager * GetInstance()
const G4SceneList & GetSceneList() const
const std::vector< UserVisAction > & GetEndOfEventUserVisActions() const
G4SceneHandlerList & SetAvailableSceneHandlers()
void SetCurrentGraphicsSystem(G4VGraphicsSystem *)
const std::map< G4VUserVisAction *, G4VisExtent > & GetUserVisActionExtents() const
G4VUserVisAction * fpUserVisAction
const std::vector< UserVisAction > & GetRunDurationUserVisActions() const
G4bool GetTransientsDrawnThisEvent() const
void RegisterRunDurationUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent::NullExtent)
void SetCurrentViewer(G4VViewer *)
void SetTransientsDrawnThisEvent(G4bool)
G4VisManager(const G4String &verbosityString="warnings")
G4bool FilterHit(const G4VHit &)
void SetUserAction(G4VUserVisAction *pVisAction, const G4VisExtent &=G4VisExtent::NullExtent)
G4VViewer * GetViewer(const G4String &viewerName) const
void BeginDraw2D(const G4Transform3D &objectTransformation=G4Transform3D())
G4VModelFactory< G4VTrajectoryModel > G4TrajDrawModelFactory
static G4String VerbosityString(Verbosity)
G4VSceneHandler * GetCurrentSceneHandler() const
UserVisAction(const G4String &name, G4VUserVisAction *pUserVisAction)
static Verbosity GetVerbosity()
const G4Event * GetRequestedEvent() const
void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())
virtual void RegisterGraphicsSystems()=0
void RegisterModel(G4VTrajectoryModel *model)
G4bool RegisterGraphicsSystem(G4VGraphicsSystem *)
G4VViewer * GetCurrentViewer() const
G4bool GetAbortReviewKeptEvents() const
const std::vector< UserVisAction > & GetEndOfRunUserVisActions() const
void DispatchToModel(const G4VTrajectory &)
void CreateViewer(const G4String &name="", const G4String &XGeometry="")
void CreateSceneHandler(const G4String &name="")
const G4GraphicsSystemList & GetAvailableGraphicsSystems()
const XML_Char XML_Content * model
void Draw2D(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())
void * G4ThreadFunArgType
G4Scene * GetCurrentScene() const
void * G4ThreadFunReturnType
void SetAbortReviewKeptEvents(G4bool)