Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4OpenGLImmediateQtViewer.hh>
Public Member Functions | |
G4OpenGLImmediateQtViewer (G4OpenGLImmediateSceneHandler &scene, const G4String &name="") | |
~G4OpenGLImmediateQtViewer () | |
void | Initialise () |
void | initializeGL () |
void | DrawView () |
void | resizeGL (int width, int height) |
void | paintGL () |
void | updateQWidget () |
void | ShowView () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
Public Member Functions inherited from G4OpenGLQtViewer | |
G4OpenGLQtViewer (G4OpenGLSceneHandler &scene) | |
virtual | ~G4OpenGLQtViewer () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual void | updateQWidget ()=0 |
void | updateSceneTreeWidget () |
void | updateViewerPropertiesTableWidget () |
void | updatePickInfosWidget (int, int) |
QString | setEncoderPath (QString path) |
QString | getEncoderPath () |
QString | setTempFolderPath (QString path) |
QString | getTempFolderPath () |
QString | setSaveFileName (QString path) |
QString | getSaveFileName () |
bool | isRecording () |
bool | isStopped () |
bool | isPaused () |
bool | isEncoding () |
bool | isWaiting () |
bool | isFailed () |
void | setWaiting () |
bool | isBadEncoder () |
bool | isBadOutput () |
bool | isBadTmp () |
bool | isSuccess () |
void | setBadTmp () |
void | setBadOutput () |
void | setBadEncoder () |
bool | isReadyToEncode () |
void | resetRecording () |
void | encodeVideo () |
void | stopVideo () |
void | saveVideo () |
bool | generateMpegEncoderParameters () |
void | displayRecordingStatus () |
void | DrawText (const G4Text &) |
void | ResetView () |
void | addPVSceneTreeElement (const G4String &model, G4PhysicalVolumeModel *pPVModel, int currentPVPOIndex) |
void | addNonPVSceneTreeElement (const G4String &model, int currentPVPOIndex, const std::string &modelDescription, const G4Visible &visible) |
bool | isTouchableVisible (int POindex) |
void | clearTreeWidget () |
bool | exportImage (std::string name="", int width=-1, int height=-1) |
void | G4MousePressEvent (QMouseEvent *event) |
void | G4wheelEvent (QWheelEvent *event) |
void | G4keyPressEvent (QKeyEvent *event) |
void | G4keyReleaseEvent (QKeyEvent *event) |
void | G4MouseDoubleClickEvent () |
void | G4MouseReleaseEvent (QMouseEvent *evnt) |
void | G4MouseMoveEvent (QMouseEvent *event) |
Public Member Functions inherited from G4OpenGLViewer | |
void | ClearView () |
void | ClearViewWithoutFlush () |
virtual bool | exportImage (std::string name="", int width=-1, int height=-1) |
bool | setExportImageFormat (std::string format, bool quiet=false) |
Public Member Functions inherited from G4VViewer | |
G4VViewer (G4VSceneHandler &, G4int id, const G4String &name="") | |
virtual | ~G4VViewer () |
virtual void | Initialise () |
virtual void | ResetView () |
virtual void | SetView ()=0 |
virtual void | ClearView ()=0 |
virtual void | DrawView ()=0 |
void | RefreshView () |
virtual void | ShowView () |
virtual void | FinishView () |
std::vector< G4ThreeVector > | ComputeFlyThrough (G4Vector3D *) |
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 () |
Public Member Functions inherited from G4OpenGLImmediateViewer | |
G4OpenGLImmediateViewer (G4OpenGLImmediateSceneHandler &scene) | |
void | ProcessView () |
Protected Member Functions | |
void | showEvent (QShowEvent *event) |
void | wheelEvent (QWheelEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | contextMenuEvent (QContextMenuEvent *e) |
void | keyPressEvent (QKeyEvent *event) |
void | keyReleaseEvent (QKeyEvent *event) |
void | paintEvent (QPaintEvent *event) |
Protected Member Functions inherited from G4OpenGLQtViewer | |
void | CreateGLQtContext () |
virtual void | CreateMainWindow (QGLWidget *, const QString &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
void | G4manageContextMenuEvent (QContextMenuEvent *e) |
void | rotateQtScene (float, float) |
void | rotateQtSceneToggle (float, float) |
void | moveScene (float, float, float, bool) |
void | FinishView () |
void | updateKeyModifierState (const Qt::KeyboardModifiers &) |
void | displaySceneTreeComponent () |
G4Colour | getColorForPoIndex (int poIndex) |
const std::vector< G4ModelingParameters::VisAttributesModifier > * | GetPrivateVisAttributesModifiers () const |
bool | isCurrentWidget () |
void | savePPMToTemp () |
Protected Member Functions inherited from G4OpenGLViewer | |
G4OpenGLViewer (G4OpenGLSceneHandler &scene) | |
virtual | ~G4OpenGLViewer () |
void | SetView () |
void | ResetView () |
virtual void | DrawText (const G4Text &) |
void | ChangePointSize (G4double size) |
void | ChangeLineWidth (G4double width) |
void | HaloingFirstPass () |
void | HaloingSecondPass () |
void | HLRFirstPass () |
void | HLRSecondPass () |
void | HLRThirdPass () |
void | InitializeGLView () |
void | ResizeGLView () |
void | ResizeWindow (unsigned int, unsigned int) |
virtual G4String | Pick (GLdouble x, GLdouble y) |
const std::vector< G4OpenGLViewerPickMap * > & | GetPickDetails (GLdouble x, GLdouble y) |
virtual void | CreateFontLists () |
void | rotateScene (G4double dx, G4double dy) |
void | rotateSceneToggle (G4double dx, G4double dy) |
void | setExportSize (G4int, G4int) |
bool | setExportFilename (G4String name, G4bool inc=true) |
std::string | getRealPrintFilename () |
unsigned int | getWinWidth () const |
unsigned int | getWinHeight () const |
G4bool | sizeHasChanged () |
GLdouble | getSceneNearWidth () |
GLdouble | getSceneFarWidth () |
GLdouble | getSceneDepth () |
void | addExportImageFormat (std::string format) |
G4bool | isGl2psWriting () |
G4bool | isFramebufferReady () |
void | g4GluPickMatrix (GLdouble x, GLdouble y, GLdouble width, GLdouble height, GLint viewport[4]) |
void | g4GluLookAt (GLdouble eyex, GLdouble eyey, GLdouble eyez, GLdouble centerx, GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy, GLdouble upz) |
void | g4GlOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near, GLdouble far) |
void | g4GlFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near, GLdouble far) |
Protected Member Functions inherited from G4VViewer | |
void | SetTouchable (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath) |
void | TouchableSetVisibility (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath, G4bool visibility) |
void | TouchableSetColour (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath, const G4Colour &) |
Definition at line 44 of file G4OpenGLImmediateQtViewer.hh.
G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer | ( | G4OpenGLImmediateSceneHandler & | scene, |
const G4String & | name = "" |
||
) |
Definition at line 47 of file G4OpenGLImmediateQtViewer.cc.
G4OpenGLImmediateQtViewer::~G4OpenGLImmediateQtViewer | ( | ) |
Definition at line 72 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 305 of file G4OpenGLImmediateQtViewer.cc.
|
virtual |
Implements G4VViewer.
Definition at line 154 of file G4OpenGLImmediateQtViewer.cc.
|
virtual |
Reimplemented from G4VViewer.
Definition at line 76 of file G4OpenGLImmediateQtViewer.cc.
void G4OpenGLImmediateQtViewer::initializeGL | ( | ) |
Definition at line 95 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 262 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 267 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
This function was build in order to make a zoom on double clic event. It was think to build a rubberband on the zoom area, but never work fine
Definition at line 289 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 299 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 257 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 294 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 310 of file G4OpenGLImmediateQtViewer.cc.
void G4OpenGLImmediateQtViewer::paintGL | ( | ) |
Definition at line 209 of file G4OpenGLImmediateQtViewer.cc.
void G4OpenGLImmediateQtViewer::resizeGL | ( | int | aWidth, |
int | aHeight | ||
) |
Definition at line 198 of file G4OpenGLImmediateQtViewer.cc.
|
protected |
Definition at line 277 of file G4OpenGLImmediateQtViewer.cc.
|
virtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Reimplemented from G4VViewer.
Definition at line 340 of file G4OpenGLImmediateQtViewer.cc.
|
virtual |
Implements G4OpenGLQtViewer.
Definition at line 322 of file G4OpenGLImmediateQtViewer.cc.
Referenced by DrawView().
|
protected |
Definition at line 272 of file G4OpenGLImmediateQtViewer.cc.