Geant4 11.3.0
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 () |
![]() | |
G4OpenGLViewer (G4OpenGLSceneHandler &scene) | |
virtual | ~G4OpenGLViewer () |
virtual void | SetView () |
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) |
bool | IsGettingPickInfos () const |
![]() | |
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 &) |
Protected Attributes | |
G4UIQt * | fUiQt |
QWidget * | fGLWidget |
int | fRecordFrameNumber |
bool | fHasToRepaint |
bool | fUpdateGLLock |
bool | fQGLWidgetInitialiseCompleted |
bool | fPaintEventLock |
bool | fMouseOnSceneTree |
![]() | |
G4bool | fPrintColour |
G4bool | fVectoredPs |
G4OpenGLSceneHandler & | fOpenGLSceneHandler |
G4Colour | background |
G4bool | transparency_enabled |
G4bool | antialiasing_enabled |
G4bool | haloing_enabled |
G4gl2ps * | fGL2PSAction |
G4double | fRot_sens |
G4double | fPan_sens |
unsigned int | fWinSize_x |
unsigned int | fWinSize_y |
std::vector< std::string > | fExportImageFormatVector |
std::string | fDefaultExportImageFormat |
std::string | fExportImageFormat |
int | fExportFilenameIndex |
G4int | fPrintSizeX |
G4int | fPrintSizeY |
![]() | |
G4VSceneHandler & | fSceneHandler |
G4int | fViewId |
G4String | fName |
G4String | fShortName |
G4ViewParameters | fVP |
G4ViewParameters | fDefaultVP |
G4double | fKernelVisitElapsedTimeSeconds = 999. |
G4SceneTreeItem | fSceneTree |
G4bool | fNeedKernelVisit |
Additional Inherited Members | |
![]() | |
const G4int | fMaxNTouchables = 10000 |
G4bool | fCurtailDescent = false |
Definition at line 89 of file G4OpenGLQtViewer.hh.
G4OpenGLQtViewer::G4OpenGLQtViewer | ( | G4OpenGLSceneHandler & | scene | ) |
Definition at line 212 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer(), and G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer().
|
virtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 490 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::addNonPVSceneTreeElement | ( | const G4String & | model, |
int | currentPVPOIndex, | ||
const std::string & | modelDescription, | ||
const G4Visible & | visible ) |
Definition at line 3351 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtSceneHandler::ExtraPOProcessing().
void G4OpenGLQtViewer::addPVSceneTreeElement | ( | const G4String & | model, |
G4PhysicalVolumeModel * | pPVModel, | ||
int | currentPVPOIndex ) |
Definition at line 2883 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtSceneHandler::ExtraPOProcessing().
void G4OpenGLQtViewer::clearTreeWidget | ( | ) |
Definition at line 3857 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtSceneHandler::SetScene().
|
protected |
|
protectedvirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 104 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::Initialise(), and G4OpenGLStoredQtViewer::Initialise().
void G4OpenGLQtViewer::displayRecordingStatus | ( | ) |
Definition at line 1785 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 4087 of file G4OpenGLQtViewer.cc.
|
virtual |
Reimplemented from G4OpenGLViewer.
Definition at line 2797 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::encodeVideo | ( | ) |
Definition at line 2314 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 2120 of file G4OpenGLQtViewer.cc.
|
protectedvirtual |
Reimplemented from G4VViewer.
Definition at line 1192 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::G4keyPressEvent | ( | QKeyEvent * | event | ) |
Definition at line 1548 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::keyPressEvent(), and G4OpenGLStoredQtViewer::keyPressEvent().
void G4OpenGLQtViewer::G4keyReleaseEvent | ( | QKeyEvent * | event | ) |
Definition at line 1668 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::keyReleaseEvent(), and G4OpenGLStoredQtViewer::keyReleaseEvent().
|
protected |
Definition at line 694 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::contextMenuEvent(), and G4OpenGLStoredQtViewer::contextMenuEvent().
void G4OpenGLQtViewer::G4MouseDoubleClickEvent | ( | ) |
Definition at line 1367 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 1380 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 1208 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::mousePressEvent(), and G4OpenGLStoredQtViewer::mousePressEvent().
void G4OpenGLQtViewer::G4MouseReleaseEvent | ( | QMouseEvent * | evnt | ) |
Definition at line 1264 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::mouseReleaseEvent(), and G4OpenGLStoredQtViewer::mouseReleaseEvent().
void G4OpenGLQtViewer::G4wheelEvent | ( | QWheelEvent * | event | ) |
Definition at line 1537 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::wheelEvent(), and G4OpenGLStoredQtViewer::wheelEvent().
bool G4OpenGLQtViewer::generateMpegEncoderParameters | ( | ) |
Definition at line 2164 of file G4OpenGLQtViewer.cc.
Referenced by saveVideo().
|
protected |
Definition at line 3661 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtViewer::DisplayTimePOColourModification(), and updatePickInfosWidget().
QString G4OpenGLQtViewer::getEncoderPath | ( | ) |
Definition at line 1851 of file G4OpenGLQtViewer.cc.
Referenced by encodeVideo().
|
protectedvirtual |
Reimplemented from G4VViewer.
Definition at line 3680 of file G4OpenGLQtViewer.cc.
QString G4OpenGLQtViewer::getSaveFileName | ( | ) |
Definition at line 2047 of file G4OpenGLQtViewer.cc.
Referenced by encodeVideo(), and generateMpegEncoderParameters().
QString G4OpenGLQtViewer::getTempFolderPath | ( | ) |
Definition at line 2013 of file G4OpenGLQtViewer.cc.
Referenced by startPauseVideo().
bool G4OpenGLQtViewer::isBadEncoder | ( | ) |
Definition at line 1934 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isBadOutput | ( | ) |
Definition at line 1946 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isBadTmp | ( | ) |
Definition at line 1940 of file G4OpenGLQtViewer.cc.
|
protected |
Definition at line 4731 of file G4OpenGLQtViewer.cc.
Referenced by updatePickInfosWidget(), G4OpenGLImmediateQtViewer::updateQWidget(), G4OpenGLStoredQtViewer::updateQWidget(), and updateViewerPropertiesTableWidget().
bool G4OpenGLQtViewer::isEncoding | ( | ) |
Definition at line 1899 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isFailed | ( | ) |
Definition at line 1920 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isPaused | ( | ) |
Definition at line 1892 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isReadyToEncode | ( | ) |
Definition at line 1972 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isRecording | ( | ) |
Definition at line 1885 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isStopped | ( | ) |
Definition at line 1913 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isSuccess | ( | ) |
Definition at line 1927 of file G4OpenGLQtViewer.cc.
bool G4OpenGLQtViewer::isTouchableVisible | ( | int | POindex | ) |
Definition at line 3460 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLStoredQtViewer::POSelected().
bool G4OpenGLQtViewer::isWaiting | ( | ) |
Definition at line 1906 of file G4OpenGLQtViewer.cc.
|
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 1446 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), G4MouseMoveEvent(), G4MousePressEvent(), and G4MouseReleaseEvent().
|
virtual |
Reimplemented from G4VViewer.
Definition at line 519 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::resetRecording | ( | ) |
Definition at line 1979 of file G4OpenGLQtViewer.cc.
Referenced by savePPMToTemp(), and stopVideo().
|
virtual |
Reimplemented from G4OpenGLViewer.
Definition at line 2874 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent().
|
protected |
dx | delta mouse x position |
dy | delta mouse y position |
Definition at line 1478 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), G4MouseMoveEvent(), and G4MouseReleaseEvent().
|
protected |
dx | delta mouse x position |
dy | delta mouse y position |
Definition at line 1496 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent(), G4MouseMoveEvent(), and G4MouseReleaseEvent().
|
protected |
Definition at line 1006 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::saveVideo | ( | ) |
Stop the video. Check all parameters and enable encoder button if all is ok.
Definition at line 1722 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::setBadEncoder | ( | ) |
Definition at line 1953 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::setBadOutput | ( | ) |
Definition at line 1961 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::setBadTmp | ( | ) |
Definition at line 1957 of file G4OpenGLQtViewer.cc.
QString G4OpenGLQtViewer::setEncoderPath | ( | QString | path | ) |
set the new encoder path
Definition at line 1860 of file G4OpenGLQtViewer.cc.
QString G4OpenGLQtViewer::setSaveFileName | ( | QString | path | ) |
set the save file name path
Definition at line 2021 of file G4OpenGLQtViewer.cc.
QString G4OpenGLQtViewer::setTempFolderPath | ( | QString | path | ) |
set the temp folder path
Definition at line 1987 of file G4OpenGLQtViewer.cc.
void G4OpenGLQtViewer::setWaiting | ( | ) |
Definition at line 1966 of file G4OpenGLQtViewer.cc.
|
slot |
Start/Pause the video..
Definition at line 1742 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 1699 of file G4OpenGLQtViewer.cc.
Referenced by G4keyPressEvent().
|
protected |
Definition at line 1674 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 4530 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 4211 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::updateQWidget(), and G4OpenGLStoredQtViewer::updateQWidget().
|
protectedslot |
Update the toolbar Icons/Mouse context menu
Definition at line 4109 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 4223 of file G4OpenGLQtViewer.cc.
Referenced by G4OpenGLImmediateQtViewer::updateQWidget(), and G4OpenGLStoredQtViewer::updateQWidget().
|
protected |
Definition at line 204 of file G4OpenGLQtViewer.hh.
Referenced by CreateMainWindow(), DrawText(), exportImage(), G4keyPressEvent(), G4keyReleaseEvent(), G4manageContextMenuEvent(), G4MouseDoubleClickEvent(), G4MousePressEvent(), G4MouseReleaseEvent(), G4OpenGLQtViewer(), ReadyToDraw(), savePPMToTemp(), and updatePickInfosWidget().
|
protected |
Definition at line 209 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 219 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLStoredQtViewer::CompareForKernelVisit(), and G4OpenGLQtViewer().
|
protected |
Definition at line 212 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer(), G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer(), G4OpenGLImmediateQtViewer::paintGL(), and G4OpenGLStoredQtViewer::paintGL().
|
protected |
Definition at line 211 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 206 of file G4OpenGLQtViewer.hh.
Referenced by displayRecordingStatus(), G4OpenGLQtViewer(), generateMpegEncoderParameters(), savePPMToTemp(), startPauseVideo(), and stopVideo().
|
protected |
Definition at line 203 of file G4OpenGLQtViewer.hh.
Referenced by CreateMainWindow(), G4MouseMoveEvent(), G4MousePressEvent(), G4MouseReleaseEvent(), G4OpenGLQtViewer(), isCurrentWidget(), and updateToolbarAndMouseContextMenu().
|
protected |
Definition at line 210 of file G4OpenGLQtViewer.hh.
Referenced by G4OpenGLImmediateQtViewer::G4OpenGLImmediateQtViewer(), G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer(), G4OpenGLImmediateQtViewer::updateQWidget(), and G4OpenGLStoredQtViewer::updateQWidget().