Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TYModelerFrame Class Reference

Generic class for a modeler window. More...

#include <TYModelerFrame.h>

Inheritance diagram for TYModelerFrame:
Inheritance graph
[legend]
Collaboration diagram for TYModelerFrame:
Collaboration graph
[legend]

Public Types

enum  ModelerViewType {
  TopView , BottomView , LeftView , RightView ,
  FrontView , RearView , PerspView , FreeView ,
  NbOfViews
}
 
enum  ModelerMode {
  NoMode = -1 , CameraMode , CameraZoneMode , DistanceMode ,
  MovingMode , RotationMode , EditionMode , NbOfModelerMode
}
 

Public Slots

virtual void setViewType (int view)
 
virtual void setRenderModeSlot (int mode)
 
virtual void setRenderMode (TYOpenGLRenderer::RenderMode mode, bool bUpdateGL)
 
virtual void setEditorMode (int mode)
 
void setEditorModeToCamera ()
 
void showGrid (bool show)
 
void showNormals (bool show)
 
void showPlafond (bool show)
 
void showSources ()
 
void showRays (bool show)
 
void setKeepRays (bool keepRays)
 
void setSnapGridActive (bool state)
 
void setCameraCoordinates ()
 
void screenShot ()
 
virtual void updateView (bool clipping=true, bool axesAndGrid=true)
 
void updateAxes ()
 
void updateCurPosInfo (int x, int y)
 
void updateGrid ()
 
void updateElementGraphic (bool force=false)
 
void print ()
 
void copy ()
 
void editElement ()
 
void fit ()
 
virtual void updatePreferences ()
 
void resizeGrid ()
 
virtual bool close ()
 
void setWireframeOnMovingCamera (bool state)
 
void startMovingRenderMode ()
 
void stopMovingRenderMode ()
 
void updateScale ()
 
void showScale (bool show)
 
static double getDouble (const QString &title, const QString &txt, double min, double max, double val, bool &ok, int dec=2)
 

Signals

void aboutToClose ()
 
void viewTypeChanged (int)
 
void editorModeChanged (int mode)
 
void eltModified (LPTYElement pElt)
 
void mouseEnter ()
 
void mouseLeave ()
 
void frameResized ()
 

Public Member Functions

 TYModelerFrame (QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::SubWindow)
 
virtual ~TYModelerFrame ()
 
TYRenderWindowInteractorgetView ()
 
TYOpenGLRenderergetRenderer ()
 
int getCurrentView ()
 
TYOpenGLRenderer::RenderMode getRenderMode ()
 
TYElementPickergetElementPicker ()
 
TYPickEditorgetPickEditor ()
 
TYAbstractSceneEditorgetCurrentEditor ()
 
TYCameraEditorgetCameraEditor ()
 
QStatusBar * statusBar ()
 
bool getSnapGridActive ()
 
TYActionManagergetActionManager ()
 
bool getShowSources ()
 
bool getShowGrid ()
 
bool getWireframeOnMovingCamera ()
 
void setElement (LPTYElement pElement)
 
LPTYElement getElement ()
 
bool isElementInCurrentCalcul ()
 
bool isElementInCurrentProjet ()
 
bool askForResetResultat ()
 
virtual bool computeCurPos (int x, int y, float *pos)
 
virtual float getDefaultZCoord ()
 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. More...
 
void setDefaultZCoord (float fDefaultZCoord)
 sets default Z coordinate for editors More...
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *pEvent)
 
virtual void keyReleaseEvent (QKeyEvent *pEvent)
 
virtual void mouseMoveEvent (QMouseEvent *pEvent)
 
virtual void wheelEvent (QWheelEvent *pEvent)
 
virtual void resizeEvent (QResizeEvent *pEvent)
 
virtual void focusInEvent (QFocusEvent *pEvent)
 
virtual void showEvent (QShowEvent *pEvent)
 
virtual void closeEvent (QCloseEvent *pEvent)
 
virtual void enterEvent (QEvent *pEvent)
 
virtual void leaveEvent (QEvent *pEvent)
 
void setGridLinesActorsVisibility (bool showGridXY, bool showGridXZ, bool showGridZY)
 
