Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <G4OpenGLQtViewer.hh>
Public Slots | |
void | startPauseVideo () |
Protected Slots | |
void | updateToolbarAndMouseContextMenu () |
Protected Member Functions | |
void | CreateGLQtContext () |
virtual void | CreateMainWindow (G4QGLWidgetType *, 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 () |
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 89 of file G4OpenGLQtViewer.hh.
G4OpenGLQtViewer::G4OpenGLQtViewer | ( | G4OpenGLSceneHandler & | scene | ) |
Definition at line 217 of file G4OpenGLQtViewer.cc.
|
virtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 502 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::addNonPVSceneTreeElement | ( | const G4String & | model, |
int | currentPVPOIndex, | ||
const std::string & | modelDescription, | ||
const G4Visible & | visible ) |
Definition at line 3263 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtSceneHandler::ExtraPOProcessing().
void G4OpenGLQtViewer::addPVSceneTreeElement | ( | const G4String & | model, |
G4PhysicalVolumeModel * | pPVModel, | ||
int | currentPVPOIndex ) |
Definition at line 2795 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtSceneHandler::ExtraPOProcessing().
void G4OpenGLQtViewer::clearTreeWidget | ( | ) |
Definition at line 3769 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtSceneHandler::ClearStore(), and G4OpenGLStoredQtSceneHandler::SetScene().
|
protected |
|
protectedvirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 115 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::Initialise(), and G4OpenGLStoredQtViewer::Initialise().
void G4OpenGLQtViewer::displayRecordingStatus | ( | ) |
Definition at line 1782 of file G4OpenGLQtViewer.cc.
Referenced by setBadEncoder(), setBadOutput(), setBadTmp(), and setWaiting().
|
protected |
Should replace actual tree by the one in this class and update tree
Definition at line 3999 of file G4OpenGLQtViewer.cc.
|
virtual |
Reimplemented from G4OpenGLViewer.
Definition at line 2711 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::encodeVideo | ( | ) |
Definition at line 2311 of file G4OpenGLQtViewer.cc.
Referenced by saveVideo().
|
virtual |
Export image. Try to get the format according to the file extention. If not present, the last one choosen by /vis/ogl/set/exportFormat If not, will take the default format : eps Best format actually available is pdf (vectored and allow transparency) If name is not set, it will take the default name value given by /vis/ogl/set/printFilename
Reimplemented from G4OpenGLViewer.
Definition at line 2117 of file G4OpenGLQtViewer.cc.
|
protectedvirtual |
Reimplemented from G4VViewer.
Definition at line 1195 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::G4keyPressEvent | ( | QKeyEvent * | event | ) |
Definition at line 1545 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::keyPressEvent(), and G4OpenGLStoredQtViewer::keyPressEvent().
void G4OpenGLQtViewer::G4keyReleaseEvent | ( | QKeyEvent * | event | ) |
Definition at line 1665 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::keyReleaseEvent(), and G4OpenGLStoredQtViewer::keyReleaseEvent().
|
protected |
Definition at line 697 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::contextMenuEvent(), and G4OpenGLStoredQtViewer::contextMenuEvent().
void G4OpenGLQtViewer::G4MouseDoubleClickEvent | ( | ) |
Definition at line 1364 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::mouseDoubleClickEvent(), and G4OpenGLStoredQtViewer::mouseDoubleClickEvent().
void G4OpenGLQtViewer::G4MouseMoveEvent | ( | QMouseEvent * | evnt | ) |
pos_x | mouse x position |
pos_y | mouse y position |
mButtons | mouse button active |
mAutoMove | true: apply this move till another evnt came, false :one time move |
Definition at line 1377 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::mouseMoveEvent(), and G4OpenGLStoredQtViewer::mouseMoveEvent().
void G4OpenGLQtViewer::G4MousePressEvent | ( | QMouseEvent * | evnt | ) |
Save the current mouse press point
p | mouse click point |
Definition at line 1211 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::mousePressEvent(), and G4OpenGLStoredQtViewer::mousePressEvent().
void G4OpenGLQtViewer::G4MouseReleaseEvent | ( | QMouseEvent * | evnt | ) |
Definition at line 1267 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::mouseReleaseEvent(), and G4OpenGLStoredQtViewer::mouseReleaseEvent().
void G4OpenGLQtViewer::G4wheelEvent | ( | QWheelEvent * | event | ) |
Definition at line 1534 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::wheelEvent(), and G4OpenGLStoredQtViewer::wheelEvent().
bool G4OpenGLQtViewer::generateMpegEncoderParameters | ( | ) |
Definition at line 2161 of file G4OpenGLQtViewer.cc.
Referenced by saveVideo().
|
protected |
Definition at line 3573 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtViewer::DisplayTimePOColourModification(), and updatePickInfosWidget().
QString G4OpenGLQtViewer::getEncoderPath | ( | ) |
Definition at line 1848 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::checkEncoderSwParameters(), encodeVideo(), and G4OpenGLQtMovieDialog::G4OpenGLQtMovieDialog().
|
protectedvirtual |
Reimplemented from G4VViewer.
Definition at line 3592 of file G4OpenGLQtViewer.cc.
QString G4OpenGLQtViewer::getSaveFileName | ( | ) |
Definition at line 2044 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::checkSaveFileNameParameters(), encodeVideo(), and generateMpegEncoderParameters().
QString G4OpenGLQtViewer::getTempFolderPath | ( | ) |
Definition at line 2010 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::checkTempFolderParameters(), G4OpenGLQtMovieDialog::G4OpenGLQtMovieDialog(), and startPauseVideo().
bool G4OpenGLQtViewer::isBadEncoder | ( | ) |
Definition at line 1931 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::setRecordingStatus().
bool G4OpenGLQtViewer::isBadOutput | ( | ) |
Definition at line 1943 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::setRecordingStatus().
bool G4OpenGLQtViewer::isBadTmp | ( | ) |
Definition at line 1937 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::setRecordingStatus().
|
protected |
Definition at line 4637 of file G4OpenGLQtViewer.cc.
Referenced by updatePickInfosWidget(), G4OpenGLImmediateQtViewer::updateQWidget(), G4OpenGLStoredQtViewer::updateQWidget(), and updateViewerPropertiesTableWidget().
bool G4OpenGLQtViewer::isEncoding | ( | ) |
Definition at line 1896 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isFailed | ( | ) |
Definition at line 1917 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::setRecordingStatus().
bool G4OpenGLQtViewer::isPaused | ( | ) |
Definition at line 1889 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::save(), and G4OpenGLQtMovieDialog::setRecordingStatus().
bool G4OpenGLQtViewer::isReadyToEncode | ( | ) |
Definition at line 1969 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::checkEncoderSwParameters().
bool G4OpenGLQtViewer::isRecording | ( | ) |
Definition at line 1882 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::save(), and G4OpenGLQtMovieDialog::setRecordingStatus().
bool G4OpenGLQtViewer::isStopped | ( | ) |
Definition at line 1910 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::save(), and G4OpenGLQtMovieDialog::setRecordingStatus().
bool G4OpenGLQtViewer::isSuccess | ( | ) |
Definition at line 1924 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::setRecordingStatus().
bool G4OpenGLQtViewer::isTouchableVisible | ( | int | POindex | ) |
Definition at line 3372 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtViewer::POSelected().
bool G4OpenGLQtViewer::isWaiting | ( | ) |
Definition at line 1903 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::setRecordingStatus().
|
protected |
Move the scene of dx, dy, dz values.
dx | delta mouse x position |
dy | delta mouse y position |
mouseMove | : true if event comes from a mouse move, false if event comes from key action |
Definition at line 1443 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), G4MouseMoveEvent(), G4MousePressEvent(), and G4MouseReleaseEvent().
void G4OpenGLQtViewer::resetRecording | ( | ) |
Definition at line 1976 of file G4OpenGLQtViewer.cc.
Referenced by savePPMToTemp(), and stopVideo().
|
virtual |
Reimplemented from G4VViewer.
Definition at line 2786 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent().
|
protected |
dx | delta mouse x position |
dy | delta mouse y position |
Definition at line 1475 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), G4MouseMoveEvent(), and G4MouseReleaseEvent().
|
protected |
dx | delta mouse x position |
dy | delta mouse y position |
Definition at line 1493 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), G4MouseMoveEvent(), and G4MouseReleaseEvent().
|
protected |
Definition at line 1009 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::saveVideo | ( | ) |
Stop the video. Check all parameters and enable encoder button if all is ok.
Definition at line 1719 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::save().
void G4OpenGLQtViewer::setBadEncoder | ( | ) |
Definition at line 1950 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::setBadOutput | ( | ) |
Definition at line 1958 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::setBadTmp | ( | ) |
Definition at line 1954 of file G4OpenGLQtViewer.cc.
QString G4OpenGLQtViewer::setEncoderPath | ( | QString | path | ) |
set the new encoder path
Definition at line 1857 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::checkEncoderSwParameters().
QString G4OpenGLQtViewer::setSaveFileName | ( | QString | path | ) |
set the save file name path
Definition at line 2018 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::checkSaveFileNameParameters().
QString G4OpenGLQtViewer::setTempFolderPath | ( | QString | path | ) |
set the temp folder path
Definition at line 1984 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLQtMovieDialog::checkTempFolderParameters().
void G4OpenGLQtViewer::setWaiting | ( | ) |
Definition at line 1963 of file G4OpenGLQtViewer.cc.
|
slot |
Start/Pause the video..
Definition at line 1739 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent().
void G4OpenGLQtViewer::stopVideo | ( | ) |
Stop the video. Check all parameters and enable encoder button if all is ok.
Definition at line 1696 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), and G4OpenGLQtMovieDialog::stopFinishClose().
|
protected |
Definition at line 1671 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), and G4MouseMoveEvent().
void G4OpenGLQtViewer::updatePickInfosWidget | ( | int | aX, |
int | aY ) |
Update the pick infos component widget
Definition at line 4442 of file G4OpenGLQtViewer.cc.
Referenced by G4MouseReleaseEvent().
|
pure virtual |
Implemented in G4OpenGLImmediateQtViewer, and G4OpenGLStoredQtViewer.
Referenced by G4keyPressEvent(), G4MousePressEvent(), G4wheelEvent(), moveScene(), rotateQtScene(), rotateQtSceneToggle(), and updatePickInfosWidget().
void G4OpenGLQtViewer::updateSceneTreeWidget | ( | ) |
Update the scene tree widget
Definition at line 4123 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::updateQWidget(), and G4OpenGLStoredQtViewer::updateQWidget().
|
protectedslot |
Update the toolbar Icons/Mouse context menu
Definition at line 4021 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::paintGL(), and G4OpenGLStoredQtViewer::paintGL().
void G4OpenGLQtViewer::updateViewerPropertiesTableWidget | ( | ) |
Update the viewer properties component widget Clear it only if the number of command is less than the previous table widget row count
Definition at line 4135 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::updateQWidget(), and G4OpenGLStoredQtViewer::updateQWidget().
|
protected |
Definition at line 193 of file G4OpenGLQtViewer.hh.
Referenced by CreateMainWindow(), DrawText(), exportImage(), G4keyPressEvent(), G4keyReleaseEvent(), G4manageContextMenuEvent(), G4MouseDoubleClickEvent(), G4MousePressEvent(), G4MouseReleaseEvent(), and savePPMToTemp().
|
protected |
Definition at line 197 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer(), G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer(), G4OpenGLImmediateQtViewer::initializeGL(), G4OpenGLStoredQtViewer::initializeGL(), G4OpenGLImmediateQtViewer::paintEvent(), G4OpenGLStoredQtViewer::paintEvent(), G4OpenGLImmediateQtViewer::paintGL(), G4OpenGLStoredQtViewer::paintGL(), G4OpenGLImmediateQtViewer::resizeGL(), G4OpenGLStoredQtViewer::resizeGL(), G4OpenGLImmediateQtViewer::showEvent(), G4OpenGLStoredQtViewer::showEvent(), G4OpenGLImmediateQtViewer::ShowView(), G4OpenGLImmediateQtViewer::updateQWidget(), and G4OpenGLStoredQtViewer::updateQWidget().
|
protected |
Definition at line 206 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLStoredQtViewer::CompareForKernelVisit().
|
protected |
Definition at line 200 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer(), G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer(), G4OpenGLImmediateQtViewer::paintGL(), and G4OpenGLStoredQtViewer::paintGL().
|
protected |
Definition at line 199 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer(), G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer(), G4OpenGLImmediateQtViewer::Initialise(), G4OpenGLStoredQtViewer::Initialise(), G4OpenGLImmediateQtViewer::paintEvent(), G4OpenGLStoredQtViewer::paintEvent(), G4OpenGLImmediateQtViewer::paintGL(), G4OpenGLStoredQtViewer::paintGL(), G4OpenGLImmediateQtViewer::showEvent(), and G4OpenGLStoredQtViewer::showEvent().
|
protected |
Definition at line 195 of file G4OpenGLQtViewer.hh.
Referenced by displayRecordingStatus(), generateMpegEncoderParameters(), savePPMToTemp(), startPauseVideo(), and stopVideo().
|
protected |
Definition at line 192 of file G4OpenGLQtViewer.hh.
Referenced by CreateMainWindow(), G4MouseMoveEvent(), G4MousePressEvent(), G4MouseReleaseEvent(), isCurrentWidget(), and updateToolbarAndMouseContextMenu().
|
protected |
Definition at line 198 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer(), G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer(), G4OpenGLImmediateQtViewer::updateQWidget(), and G4OpenGLStoredQtViewer::updateQWidget().