Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <G4VtkQtViewer.hh>
Public Types | |
using | PVNodeID = G4PhysicalVolumeModel::G4PhysicalVolumeNodeID |
using | PVPath = std::vector<PVNodeID> |
Public Member Functions | |
G4VtkQtViewer (G4VSceneHandler &, const G4String &name) | |
~G4VtkQtViewer () override | |
void | Initialise () override |
virtual void | CreateMainWindow (QVTKOpenGLNativeWidget *, const QString &) |
void | FinishView () override |
void | createSceneTreeWidget () |
void | createSceneTreeComponent () |
QTreeWidgetItem * | createTreeWidgetItem (const PVPath &fullPath, const QString &name, int copyNb, int POIndex, const QString &logicalName, Qt::CheckState state, QTreeWidgetItem *parentTreeNode, const G4Colour &color) |
void | addNonPVSceneTreeElement (const G4String &model, G4Visible &visible, int currentPOIndex) |
void | addPVSceneTreeElement (const G4String &model, G4PhysicalVolumeModel *pPVModel, int currentPOIndex) |
QString | getModelShortName (const G4String &model) |
bool | parseAndInsertInSceneTree (QTreeWidgetItem *parentItem, G4PhysicalVolumeModel *pPVModel, unsigned int fullPathIndex, const QString &parentRoot, unsigned int currentIndexInTreeSceneHandler, int currentPVPOIndex) |
void | EnableClipperWidget () override |
void | SetWidgetInteractor (vtkAbstractWidget *widget) override |
Public Member Functions inherited from G4VtkViewer | |
G4VtkViewer (G4VSceneHandler &, const G4String &name) | |
void | Initialise () override |
~G4VtkViewer () override | |
void | SetView () override |
void | ClearView () override |
void | DrawView () override |
void | ShowView () override |
void | FinishView () override |
void | ExportScreenShot (G4String, G4String) |
void | ExportOBJScene (G4String) |
void | ExportVRMLScene (G4String) |
void | ExportVTPScene (G4String) |
void | ExportGLTFScene (G4String) |
void | ExportJSONRenderWindowScene (G4String) |
void | ExportVTPCutter (G4String fileName) |
void | ExportFormatStore (G4String fileName, G4String store) |
void | DrawShadows () |
void | EnableShadows () |
void | DisableShadows () |
void | AddViewHUD () |
void | EnableHUD () |
void | DisableHUD () |
virtual void | AddClipperPlaneWidget (const G4Plane3D &plane) |
void | EnableClipper (const G4Plane3D &plane, G4bool widget) |
void | DisableClipper () |
virtual void | DisableClipperWidget () |
virtual void | AddCutterPlaneWidget (const G4Plane3D &plane) |
void | EnableCutter (const G4Plane3D &plane, G4bool bWidget) |
void | DisableCutter (G4String name) |
virtual void | EnableCutterWidget () |
virtual void | DisableCutterWidget () |
virtual void | AddCameraOrientationWidget () |
virtual void | EnableCameraOrientationWidget () |
virtual void | DisableCameraOrientationWidget () |
void | AddImageOverlay (const G4String &fileName, const G4double alpha, const G4double imageBottomLeft[2], const G4double worldBottomLeft[2], const G4double imageTopRight[2], const G4double worldTopRight[2], const G4double rot[3], const G4double trans[3]) |
void | AddGeometryOverlay (const G4String &fileName, const G4double colour[3], const G4double alpha, const G4String &representation, const G4double scale[3], const G4double rotation[3], const G4double translation[3]) |
void | Render () |
void | StartInteractor () |
void | Print () |
void | SetPolyhedronPipeline (const G4String &t) |
void | ExportView () |
void | SetGeant4View () |
Public Member Functions inherited from G4VViewer | |
G4VViewer (G4VSceneHandler &, G4int id, const G4String &name="") | |
virtual | ~G4VViewer () |
virtual void | ResetView () |
void | RefreshView () |
std::vector< G4ThreeVector > | ComputeFlyThrough (G4Vector3D *) |
SceneTreeScene & | AccessSceneTreeScene () |
G4SceneTreeItem & | AccessSceneTree () |
void | UpdateGUISceneTree () |
const G4String & | GetName () const |
const G4String & | GetShortName () const |
void | SetName (const G4String &) |
G4int | GetViewId () const |
G4VSceneHandler * | GetSceneHandler () const |
const G4ViewParameters & | GetViewParameters () const |
const G4ViewParameters & | GetDefaultViewParameters () const |
G4double | GetKernelVisitElapsedTimeSeconds () const |
virtual const std::vector< G4ModelingParameters::VisAttributesModifier > * | GetPrivateVisAttributesModifiers () const |
void | SetViewParameters (const G4ViewParameters &vp) |
void | SetDefaultViewParameters (const G4ViewParameters &vp) |
const G4VisAttributes * | GetApplicableVisAttributes (const G4VisAttributes *) const |
void | SetNeedKernelVisit (G4bool need) |
void | NeedKernelVisit () |
void | ProcessView () |
Definition at line 50 of file G4VtkQtViewer.hh.
Definition at line 53 of file G4VtkQtViewer.hh.
using G4VtkQtViewer::PVPath = std::vector<PVNodeID> |
Definition at line 54 of file G4VtkQtViewer.hh.
G4VtkQtViewer::G4VtkQtViewer | ( | G4VSceneHandler & | sceneHandler, |
const G4String & | name ) |
Definition at line 69 of file G4VtkQtViewer.cc.
|
override |
Definition at line 81 of file G4VtkQtViewer.cc.
void G4VtkQtViewer::addNonPVSceneTreeElement | ( | const G4String & | model, |
G4Visible & | visible, | ||
int | currentPOIndex ) |
Definition at line 246 of file G4VtkQtViewer.cc.
void G4VtkQtViewer::addPVSceneTreeElement | ( | const G4String & | model, |
G4PhysicalVolumeModel * | pPVModel, | ||
int | currentPOIndex ) |
Definition at line 250 of file G4VtkQtViewer.cc.
|
virtual |
Definition at line 112 of file G4VtkQtViewer.cc.
Referenced by Initialise().
void G4VtkQtViewer::createSceneTreeComponent | ( | ) |
Definition at line 234 of file G4VtkQtViewer.cc.
void G4VtkQtViewer::createSceneTreeWidget | ( | ) |
QTreeWidgetItem * G4VtkQtViewer::createTreeWidgetItem | ( | const PVPath & | fullPath, |
const QString & | name, | ||
int | copyNb, | ||
int | POIndex, | ||
const QString & | logicalName, | ||
Qt::CheckState | state, | ||
QTreeWidgetItem * | parentTreeNode, | ||
const G4Colour & | color ) |
Definition at line 237 of file G4VtkQtViewer.cc.
|
overridevirtual |
Reimplemented from G4VtkViewer.
Definition at line 271 of file G4VtkQtViewer.cc.
|
overridevirtual |
Reimplemented from G4VViewer.
Definition at line 220 of file G4VtkQtViewer.cc.
QString G4VtkQtViewer::getModelShortName | ( | const G4String & | model | ) |
Definition at line 255 of file G4VtkQtViewer.cc.
|
overridevirtual |
Reimplemented from G4VViewer.
Definition at line 87 of file G4VtkQtViewer.cc.
bool G4VtkQtViewer::parseAndInsertInSceneTree | ( | QTreeWidgetItem * | parentItem, |
G4PhysicalVolumeModel * | pPVModel, | ||
unsigned int | fullPathIndex, | ||
const QString & | parentRoot, | ||
unsigned int | currentIndexInTreeSceneHandler, | ||
int | currentPVPOIndex ) |
Definition at line 261 of file G4VtkQtViewer.cc.
|
overridevirtual |
Reimplemented from G4VtkViewer.
Definition at line 278 of file G4VtkQtViewer.cc.