OBox getGlobalBoundingBox ()
 
void addScreenShotBtn ()
 

Protected Attributes

TYCameraEditor_pCameraEditor
 Manages the camera. More...
 
QBoxLayout * _pCtrlLayout
 The layout where buttons, etc., are located. More...
 
QComboBox * _pViewTypeBox
 Combo box for selecting the current camera. More...
 
TYRenderWindowInteractor_pView
 The graphics window. More...
 
int _curViewType
 The type of the current view. More...
 
bool _editorModeAccepted
 Indicates if the editing mode has been processed. More...
 
TYAbstractSceneEditor_pCurrentEditor
 The current editor. More...
 
TYPickEditor_pPickEditor
 Manages the context menu. More...
 
OGLCamera_pOGLCameras [NbOfViews]
 Cameras for each type of view. More...
 
float _gridStep
 Grid step. More...
 
float _gridMagnStep
 Magnetic grid step. More...
 
float _gridDimX
 Grid dimension in X. More...
 
float _gridDimY
 Grid dimension in Y. More...
 
QToolButton * _pSetCameraCoordinatesBtn
 Button to specify camera coordinates. More...
 
QToolButton * _pScreenShotBtn
 Button for saving a screenshot. More...
 
QToolButton * _pCopyBtn
 Button for taking a screenshot. More...
 
LPTYElement _pElement
 A pointer to the element to edit. More...
 
float _defaultZCoord
 Default Z coordinate for editors. More...
 

Private Attributes

QGridLayout * _pLayout
 The layout of this frame. More...
 
QComboBox * _pRenderModeBox
 Combo box for rendering mode. More...
 
QToolButton * _pSnapGridBtn
 Button to activate the magnetic grid. More...
 
bool _snapGridActive
 Indicates whether or not to activate the magnetic grid. More...
 
QToolButton * _pShowSourcesBtn
 Button for displaying point sources. More...
 
bool _showSources
 Indicates whether or not to display point sources. More...
 
QToolButton * _pShowNormalsBtn
 Button for displaying normals. More...
 
bool _showNormals
 Indicates whether or not to display or hide normals. More...
 
QToolButton * _pShowPlafondBtn
 Button for displaying the ceiling of buildings. More...
 
bool _showPlafond
 Indicates whether or not to display or hide the ceiling of buildings. More...
 
QToolButton * _pShowRaysBtn
 Button for displaying rays calculated by ray tracing. More...
 
bool _showRays
 Indicates whether or not to display rays. More...
 
QStatusBar * _pStatusBar
 Status bar. More...
 
bool _wireframeOnMovingCamera
 Indicates whether to switch to wireframe rendering during camera movement. More...
 
TYOpenGLRenderer::RenderMode _lastRenderMode
 The last current rendering mode. More...
 
int _lastEditorMode
 To keep track of the last editing mode. More...
 
TYElementPicker_pPicker
 For picking. More...
 
TYDistanceEditor_pDistanceEditor
 Tools for measuring. More...
 
TYPositionEditor_pPositionEditor
 Editor for moving elements. More...
 
TYCameraZoneEditor_pCameraZoneEditor
 Editor to define a zoom area for the camera. More...
 
OGLTextElement_pOGLTextElement
 2D label to display the type of view. More...
 
OGLLineElement_pOGLLineElementAxeX
 Geometry of the Axes. More...
 
OGLLineElement_pOGLLineElementAxeY
 
OGLLineElement_pOGLLineElementAxeZ
 
OGLTextElement_pOGLTextElementLabelX
 
OGLTextElement_pOGLTextElementLabelY
 
OGLTextElement_pOGLTextElementLabelZ
 
QToolButton * _pGridBtn
 Button to activate the grid. More...
 
OGLLineElement_pOGLLineElementX
 X and Y axes of the grid. More...
 
OGLLineElement_pOGLLineElementY
 
bool _showGrid
 Indicates whether to display the grid or not. More...
 
TYActionManager _actionManager
 For managing the history. More...
 
OGLLightElement_pLightElement
 The default light. More...
 
OGLGridElement_pOGLGridElement
 
OGLScalarBarElement_pOGLScalarBarElement
 Graphic object for representing the scale. More...
 
