80 #ifndef G4VISMANAGER_HH
81 #define G4VISMANAGER_HH
351 void BeginOfEvent ();
465 template <
class T>
void DrawT
466 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
467 template <
class T>
void DrawT2D
468 (
const T& graphics_primitive,
const G4Transform3D& objectTransform);
470 void PrintAvailableModels (
Verbosity)
const;
471 void PrintAvailableColours (
Verbosity)
const;
472 void PrintAvailableUserVisActions (
Verbosity)
const;
473 void PrintInvalidPointers ()
const;
476 void ClearTransientStoreIfMarked();
482 std::vector<UserVisAction> fRunDurationUserVisActions;
483 std::vector<UserVisAction> fEndOfEventUserVisActions;
484 std::vector<UserVisAction> fEndOfRunUserVisActions;
485 std::map<G4VUserVisAction*,G4VisExtent> fUserVisActionExtents;
494 std::vector<G4UImessenger*> fMessengerList;
495 std::vector<G4UIcommand*> fDirectoryList;
499 G4bool fTransientsDrawnThisRun;
500 G4bool fTransientsDrawnThisEvent;
501 G4int fNKeepRequests;
502 G4bool fEventKeepingSuspended;
504 const G4Event* fpRequestedEvent;
505 G4bool fAbortReviewKeptEvents;
508 G4int fDrawGroupNestingDepth;
522 #ifdef G4MULTITHREADED
524 virtual void SetUpForAThread();
527 virtual void IgnoreStateChanges(
G4bool);
533 #include "G4VisManager.icc"
G4bool GetTransientsDrawnThisRun() const
G4bool FilterDigi(const G4VDigi &)
void RegisterEndOfEventUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent::NullExtent)
void RegisterModelFactory(G4TrajDrawModelFactory *factory)
static const G4VisExtent NullExtent
friend std::ostream & operator<<(std::ostream &, const G4VGraphicsSystem &)
virtual void RegisterModelFactories()
void SetCurrentSceneHandler(G4VSceneHandler *)
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
void PrintAvailableGraphicsSystems() const
const G4ViewParameters & GetDefaultViewParameters() const
G4SceneList & SetSceneList()
G4String ViewerShortName(const G4String &viewerName) const
G4bool FilterTrajectory(const G4VTrajectory &)
void ResetTransientsDrawnFlags()
const G4SceneList & GetSceneList() const
const std::vector< UserVisAction > & GetEndOfEventUserVisActions() const
G4SceneHandlerList & SetAvailableSceneHandlers()
const XML_Char XML_Content * model
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 *)
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
G4bool fIgnoreStateChanges
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="")
friend class G4OpenGLXmViewerMessenger
const G4GraphicsSystemList & GetAvailableGraphicsSystems()
void Draw2D(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())
std::map< G4String, G4AttDef > * GetInstance(G4String storeKey, G4bool &isNew)
G4Scene * GetCurrentScene() const
void SetAbortReviewKeptEvents(G4bool)