Generic class for a modeler window.
More...
#include <TYModelerFrame.h>
|
| enum | ModelerViewType {
TopView
, BottomView
, LeftView
, RightView
,
FrontView
, RearView
, PerspView
, FreeView
,
NbOfViews
} |
| |
| enum | ModelerMode {
NoMode = -1
, CameraMode
, CameraZoneMode
, DistanceMode
,
MovingMode
, RotationMode
, EditionMode
, NbOfModelerMode
} |
| |
Generic class for a modeler window.
Definition at line 65 of file TYModelerFrame.h.
◆ ModelerMode
Different editing modes for a site.
| Enumerator |
|---|
| NoMode | |
| CameraMode | |
| CameraZoneMode | |
| DistanceMode | |
| MovingMode | |
| RotationMode | |
| EditionMode | |
| NbOfModelerMode | |
Definition at line 94 of file TYModelerFrame.h.
◆ ModelerViewType
The 5 views of the modeler:
- Top view,
- Left view,
- Front view,
- Perspective view,
- Free camera view.
| Enumerator |
|---|
| TopView | |
| BottomView | |
| LeftView | |
| RightView | |
| FrontView | |
| RearView | |
| PerspView | |
| FreeView | |
| NbOfViews | |
Definition at line 78 of file TYModelerFrame.h.
◆ TYModelerFrame()
| TYModelerFrame::TYModelerFrame |
( |
QWidget * |
parent = 0, |
|
|
const char * |
name = 0, |
|
|
Qt::WindowFlags |
f = Qt::SubWindow |
|
) |
| |
◆ ~TYModelerFrame()
| TYModelerFrame::~TYModelerFrame |
( |
| ) |
|
|
virtual |
◆ aboutToClose
| void TYModelerFrame::aboutToClose |
( |
| ) |
|
|
signal |
Indicates that the widget is about to be closed.
◆ addScreenShotBtn()
| void TYModelerFrame::addScreenShotBtn |
( |
| ) |
|
|
protected |
◆ askForResetResultat()
| bool TYModelerFrame::askForResetResultat |
( |
| ) |
|
Indicates whether the user agrees to erase the result (if necessary) to perform the action.
Definition at line 599 of file TYModelerFrame.cpp.
◆ close
| bool TYModelerFrame::close |
( |
| ) |
|
|
virtualslot |
Overload of the close function of QWidget. Proposes to save on closing.
Definition at line 556 of file TYModelerFrame.cpp.
◆ closeEvent()
| void TYModelerFrame::closeEvent |
( |
QCloseEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ computeCurPos()
| bool TYModelerFrame::computeCurPos |
( |
int |
x, |
|
|
int |
y, |
|
|
float * |
pos |
|
) |
| |
|
virtual |
Computes the 3D scene coordinates from the cursor position. This method can be overridden for altitude calculation.
Definition at line 1612 of file TYModelerFrame.cpp.
◆ copy
| void TYModelerFrame::copy |
( |
| ) |
|
|
slot |
Takes a snapshot of the 3D view to copy it to the clipboard.
Definition at line 972 of file TYModelerFrame.cpp.
◆ editElement
| void TYModelerFrame::editElement |
( |
| ) |
|
|
slot |
Displays the editing properties box of the edited element.
Definition at line 1182 of file TYModelerFrame.cpp.
◆ editorModeChanged
| void TYModelerFrame::editorModeChanged |
( |
int |
mode | ) |
|
|
signal |
Indicates that the editing mode has changed.
◆ eltModified
Indicates that the element has been modified.
◆ enterEvent()
| void TYModelerFrame::enterEvent |
( |
QEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ fit
| void TYModelerFrame::fit |
( |
| ) |
|
|
slot |
Frames the view to see all the graphic objects present in the scene.
Definition at line 1231 of file TYModelerFrame.cpp.
◆ focusInEvent()
| void TYModelerFrame::focusInEvent |
( |
QFocusEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ frameResized
| void TYModelerFrame::frameResized |
( |
| ) |
|
|
signal |
Indicates that the frame has been maximized. Note: a slot named isMaximized already exists.
◆ getActionManager()
◆ getCameraEditor()
◆ getCurrentEditor()
Returns a pointer to the current editor of this modeler.
Definition at line 167 of file TYModelerFrame.h.
◆ getCurrentView()
| int TYModelerFrame::getCurrentView |
( |
| ) |
|
|
inline |
◆ getDefaultZCoord()
| float TYModelerFrame::getDefaultZCoord |
( |
| ) |
|
|
virtual |
Returns default Z coordinate for editors This value will depend on the type of modeler and of the fixed altitude (or not) of the underlying site.
- Returns
Reimplemented in TYSiteModelerFrame.
Definition at line 1652 of file TYModelerFrame.cpp.
◆ getDouble
| double TYModelerFrame::getDouble |
( |
const QString & |
title, |
|
|
const QString & |
txt, |
|
|
double |
min, |
|
|
double |
max, |
|
|
double |
val, |
|
|
bool & |
ok, |
|
|
int |
dec = 2 |
|
) |
| |
|
staticslot |
◆ getElement()
◆ getElementPicker()
Returns the element picker.
- Returns
- The element picker.
Definition at line 152 of file TYModelerFrame.h.
◆ getGlobalBoundingBox()
| OBox TYModelerFrame::getGlobalBoundingBox |
( |
| ) |
|
|
protected |
◆ getPickEditor()
Returns a pointer to the pick editor associated with this modeler.
Definition at line 159 of file TYModelerFrame.h.
◆ getRenderer()
Returns the renderer associated with the view.
Definition at line 126 of file TYModelerFrame.h.
◆ getRenderMode()
◆ getShowGrid()
| bool TYModelerFrame::getShowGrid |
( |
| ) |
|
|
inline |
◆ getShowSources()
| bool TYModelerFrame::getShowSources |
( |
| ) |
|
|
inline |
Indicates whether or not to display point sources.
Definition at line 207 of file TYModelerFrame.h.
◆ getSnapGridActive()
| bool TYModelerFrame::getSnapGridActive |
( |
| ) |
|
|
inline |
Returns the state of magnetic grid activation.
Definition at line 191 of file TYModelerFrame.h.
◆ getView()
◆ getWireframeOnMovingCamera()
| bool TYModelerFrame::getWireframeOnMovingCamera |
( |
| ) |
|
|
inline |
◆ isElementInCurrentCalcul()
| bool TYModelerFrame::isElementInCurrentCalcul |
( |
| ) |
|
Indicates if the edited element is part of the selection of the current calculation of the current project.
Definition at line 561 of file TYModelerFrame.cpp.
◆ isElementInCurrentProjet()
| bool TYModelerFrame::isElementInCurrentProjet |
( |
| ) |
|
Indicates if the edited element is part of the current project. The search is done by parentage.
Definition at line 574 of file TYModelerFrame.cpp.
◆ keyPressEvent()
| void TYModelerFrame::keyPressEvent |
( |
QKeyEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ keyReleaseEvent()
| void TYModelerFrame::keyReleaseEvent |
( |
QKeyEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ leaveEvent()
| void TYModelerFrame::leaveEvent |
( |
QEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ mouseEnter
| void TYModelerFrame::mouseEnter |
( |
| ) |
|
|
signal |
Indicates that the mouse cursor enters the widget.
◆ mouseLeave
| void TYModelerFrame::mouseLeave |
( |
| ) |
|
|
signal |
Indicates that the mouse cursor leaves the widget.
◆ mouseMoveEvent()
| void TYModelerFrame::mouseMoveEvent |
( |
QMouseEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ print
| void TYModelerFrame::print |
( |
| ) |
|
|
slot |
◆ resizeEvent()
| void TYModelerFrame::resizeEvent |
( |
QResizeEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ resizeGrid
| void TYModelerFrame::resizeGrid |
( |
| ) |
|
|
slot |
◆ screenShot
| void TYModelerFrame::screenShot |
( |
| ) |
|
|
slot |
Takes a snapshot of the 3D view to save it in an image file.
Definition at line 957 of file TYModelerFrame.cpp.
◆ setCameraCoordinates
| void TYModelerFrame::setCameraCoordinates |
( |
| ) |
|
|
slot |
◆ setDefaultZCoord()
| void TYModelerFrame::setDefaultZCoord |
( |
float |
fDefaultZCoord | ) |
|
|
inline |
sets default Z coordinate for editors
- Parameters
-
Definition at line 282 of file TYModelerFrame.h.
◆ setEditorMode
| void TYModelerFrame::setEditorMode |
( |
int |
mode | ) |
|
|
virtualslot |
◆ setEditorModeToCamera
| void TYModelerFrame::setEditorModeToCamera |
( |
| ) |
|
|
inlineslot |
◆ setElement()
| void TYModelerFrame::setElement |
( |
LPTYElement |
pElement | ) |
|
|
inline |
◆ setGridLinesActorsVisibility()
| void TYModelerFrame::setGridLinesActorsVisibility |
( |
bool |
showGridXY, |
|
|
bool |
showGridXZ, |
|
|
bool |
showGridZY |
|
) |
| |
|
protected |
◆ setKeepRays
| void TYModelerFrame::setKeepRays |
( |
bool |
keepRays | ) |
|
|
slot |
◆ setRenderMode
◆ setRenderModeSlot
| void TYModelerFrame::setRenderModeSlot |
( |
int |
mode | ) |
|
|
virtualslot |
◆ setSnapGridActive
| void TYModelerFrame::setSnapGridActive |
( |
bool |
state | ) |
|
|
slot |
◆ setViewType
| void TYModelerFrame::setViewType |
( |
int |
view | ) |
|
|
virtualslot |
◆ setWireframeOnMovingCamera
| void TYModelerFrame::setWireframeOnMovingCamera |
( |
bool |
state | ) |
|
|
inlineslot |
◆ showEvent()
| void TYModelerFrame::showEvent |
( |
QShowEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ showGrid
| void TYModelerFrame::showGrid |
( |
bool |
show | ) |
|
|
slot |
◆ showNormals
| void TYModelerFrame::showNormals |
( |
bool |
show | ) |
|
|
slot |
◆ showPlafond
| void TYModelerFrame::showPlafond |
( |
bool |
show | ) |
|
|
slot |
◆ showRays
| void TYModelerFrame::showRays |
( |
bool |
show | ) |
|
|
slot |
◆ showScale
| void TYModelerFrame::showScale |
( |
bool |
show | ) |
|
|
slot |
◆ showSources
| void TYModelerFrame::showSources |
( |
| ) |
|
|
slot |
◆ startMovingRenderMode
| void TYModelerFrame::startMovingRenderMode |
( |
| ) |
|
|
slot |
◆ statusBar()
| QStatusBar* TYModelerFrame::statusBar |
( |
| ) |
|
|
inline |
◆ stopMovingRenderMode
| void TYModelerFrame::stopMovingRenderMode |
( |
| ) |
|
|
slot |
◆ updateAxes
| void TYModelerFrame::updateAxes |
( |
| ) |
|
|
slot |
Updates the orientation of the axes based on the position of the camera.
Definition at line 1385 of file TYModelerFrame.cpp.
◆ updateCurPosInfo
| void TYModelerFrame::updateCurPosInfo |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
slot |
◆ updateElementGraphic
| void TYModelerFrame::updateElementGraphic |
( |
bool |
force = false | ) |
|
|
slot |
Updates the graphical structure of the element associated with this modeler.
- Parameters
-
| force | Force the update even if the element is not marked as modified. |
Definition at line 1765 of file TYModelerFrame.cpp.
◆ updateGrid
| void TYModelerFrame::updateGrid |
( |
| ) |
|
|
slot |
◆ updatePreferences
| void TYModelerFrame::updatePreferences |
( |
| ) |
|
|
virtualslot |
◆ updateScale
| void TYModelerFrame::updateScale |
( |
| ) |
|
|
slot |
◆ updateView
| void TYModelerFrame::updateView |
( |
bool |
clipping = true, |
|
|
bool |
axesAndGrid = true |
|
) |
| |
|
virtualslot |
Updates the graphics view as well as the axes and the grid.
- Parameters
-
| clipping | To update the camera's clipping range. |
| axesAndGrid | To update the axes and the grid. |
Definition at line 1352 of file TYModelerFrame.cpp.
◆ viewTypeChanged
| void TYModelerFrame::viewTypeChanged |
( |
int |
| ) |
|
|
signal |
Indicates that the view type has changed.
◆ wheelEvent()
| void TYModelerFrame::wheelEvent |
( |
QWheelEvent * |
pEvent | ) |
|
|
protectedvirtual |
◆ _actionManager
◆ _curViewType
| int TYModelerFrame::_curViewType |
|
protected |
◆ _defaultZCoord
| float TYModelerFrame::_defaultZCoord |
|
protected |
◆ _editorModeAccepted
| bool TYModelerFrame::_editorModeAccepted |
|
protected |
Indicates if the editing mode has been processed.
Definition at line 650 of file TYModelerFrame.h.
◆ _firstTimeShown
| bool TYModelerFrame::_firstTimeShown |
|
private |
◆ _gridDimX
| float TYModelerFrame::_gridDimX |
|
protected |
◆ _gridDimY
| float TYModelerFrame::_gridDimY |
|
protected |
◆ _gridMagnStep
| float TYModelerFrame::_gridMagnStep |
|
protected |
◆ _gridStep
| float TYModelerFrame::_gridStep |
|
protected |
◆ _lastEditorMode
| int TYModelerFrame::_lastEditorMode |
|
private |
◆ _lastRenderMode
◆ _pCameraEditor
◆ _pCameraZoneEditor
◆ _pCopyBtn
| QToolButton* TYModelerFrame::_pCopyBtn |
|
protected |
◆ _pCtrlLayout
| QBoxLayout* TYModelerFrame::_pCtrlLayout |
|
protected |
◆ _pCurrentEditor
◆ _pDistanceEditor
◆ _pElement
◆ _pGridBtn
| QToolButton* TYModelerFrame::_pGridBtn |
|
private |
◆ _pLayout
| QGridLayout* TYModelerFrame::_pLayout |
|
private |
◆ _pLightElement
◆ _pOGLCameras
◆ _pOGLGridElement
◆ _pOGLLineElementAxeX
◆ _pOGLLineElementAxeY
◆ _pOGLLineElementAxeZ
◆ _pOGLLineElementX
◆ _pOGLLineElementY
◆ _pOGLScalarBarElement
◆ _pOGLTextElement
◆ _pOGLTextElementLabelX
◆ _pOGLTextElementLabelY
◆ _pOGLTextElementLabelZ
◆ _pPickEditor
◆ _pPicker
◆ _pPositionEditor
◆ _pRenderModeBox
| QComboBox* TYModelerFrame::_pRenderModeBox |
|
private |
◆ _pScreenShotBtn
| QToolButton* TYModelerFrame::_pScreenShotBtn |
|
protected |
◆ _pSetCameraCoordinatesBtn
| QToolButton* TYModelerFrame::_pSetCameraCoordinatesBtn |
|
protected |
◆ _pShowNormalsBtn
| QToolButton* TYModelerFrame::_pShowNormalsBtn |
|
private |
◆ _pShowPlafondBtn
| QToolButton* TYModelerFrame::_pShowPlafondBtn |
|
private |
Button for displaying the ceiling of buildings.
Definition at line 560 of file TYModelerFrame.h.
◆ _pShowRaysBtn
| QToolButton* TYModelerFrame::_pShowRaysBtn |
|
private |
Button for displaying rays calculated by ray tracing.
Definition at line 566 of file TYModelerFrame.h.
◆ _pShowScale
| QToolButton* TYModelerFrame::_pShowScale |
|
private |
◆ _pShowSourcesBtn
| QToolButton* TYModelerFrame::_pShowSourcesBtn |
|
private |
◆ _pSnapGridBtn
| QToolButton* TYModelerFrame::_pSnapGridBtn |
|
private |
◆ _pStatusBar
| QStatusBar* TYModelerFrame::_pStatusBar |
|
private |
◆ _pView
◆ _pViewTypeBox
| QComboBox* TYModelerFrame::_pViewTypeBox |
|
protected |
◆ _showGrid
| bool TYModelerFrame::_showGrid |
|
private |
◆ _showNormals
| bool TYModelerFrame::_showNormals |
|
private |
Indicates whether or not to display or hide normals.
Definition at line 557 of file TYModelerFrame.h.
◆ _showPlafond
| bool TYModelerFrame::_showPlafond |
|
private |
Indicates whether or not to display or hide the ceiling of buildings.
Definition at line 563 of file TYModelerFrame.h.
◆ _showRays
| bool TYModelerFrame::_showRays |
|
private |
◆ _showScale
| bool TYModelerFrame::_showScale |
|
private |
Indicates whether to display the scale or not.
Definition at line 632 of file TYModelerFrame.h.
◆ _showSources
| bool TYModelerFrame::_showSources |
|
private |
Indicates whether or not to display point sources.
Definition at line 551 of file TYModelerFrame.h.
◆ _snapGridActive
| bool TYModelerFrame::_snapGridActive |
|
private |
Indicates whether or not to activate the magnetic grid.
Definition at line 545 of file TYModelerFrame.h.
◆ _wireframeOnMovingCamera
| bool TYModelerFrame::_wireframeOnMovingCamera |
|
private |
Indicates whether to switch to wireframe rendering during camera movement.
Definition at line 575 of file TYModelerFrame.h.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan/checkouts/issue_894/Tympan/gui/app/TYModelerFrame.h
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan/checkouts/issue_894/Tympan/gui/app/TYModelerFrame.cpp