QToolButton * _pShowScale
 Button for displaying the scale. More...
 
bool _showScale
 Indicates whether to display the scale or not. More...
 
bool _firstTimeShown
 

Detailed Description

Generic class for a modeler window.

Definition at line 65 of file TYModelerFrame.h.

Member Enumeration Documentation

◆ 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.

Constructor & Destructor Documentation

◆ TYModelerFrame()

TYModelerFrame::TYModelerFrame ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WindowFlags  f = Qt::SubWindow 
)

Default constructor.

Definition at line 101 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ ~TYModelerFrame()

TYModelerFrame::~TYModelerFrame ( )
virtual

Destructor.

Definition at line 481 of file TYModelerFrame.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ aboutToClose

void TYModelerFrame::aboutToClose ( )
signal

Indicates that the widget is about to be closed.

Here is the caller graph for this function:

◆ addScreenShotBtn()

void TYModelerFrame::addScreenShotBtn ( )
protected

Definition at line 545 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ askForResetResultat()

bool TYModelerFrame::askForResetResultat ( )

Indicates whether the user agrees to erase the result (if necessary) to perform the action.

Definition at line 595 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ close

bool TYModelerFrame::close ( )
virtualslot

Overload of the close function of QWidget. Proposes to save on closing.

Definition at line 552 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ closeEvent()

void TYModelerFrame::closeEvent ( QCloseEvent *  pEvent)
protectedvirtual

Definition at line 1690 of file TYModelerFrame.cpp.

◆ 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 1608 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy

void TYModelerFrame::copy ( )
slot

Takes a snapshot of the 3D view to copy it to the clipboard.

Definition at line 968 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ editElement

void TYModelerFrame::editElement ( )
slot

Displays the editing properties box of the edited element.

Definition at line 1178 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ editorModeChanged

void TYModelerFrame::editorModeChanged ( int  mode)
signal

Indicates that the editing mode has changed.

Here is the caller graph for this function:

◆ eltModified

void TYModelerFrame::eltModified ( LPTYElement  pElt)
signal

Indicates that the element has been modified.

Here is the caller graph for this function:

◆ enterEvent()

void TYModelerFrame::enterEvent ( QEvent *  pEvent)
protectedvirtual

Definition at line 1700 of file TYModelerFrame.cpp.

◆ fit

void TYModelerFrame::fit ( )
slot

Frames the view to see all the graphic objects present in the scene.

Definition at line 1227 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ focusInEvent()

void TYModelerFrame::focusInEvent ( QFocusEvent *  pEvent)
protectedvirtual

Reimplemented in TYFaceModelerFrame.

Definition at line 1675 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ frameResized

void TYModelerFrame::frameResized ( )
signal

Indicates that the frame has been maximized. Note: a slot named isMaximized already exists.

Here is the caller graph for this function:

◆ getActionManager()

TYActionManager* TYModelerFrame::getActionManager ( )
inline

Returns the action manager (history).

Definition at line 199 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getCameraEditor()

TYCameraEditor* TYModelerFrame::getCameraEditor ( )
inline

Returns a pointer to the camera editor.

Definition at line 175 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getCurrentEditor()

TYAbstractSceneEditor* TYModelerFrame::getCurrentEditor ( )
inline

Returns a pointer to the current editor of this modeler.

Definition at line 167 of file TYModelerFrame.h.

◆ getCurrentView()

int TYModelerFrame::getCurrentView ( )
inline

Returns the type of the current view.

Definition at line 134 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ 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 1648 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ getDouble

double TYModelerFrame::getDouble ( const QString &  title,
const QString &  txt,
double  min,
double  max,
double  val,
bool &  ok,
int  dec = 2 
)
staticslot

Opens a window asking the user to enter a double.

Definition at line 2188 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ getElement()

LPTYElement TYModelerFrame::getElement ( )
inline

Set/Get the element to edit.

Definition at line 240 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getElementPicker()

TYElementPicker* TYModelerFrame::getElementPicker ( )
inline

Returns the element picker.

Returns
The element picker.

Definition at line 152 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getGlobalBoundingBox()

OBox TYModelerFrame::getGlobalBoundingBox ( )
protected

Definition at line 1209 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPickEditor()

TYPickEditor* TYModelerFrame::getPickEditor ( )
inline

Returns a pointer to the pick editor associated with this modeler.

Definition at line 159 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getRenderer()

TYOpenGLRenderer* TYModelerFrame::getRenderer ( )
inline

Returns the renderer associated with the view.

Definition at line 126 of file TYModelerFrame.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRenderMode()

TYOpenGLRenderer::RenderMode TYModelerFrame::getRenderMode ( )
inline

Returns the active rendering mode.

Definition at line 142 of file TYModelerFrame.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getShowGrid()

bool TYModelerFrame::getShowGrid ( )
inline

Indicates the state of grid visualization.

Definition at line 215 of file TYModelerFrame.h.

◆ 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.

Here is the caller graph for this function:

◆ getView()

TYRenderWindowInteractor* TYModelerFrame::getView ( )
inline

Returns the graphics view.

Definition at line 118 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getWireframeOnMovingCamera()

bool TYModelerFrame::getWireframeOnMovingCamera ( )
inline

Returns the state of the special rendering mode during camera movement.

See also
_wireframeOnMovingCamera

Definition at line 225 of file TYModelerFrame.h.

◆ 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 557 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isElementInCurrentProjet()

bool TYModelerFrame::isElementInCurrentProjet ( )

Indicates if the edited element is part of the current project. The search is done by parentage.

Definition at line 570 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ keyPressEvent()

void TYModelerFrame::keyPressEvent ( QKeyEvent *  pEvent)
protectedvirtual

Definition at line 1491 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ keyReleaseEvent()

void TYModelerFrame::keyReleaseEvent ( QKeyEvent *  pEvent)
protectedvirtual

Definition at line 1553 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ leaveEvent()

void TYModelerFrame::leaveEvent ( QEvent *  pEvent)
protectedvirtual

Definition at line 1709 of file TYModelerFrame.cpp.

◆ mouseEnter

void TYModelerFrame::mouseEnter ( )
signal

Indicates that the mouse cursor enters the widget.

Here is the caller graph for this function:

◆ mouseLeave

void TYModelerFrame::mouseLeave ( )
signal

Indicates that the mouse cursor leaves the widget.

Here is the caller graph for this function:

◆ mouseMoveEvent()

void TYModelerFrame::mouseMoveEvent ( QMouseEvent *  pEvent)
protectedvirtual

Definition at line 1565 of file TYModelerFrame.cpp.

◆ print

void TYModelerFrame::print ( )
slot

Launches the printing of the current window.

Definition at line 978 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ resizeEvent()

void TYModelerFrame::resizeEvent ( QResizeEvent *  pEvent)
protectedvirtual

Definition at line 1668 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ resizeGrid

void TYModelerFrame::resizeGrid ( )
slot

Updates the grid.

Definition at line 1769 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screenShot

void TYModelerFrame::screenShot ( )
slot

Takes a snapshot of the 3D view to save it in an image file.

Definition at line 953 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ setCameraCoordinates

void TYModelerFrame::setCameraCoordinates ( )
slot

Specifies the camera coordinates (in "mobile" mode).

Definition at line 926 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDefaultZCoord()

void TYModelerFrame::setDefaultZCoord ( float  fDefaultZCoord)
inline

sets default Z coordinate for editors

Parameters
fDefaultZCoord

Definition at line 282 of file TYModelerFrame.h.

◆ setEditorMode

void TYModelerFrame::setEditorMode ( int  mode)
virtualslot

Activates an editing mode.

Definition at line 718 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setEditorModeToCamera

void TYModelerFrame::setEditorModeToCamera ( )
inlineslot

Activates the camera mode.

Definition at line 310 of file TYModelerFrame.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setElement()

void TYModelerFrame::setElement ( LPTYElement  pElement)
inline

Set/Get the element to edit.

Definition at line 233 of file TYModelerFrame.h.

◆ setGridLinesActorsVisibility()

void TYModelerFrame::setGridLinesActorsVisibility ( bool  showGridXY,
bool  showGridXZ,
bool  showGridZY 
)
protected

Sets the visibility of actors constituting the grids.

Definition at line 1653 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setKeepRays

void TYModelerFrame::setKeepRays ( bool  keepRays)
slot

Enable or disable button allowing to show rays

Definition at line 859 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ setRenderMode

void TYModelerFrame::setRenderMode ( TYOpenGLRenderer::RenderMode  mode,
bool  bUpdateGL 
)
virtualslot

Selects the rendering mode.

Definition at line 701 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRenderModeSlot

void TYModelerFrame::setRenderModeSlot ( int  mode)
virtualslot

Selects the rendering mode.

Definition at line 696 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSnapGridActive

void TYModelerFrame::setSnapGridActive ( bool  state)
slot

Activates or deactivates the magnetic grid.

Definition at line 920 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ setViewType

void TYModelerFrame::setViewType ( int  view)
virtualslot

Selects the view type.

Definition at line 607 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWireframeOnMovingCamera

void TYModelerFrame::setWireframeOnMovingCamera ( bool  state)
inlineslot

Activates the special rendering mode during camera movement.

See also
_wireframeOnMovingCamera

Definition at line 439 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ showEvent()

void TYModelerFrame::showEvent ( QShowEvent *  pEvent)
protectedvirtual

Definition at line 1680 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ showGrid

void TYModelerFrame::showGrid ( bool  show)
slot

Shows or hides the grid.

Definition at line 788 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showNormals

void TYModelerFrame::showNormals ( bool  show)
slot

Shows or hides normals. Calls updateView().

Definition at line 864 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showPlafond

void TYModelerFrame::showPlafond ( bool  show)
slot

Shows or hides the ceiling of buildings. Calls updateView().

Definition at line 892 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showRays

void TYModelerFrame::showRays ( bool  show)
slot

Displays rays

Definition at line 832 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showScale

void TYModelerFrame::showScale ( bool  show)
slot

Shows or hides the scale.

Definition at line 2178 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showSources

void TYModelerFrame::showSources ( )
slot

Shows or hides point sources.

Definition at line 802 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startMovingRenderMode

void TYModelerFrame::startMovingRenderMode ( )
slot

Switches to special rendering mode during camera movement.

See also
_wireframeOnMovingCamera

Definition at line 2126 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ statusBar()

QStatusBar* TYModelerFrame::statusBar ( )
inline

Returns a pointer to the status bar.

Definition at line 183 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ stopMovingRenderMode

void TYModelerFrame::stopMovingRenderMode ( )
slot

Switches back to normal rendering mode after camera movement.

See also
_wireframeOnMovingCamera

Definition at line 2140 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateAxes

void TYModelerFrame::updateAxes ( )
slot

Updates the orientation of the axes based on the position of the camera.

Definition at line 1381 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateCurPosInfo

void TYModelerFrame::updateCurPosInfo ( int  x,
int  y 
)
slot

Updates the cursor position information.

Definition at line 1567 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateElementGraphic

void TYModelerFrame::updateElementGraphic ( bool  force = false)
slot

Updates the graphical structure of the element associated with this modeler.

Parameters
forceForce the update even if the element is not marked as modified.

Definition at line 1761 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ updateGrid

void TYModelerFrame::updateGrid ( )
slot

Builds the grid.

Definition at line 1714 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePreferences

void TYModelerFrame::updatePreferences ( )
virtualslot

Updates the parameters of the preferences.

Definition at line 1779 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateScale

void TYModelerFrame::updateScale ( )
slot

Updates the scale.

Definition at line 2149 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateView

void TYModelerFrame::updateView ( bool  clipping = true,
bool  axesAndGrid = true 
)
virtualslot

Updates the graphics view as well as the axes and the grid.

Parameters
clippingTo update the camera's clipping range.
axesAndGridTo update the axes and the grid.

Definition at line 1348 of file TYModelerFrame.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ viewTypeChanged

void TYModelerFrame::viewTypeChanged ( int  )
signal

Indicates that the view type has changed.

Here is the caller graph for this function:

◆ wheelEvent()

void TYModelerFrame::wheelEvent ( QWheelEvent *  pEvent)
protectedvirtual

Definition at line 1662 of file TYModelerFrame.cpp.

Member Data Documentation

◆ _actionManager

TYActionManager TYModelerFrame::_actionManager
private

For managing the history.

Definition at line 617 of file TYModelerFrame.h.

◆ _curViewType

int TYModelerFrame::_curViewType
protected

The type of the current view.

Definition at line 647 of file TYModelerFrame.h.

◆ _defaultZCoord

float TYModelerFrame::_defaultZCoord
protected

Default Z coordinate for editors.

Definition at line 683 of file TYModelerFrame.h.

◆ _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

Definition at line 634 of file TYModelerFrame.h.

◆ _gridDimX

float TYModelerFrame::_gridDimX
protected

Grid dimension in X.

Definition at line 666 of file TYModelerFrame.h.

◆ _gridDimY

float TYModelerFrame::_gridDimY
protected

Grid dimension in Y.

Definition at line 668 of file TYModelerFrame.h.

◆ _gridMagnStep

float TYModelerFrame::_gridMagnStep
protected

Magnetic grid step.

Definition at line 664 of file TYModelerFrame.h.

◆ _gridStep

float TYModelerFrame::_gridStep
protected

Grid step.

Definition at line 662 of file TYModelerFrame.h.

◆ _lastEditorMode

int TYModelerFrame::_lastEditorMode
private

To keep track of the last editing mode.

Definition at line 581 of file TYModelerFrame.h.

◆ _lastRenderMode

TYOpenGLRenderer::RenderMode TYModelerFrame::_lastRenderMode
private

The last current rendering mode.

Definition at line 578 of file TYModelerFrame.h.

◆ _pCameraEditor

TYCameraEditor* TYModelerFrame::_pCameraEditor
protected

Manages the camera.

Definition at line 532 of file TYModelerFrame.h.

◆ _pCameraZoneEditor

TYCameraZoneEditor* TYModelerFrame::_pCameraZoneEditor
private

Editor to define a zoom area for the camera.

Definition at line 593 of file TYModelerFrame.h.

◆ _pCopyBtn

QToolButton* TYModelerFrame::_pCopyBtn
protected

Button for taking a screenshot.

Definition at line 677 of file TYModelerFrame.h.

◆ _pCtrlLayout

QBoxLayout* TYModelerFrame::_pCtrlLayout
protected

The layout where buttons, etc., are located.

Definition at line 638 of file TYModelerFrame.h.

◆ _pCurrentEditor

TYAbstractSceneEditor* TYModelerFrame::_pCurrentEditor
protected

The current editor.

Definition at line 653 of file TYModelerFrame.h.

◆ _pDistanceEditor

TYDistanceEditor* TYModelerFrame::_pDistanceEditor
private

Tools for measuring.

Definition at line 587 of file TYModelerFrame.h.

◆ _pElement

LPTYElement TYModelerFrame::_pElement
protected

A pointer to the element to edit.

Definition at line 680 of file TYModelerFrame.h.

◆ _pGridBtn

QToolButton* TYModelerFrame::_pGridBtn
private

Button to activate the grid.

Definition at line 607 of file TYModelerFrame.h.

◆ _pLayout

QGridLayout* TYModelerFrame::_pLayout
private

The layout of this frame.

Definition at line 536 of file TYModelerFrame.h.

◆ _pLightElement

OGLLightElement* TYModelerFrame::_pLightElement
private

The default light.

Definition at line 620 of file TYModelerFrame.h.

◆ _pOGLCameras

OGLCamera* TYModelerFrame::_pOGLCameras[NbOfViews]
protected

Cameras for each type of view.

Definition at line 659 of file TYModelerFrame.h.

◆ _pOGLGridElement

OGLGridElement* TYModelerFrame::_pOGLGridElement
private

Definition at line 623 of file TYModelerFrame.h.

◆ _pOGLLineElementAxeX

OGLLineElement* TYModelerFrame::_pOGLLineElementAxeX
private

Geometry of the Axes.

Definition at line 599 of file TYModelerFrame.h.

◆ _pOGLLineElementAxeY

OGLLineElement* TYModelerFrame::_pOGLLineElementAxeY
private

Definition at line 600 of file TYModelerFrame.h.

◆ _pOGLLineElementAxeZ

OGLLineElement* TYModelerFrame::_pOGLLineElementAxeZ
private

Definition at line 601 of file TYModelerFrame.h.

◆ _pOGLLineElementX

OGLLineElement* TYModelerFrame::_pOGLLineElementX
private

X and Y axes of the grid.

Definition at line 610 of file TYModelerFrame.h.

◆ _pOGLLineElementY

OGLLineElement* TYModelerFrame::_pOGLLineElementY
private

Definition at line 611 of file TYModelerFrame.h.

◆ _pOGLScalarBarElement

OGLScalarBarElement* TYModelerFrame::_pOGLScalarBarElement
private

Graphic object for representing the scale.

Definition at line 626 of file TYModelerFrame.h.

◆ _pOGLTextElement

OGLTextElement* TYModelerFrame::_pOGLTextElement
private

2D label to display the type of view.

Definition at line 596 of file TYModelerFrame.h.

◆ _pOGLTextElementLabelX

OGLTextElement* TYModelerFrame::_pOGLTextElementLabelX
private

Definition at line 602 of file TYModelerFrame.h.

◆ _pOGLTextElementLabelY

OGLTextElement* TYModelerFrame::_pOGLTextElementLabelY
private

Definition at line 603 of file TYModelerFrame.h.

◆ _pOGLTextElementLabelZ

OGLTextElement* TYModelerFrame::_pOGLTextElementLabelZ
private

Definition at line 604 of file TYModelerFrame.h.

◆ _pPickEditor

TYPickEditor* TYModelerFrame::_pPickEditor
protected

Manages the context menu.

Definition at line 656 of file TYModelerFrame.h.

◆ _pPicker

TYElementPicker* TYModelerFrame::_pPicker
private

For picking.

Definition at line 584 of file TYModelerFrame.h.

◆ _pPositionEditor

TYPositionEditor* TYModelerFrame::_pPositionEditor
private

Editor for moving elements.

Definition at line 590 of file TYModelerFrame.h.

◆ _pRenderModeBox

QComboBox* TYModelerFrame::_pRenderModeBox
private

Combo box for rendering mode.

Definition at line 539 of file TYModelerFrame.h.

◆ _pScreenShotBtn

QToolButton* TYModelerFrame::_pScreenShotBtn
protected

Button for saving a screenshot.

Definition at line 674 of file TYModelerFrame.h.

◆ _pSetCameraCoordinatesBtn

QToolButton* TYModelerFrame::_pSetCameraCoordinatesBtn
protected

Button to specify camera coordinates.

Definition at line 671 of file TYModelerFrame.h.

◆ _pShowNormalsBtn

QToolButton* TYModelerFrame::_pShowNormalsBtn
private

Button for displaying normals.

Definition at line 554 of file TYModelerFrame.h.

◆ _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

Button for displaying the scale.

Definition at line 629 of file TYModelerFrame.h.

◆ _pShowSourcesBtn

QToolButton* TYModelerFrame::_pShowSourcesBtn
private

Button for displaying point sources.

Definition at line 548 of file TYModelerFrame.h.

◆ _pSnapGridBtn

QToolButton* TYModelerFrame::_pSnapGridBtn
private

Button to activate the magnetic grid.

Definition at line 542 of file TYModelerFrame.h.

◆ _pStatusBar

QStatusBar* TYModelerFrame::_pStatusBar
private

Status bar.

Definition at line 572 of file TYModelerFrame.h.

◆ _pView

TYRenderWindowInteractor* TYModelerFrame::_pView
protected

The graphics window.

Definition at line 644 of file TYModelerFrame.h.

◆ _pViewTypeBox

QComboBox* TYModelerFrame::_pViewTypeBox
protected

Combo box for selecting the current camera.

Definition at line 641 of file TYModelerFrame.h.

◆ _showGrid

bool TYModelerFrame::_showGrid
private

Indicates whether to display the grid or not.

Definition at line 614 of file TYModelerFrame.h.

◆ _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

Indicates whether or not to display rays.

Definition at line 569 of file TYModelerFrame.h.

◆ _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: