Code_TYMPAN  4.2.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

Classe generique pour une fenetre de modeleur. More...

#include <TYModelerFrame.h>

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

Public Types

enum  ModelerViewType {
  TopView, LeftView, FrontView, PerspView,
  FreeView, NbOfViews
}
 
enum  RenderMode {
  Points, Wireframe, Surface, Flat,
  Gouraud, Phong, NbOfRenderMode
}
 
enum  ModelerMode {
  NoMode = -1, CameraMode, DistanceMode, MovingMode,
  RotationMode, EditionMode, NbOfModelerMode
}
 

Public Slots

virtual void setViewType (int view)
 
virtual void setRenderModeSlot (int mode)
 
virtual void setRenderMode (int mode, bool bUpdateGL)
 
virtual void setEditorMode (int mode)
 
void setEditorModeToCamera ()
 
void showGrid (bool show)
 
void showNormals (bool show)
 
void showPlafond (bool show)
 
void showSources (bool show)
 
void showRays (bool show)
 
void setSnapGridActive (bool state)
 
void setCameraCoordinates ()
 
void screenShot ()
 
virtual void updateView (bool clipping=true, bool axesAndGrid=true)
 
void updateAxes ()
 
void updateCurPosInfo ()
 
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)
 

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=0)
 
virtual ~TYModelerFrame ()
 
TYRenderWindowInteractorgetView ()
 
TYOpenGLRenderergetRenderer ()
 
int getCurrentView ()
 
int 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)
 

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 ()
 

Protected Attributes

QBoxLayout * _pCtrlLayout
 Le layout ou se trouvent les boutons, etc. More...
 
QComboBox * _pViewTypeBox
 Combo box pour la selection de la camera courante. More...
 
TYRenderWindowInteractor_pView
 La fenetre graphique. More...
 
int _curViewType
 Le type de la vue courante. More...
 
bool _editorModeAccepted
 Indique si le mode d'edition a ete traite. More...
 
TYAbstractSceneEditor_pCurrentEditor
 L'editor courant. More...
 
TYPickEditor_pPickEditor
 Gere le menu contextuel. More...
 
OGLCamera_pOGLCameras [NbOfViews]
 Les cameras pour chaque type de vue. More...
 
float _gridStep
 Pas de la grille. More...
 
float _gridMagnStep
 Pas de la grille magnetique. More...
 
float _gridDimX
 Dimension de la grille en X. More...
 
float _gridDimY
 Dimension de la grille en Y. More...
 
QToolButton * _pSetCameraCoordinatesBtn
 Bouton de specification des coordonnees de la camera. More...
 
LPTYElement _pElement
 Un pointeur sur l'element a editer. More...
 

Private Attributes

QGridLayout * _pLayout
 Le layout de cette frame. More...
 
QComboBox * _pRenderModeBox
 Combo box pour le mode de rendu. More...
 
QToolButton * _pSnapGridBtn
 Bouton d'activation de la grille magnetique. More...
 
bool _snapGridActive
 Indique si on active ou non la grille magnetique. More...
 
QToolButton * _pScreenShotBtn
 Bouton pour effectuer une capture d'ecran. More...
 
QToolButton * _pShowSourcesBtn
 Bouton pour l'affichage des sources ponctuelles. More...
 
bool _showSources
 Indique si on affiche ou pas les sources ponctuelles. More...
 
QToolButton * _pShowNormalsBtn
 Bouton pour l'affichage des normals. More...
 
bool _showNormals
 Indique si on affiche ou masque les normals. More...
 
QToolButton * _pShowPlafondBtn
 Bouton pour l'affichage des normals. More...
 
bool _showPlafond
 Indique si on affiche ou masque les normals. More...
 
QToolButton * _pShowRaysBtn
 Bouton pour l'affichage des rayons calcules par le lance de rayons. More...
 
bool _showRays
 Indique si on affiche ou pas les rayons. More...
 
QStatusBar * _pStatusBar
 Barre d'etat. More...
 
int _curRenderMode
 Le mode de rendu courant. More...
 
bool _wireframeOnMovingCamera
 Indique si on passe en rendu wireframe lors de deplacement de camera. More...
 
int _lastRenderMode
 Le dernier mode de rendu courant. More...
 
int _lastEditorMode
 Pour conserver le dernier mode d'edition. More...
 
TYElementPicker_pPicker
 Pour le picking. More...
 
TYCameraEditor_pCameraEditor
 Gere la camera. More...
 
TYDistanceEditor_pDistanceEditor
 Outils pour mesurer. More...
 
TYPositionEditor_pPositionEditor
 Editor pour deplacer les elements. More...
 
OGLTextElement_pOGLTextElement
 Label 2D pour afficher le type de la vue. More...
 
OGLLineElement_pOGLLineElementAxeX
 La geometrie des Axes. More...
 
OGLLineElement_pOGLLineElementAxeY
 
OGLLineElement_pOGLLineElementAxeZ
 
OGLTextElement_pOGLTextElementLabelX
 
OGLTextElement_pOGLTextElementLabelY
 
OGLTextElement_pOGLTextElementLabelZ
 
QToolButton * _pGridBtn
 Bouton d'activation de la grille. More...
 
OGLLineElement_pOGLLineElementX
 Axes X et Y de la grille. More...
 
OGLLineElement_pOGLLineElementY
 
bool _showGrid
 Indique si on affiche ou non la grille. More...
 
TYActionManager _actionManager
 Pour la gestion de l'historique. More...
 
OGLLightElement_pLightElement
 La lumiere par default. More...
 
OGLGridElement_pOGLGridElement
 
OGLScalarBarElement_pOGLScalarBarElement
 Objet graphique pour la representation de l'echelle. More...
 
QToolButton * _pShowScale
 Bouton pour l'affichage de l'echelle. More...
 
bool _showScale
 Indique si on affiche ou pas l'echelle. More...
 
bool _firstTimeShown
 

Detailed Description

Classe generique pour une fenetre de modeleur.

Definition at line 66 of file TYModelerFrame.h.

Member Enumeration Documentation

◆ ModelerMode

Les differents modes d'edition d'un site.

Enumerator
NoMode 
CameraMode 
DistanceMode 
MovingMode 
RotationMode 
EditionMode 
NbOfModelerMode 

Definition at line 106 of file TYModelerFrame.h.

◆ ModelerViewType

Les 5 vues du modeler :

  • la vue de dessus,
  • la vue de gauche,
  • la vue de face,
  • la vue en perspective.
  • la vue en camera mobile.
Enumerator
TopView 
LeftView 
FrontView 
PerspView 
FreeView 
NbOfViews 

Definition at line 79 of file TYModelerFrame.h.

◆ RenderMode

Les modes de rendu.

Enumerator
Points 
Wireframe 
Surface 
Flat 
Gouraud 
Phong 
NbOfRenderMode 

Definition at line 92 of file TYModelerFrame.h.

Constructor & Destructor Documentation

◆ TYModelerFrame()

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

Constructeur par defaut.

Definition at line 98 of file TYModelerFrame.cpp.

Here is the call graph for this function:

◆ ~TYModelerFrame()

TYModelerFrame::~TYModelerFrame ( )
virtual

Destructeur.

Definition at line 483 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:

◆ askForResetResultat()

bool TYModelerFrame::askForResetResultat ( )

Indique l'utilisateur accepte d'effacer le resultat (si necessaire) pour effectuer l'action.

Definition at line 590 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

Surcharge de la fonction close de QWidget. Propose la sauvegarde a la fermeture.

Definition at line 547 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ closeEvent()

void TYModelerFrame::closeEvent ( QCloseEvent *  pEvent)
protectedvirtual

Definition at line 1612 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ computeCurPos()

bool TYModelerFrame::computeCurPos ( int  x,
int  y,
float *  pos 
)
virtual

Calcule les coordonees dans la scene 3D a partir de la position du curseur. Cette methode peut etre surchagee pour la calcul de l'altitude.

Reimplemented in TYSiteModelerFrame.

Definition at line 1541 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

Effectue un snapshot de la vue 3D pour la copier dans le presse papier.

Definition at line 989 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ editElement

void TYModelerFrame::editElement ( )
slot

Affiche la boite d'edition des proprietes de l'element edite.

Definition at line 1194 of file TYModelerFrame.cpp.

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

◆ editorModeChanged

void TYModelerFrame::editorModeChanged ( int  mode)
signal

Indique que le mode d'edition a change.

Here is the caller graph for this function:

◆ eltModified

void TYModelerFrame::eltModified ( LPTYElement  pElt)
signal

Indique que l'element a ete modifie.

Here is the caller graph for this function:

◆ enterEvent()

void TYModelerFrame::enterEvent ( QEvent *  pEvent)
protectedvirtual

Definition at line 1623 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ fit

void TYModelerFrame::fit ( )
slot

Cadre la vue afin de voir l'ensemble des objets graphiques presents dans la scene.

Definition at line 1244 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 1591 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

Indique que la frame a ete maximisee. Attention: un slot nomme isMaximized existe deja

Here is the caller graph for this function:

◆ getActionManager()

TYActionManager* TYModelerFrame::getActionManager ( )
inline

Retourne le gestionnaire d'action (historique).

Definition at line 181 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getCameraEditor()

TYCameraEditor* TYModelerFrame::getCameraEditor ( )
inline

Retourne un pointeur sur l'editor de la camera.

Definition at line 166 of file TYModelerFrame.h.

◆ getCurrentEditor()

TYAbstractSceneEditor* TYModelerFrame::getCurrentEditor ( )
inline

Retourne un pointeur sur l'editor courant de ce modeler.

Definition at line 161 of file TYModelerFrame.h.

◆ getCurrentView()

int TYModelerFrame::getCurrentView ( )
inline

Retourne le type de la vue courante.

Definition at line 140 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getElement()

LPTYElement TYModelerFrame::getElement ( )
inline

Set/Get de l'element a editer.

Definition at line 208 of file TYModelerFrame.h.

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

◆ getElementPicker()

TYElementPicker* TYModelerFrame::getElementPicker ( )
inline

Retourne l'element picker.

Returns
L'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 1226 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

Retourne un pointeur sur le pick editor associe a ce modeler.

Definition at line 156 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getRenderer()

TYOpenGLRenderer* TYModelerFrame::getRenderer ( )
inline

Retourne le renderer associe a la vue.

Definition at line 135 of file TYModelerFrame.h.

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

◆ getRenderMode()

int TYModelerFrame::getRenderMode ( )
inline

Retourne le mode de rendu actif.

Definition at line 145 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getShowGrid()

bool TYModelerFrame::getShowGrid ( )
inline

Indique l'etat de visualisation de la grille

Definition at line 191 of file TYModelerFrame.h.

◆ getShowSources()

bool TYModelerFrame::getShowSources ( )
inline

Indique si on affiche ou pas les sources ponctuelles.

Definition at line 186 of file TYModelerFrame.h.

◆ getSnapGridActive()

bool TYModelerFrame::getSnapGridActive ( )
inline

Retourne l'etat d'activation de la grille magnetique.

Definition at line 176 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getView()

TYRenderWindowInteractor* TYModelerFrame::getView ( )
inline

Retourne la vue graphique.

Definition at line 130 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ getWireframeOnMovingCamera()

bool TYModelerFrame::getWireframeOnMovingCamera ( )
inline

Retourne l'etat du mode de rendu special lors du deplacement de la camera.

See also
_wireframeOnMovingCamera

Definition at line 199 of file TYModelerFrame.h.

◆ isElementInCurrentCalcul()

bool TYModelerFrame::isElementInCurrentCalcul ( )

Indique si l'element edite fait parti de la selection du calcul courant du projet courant.

Definition at line 552 of file TYModelerFrame.cpp.

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

◆ isElementInCurrentProjet()

bool TYModelerFrame::isElementInCurrentProjet ( )

Indique si l'element edite fait parti du projet courant. La recherche se fait par la paternite.

Definition at line 565 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 1461 of file TYModelerFrame.cpp.

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

◆ keyReleaseEvent()

void TYModelerFrame::keyReleaseEvent ( QKeyEvent *  pEvent)
protectedvirtual

Definition at line 1486 of file TYModelerFrame.cpp.

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

◆ leaveEvent()

void TYModelerFrame::leaveEvent ( QEvent *  pEvent)
protectedvirtual

Definition at line 1632 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ mouseEnter

void TYModelerFrame::mouseEnter ( )
signal

Indique que le curseur de souris entre dans la widget.

Here is the caller graph for this function:

◆ mouseLeave

void TYModelerFrame::mouseLeave ( )
signal

Indique que le curseur de souris sort dans la widget.

Here is the caller graph for this function:

◆ mouseMoveEvent()

void TYModelerFrame::mouseMoveEvent ( QMouseEvent *  pEvent)
protectedvirtual

Definition at line 1495 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ print

void TYModelerFrame::print ( )
slot

Lance l'impression de la fenetre en cours.

Definition at line 999 of file TYModelerFrame.cpp.

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

◆ resizeEvent()

void TYModelerFrame::resizeEvent ( QResizeEvent *  pEvent)
protectedvirtual

Definition at line 1580 of file TYModelerFrame.cpp.

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

◆ resizeGrid

void TYModelerFrame::resizeGrid ( )
slot

Mise a jour de la grille.

Definition at line 1691 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

Effectue un snapshot de la vue 3D pour la sauvegarder dans un fichier image.

Definition at line 942 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ setCameraCoordinates

void TYModelerFrame::setCameraCoordinates ( )
slot

Pour specifier les coordonnees de la camera (en mode "mobile")

Definition at line 917 of file TYModelerFrame.cpp.

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

◆ setEditorMode

void TYModelerFrame::setEditorMode ( int  mode)
virtualslot

Active un mode d'edition.

Definition at line 714 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

Active le mode camera.

Definition at line 257 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 de l'element a editer.

Definition at line 204 of file TYModelerFrame.h.

◆ setGridLinesActorsVisibility()

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

Definit la visibilite des actors constituant les grilles.

Definition at line 1565 of file TYModelerFrame.cpp.

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

◆ setRenderMode

void TYModelerFrame::setRenderMode ( int  mode,
bool  bUpdateGL 
)
virtualslot

Selectionne le mode de rendu.

Definition at line 678 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

Selectionne le mode de rendu.

Definition at line 672 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

Active ou non la grille magnetique.

Definition at line 910 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ setViewType

void TYModelerFrame::setViewType ( int  view)
virtualslot

Selectionne le type vue.

Definition at line 602 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

Active le mode de rendu special lors du deplacement de la camera.

See also
_wireframeOnMovingCamera

Definition at line 378 of file TYModelerFrame.h.

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

◆ showEvent()

void TYModelerFrame::showEvent ( QShowEvent *  pEvent)
protectedvirtual

Definition at line 1599 of file TYModelerFrame.cpp.

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

◆ showGrid

void TYModelerFrame::showGrid ( bool  show)
slot

Affiche ou non la grille.

Definition at line 779 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

Affiche ou masque les normals. Fait un updateView().

Definition at line 851 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

Affiche ou masque le plafond des batiments. Fait un updateView().

Definition at line 880 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

Affichage des rayons

Definition at line 824 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

Affiche ou pas l'echelle.

Definition at line 2083 of file TYModelerFrame.cpp.

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

◆ showSources

void TYModelerFrame::showSources ( bool  show)
slot

Affiche ou pas les sources ponctuelles.

Definition at line 793 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

Passe en mode de rendu special lors du deplacement de la camera.

See also
_wireframeOnMovingCamera

Definition at line 2042 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

Retourne un pointeur sur la barre d'etat.

Definition at line 171 of file TYModelerFrame.h.

Here is the caller graph for this function:

◆ stopMovingRenderMode

void TYModelerFrame::stopMovingRenderMode ( )
slot

Repasse en mode de rendu normal apres un deplacement de la camera.

See also
_wireframeOnMovingCamera

Definition at line 2055 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

Mets a jour l'orientation des axes a partir de la position de la camera.

Definition at line 1376 of file TYModelerFrame.cpp.

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

◆ updateCurPosInfo

void TYModelerFrame::updateCurPosInfo ( )
slot

Mets a jour l'information de position du curseur.

Definition at line 1499 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

Mets a jour la structure graphique de l'element associe a ce modeler.

Parameters
forceForce la mise a jour meme si l'element n'est pas marque comme modifie.

Definition at line 1683 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

◆ updateGrid

void TYModelerFrame::updateGrid ( )
slot

Construit la grille.

Definition at line 1637 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

Mise a jour des parametres des preferences.

Definition at line 1701 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

Mets l'echelle a jour.

Definition at line 2064 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

Mets a jour la vue graphique ainsi que les axes et la grille.

Parameters
clippingPour mettre a jour le clipping range de la camera.
axesAndGridPour mettre a jour les axes et la grille.

Definition at line 1342 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

Indique que le type de vue a change.

Here is the caller graph for this function:

◆ wheelEvent()

void TYModelerFrame::wheelEvent ( QWheelEvent *  pEvent)
protectedvirtual

Definition at line 1574 of file TYModelerFrame.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _actionManager

TYActionManager TYModelerFrame::_actionManager
private

Pour la gestion de l'historique.

Definition at line 552 of file TYModelerFrame.h.

◆ _curRenderMode

int TYModelerFrame::_curRenderMode
private

Le mode de rendu courant.

Definition at line 506 of file TYModelerFrame.h.

◆ _curViewType

int TYModelerFrame::_curViewType
protected

Le type de la vue courante.

Definition at line 582 of file TYModelerFrame.h.

◆ _editorModeAccepted

bool TYModelerFrame::_editorModeAccepted
protected

Indique si le mode d'edition a ete traite.

Definition at line 585 of file TYModelerFrame.h.

◆ _firstTimeShown

bool TYModelerFrame::_firstTimeShown
private

Definition at line 569 of file TYModelerFrame.h.

◆ _gridDimX

float TYModelerFrame::_gridDimX
protected

Dimension de la grille en X.

Definition at line 601 of file TYModelerFrame.h.

◆ _gridDimY

float TYModelerFrame::_gridDimY
protected

Dimension de la grille en Y.

Definition at line 603 of file TYModelerFrame.h.

◆ _gridMagnStep

float TYModelerFrame::_gridMagnStep
protected

Pas de la grille magnetique.

Definition at line 599 of file TYModelerFrame.h.

◆ _gridStep

float TYModelerFrame::_gridStep
protected

Pas de la grille.

Definition at line 597 of file TYModelerFrame.h.

◆ _lastEditorMode

int TYModelerFrame::_lastEditorMode
private

Pour conserver le dernier mode d'edition.

Definition at line 515 of file TYModelerFrame.h.

◆ _lastRenderMode

int TYModelerFrame::_lastRenderMode
private

Le dernier mode de rendu courant.

Definition at line 512 of file TYModelerFrame.h.

◆ _pCameraEditor

TYCameraEditor* TYModelerFrame::_pCameraEditor
private

Gere la camera.

Definition at line 521 of file TYModelerFrame.h.

◆ _pCtrlLayout

QBoxLayout* TYModelerFrame::_pCtrlLayout
protected

Le layout ou se trouvent les boutons, etc.

Definition at line 573 of file TYModelerFrame.h.

◆ _pCurrentEditor

TYAbstractSceneEditor* TYModelerFrame::_pCurrentEditor
protected

L'editor courant.

Definition at line 588 of file TYModelerFrame.h.

◆ _pDistanceEditor

TYDistanceEditor* TYModelerFrame::_pDistanceEditor
private

Outils pour mesurer.

Definition at line 524 of file TYModelerFrame.h.

◆ _pElement

LPTYElement TYModelerFrame::_pElement
protected

Un pointeur sur l'element a editer.

Definition at line 609 of file TYModelerFrame.h.

◆ _pGridBtn

QToolButton* TYModelerFrame::_pGridBtn
private

Bouton d'activation de la grille.

Definition at line 541 of file TYModelerFrame.h.

◆ _pLayout

QGridLayout* TYModelerFrame::_pLayout
private

Le layout de cette frame.

Definition at line 464 of file TYModelerFrame.h.

◆ _pLightElement

OGLLightElement* TYModelerFrame::_pLightElement
private

La lumiere par default.

Definition at line 555 of file TYModelerFrame.h.

◆ _pOGLCameras

OGLCamera* TYModelerFrame::_pOGLCameras[NbOfViews]
protected

Les cameras pour chaque type de vue.

Definition at line 594 of file TYModelerFrame.h.

◆ _pOGLGridElement

OGLGridElement* TYModelerFrame::_pOGLGridElement
private

Definition at line 558 of file TYModelerFrame.h.

◆ _pOGLLineElementAxeX

OGLLineElement* TYModelerFrame::_pOGLLineElementAxeX
private

La geometrie des Axes.

Definition at line 533 of file TYModelerFrame.h.

◆ _pOGLLineElementAxeY

OGLLineElement* TYModelerFrame::_pOGLLineElementAxeY
private

Definition at line 534 of file TYModelerFrame.h.

◆ _pOGLLineElementAxeZ

OGLLineElement* TYModelerFrame::_pOGLLineElementAxeZ
private

Definition at line 535 of file TYModelerFrame.h.

◆ _pOGLLineElementX

OGLLineElement* TYModelerFrame::_pOGLLineElementX
private

Axes X et Y de la grille.

Definition at line 544 of file TYModelerFrame.h.

◆ _pOGLLineElementY

OGLLineElement* TYModelerFrame::_pOGLLineElementY
private

Definition at line 545 of file TYModelerFrame.h.

◆ _pOGLScalarBarElement

OGLScalarBarElement* TYModelerFrame::_pOGLScalarBarElement
private

Objet graphique pour la representation de l'echelle.

Definition at line 561 of file TYModelerFrame.h.

◆ _pOGLTextElement

OGLTextElement* TYModelerFrame::_pOGLTextElement
private

Label 2D pour afficher le type de la vue.

Definition at line 530 of file TYModelerFrame.h.

◆ _pOGLTextElementLabelX

OGLTextElement* TYModelerFrame::_pOGLTextElementLabelX
private

Definition at line 536 of file TYModelerFrame.h.

◆ _pOGLTextElementLabelY

OGLTextElement* TYModelerFrame::_pOGLTextElementLabelY
private

Definition at line 537 of file TYModelerFrame.h.

◆ _pOGLTextElementLabelZ

OGLTextElement* TYModelerFrame::_pOGLTextElementLabelZ
private

Definition at line 538 of file TYModelerFrame.h.

◆ _pPickEditor

TYPickEditor* TYModelerFrame::_pPickEditor
protected

Gere le menu contextuel.

Definition at line 591 of file TYModelerFrame.h.

◆ _pPicker

TYElementPicker* TYModelerFrame::_pPicker
private

Pour le picking.

Definition at line 518 of file TYModelerFrame.h.

◆ _pPositionEditor

TYPositionEditor* TYModelerFrame::_pPositionEditor
private

Editor pour deplacer les elements.

Definition at line 527 of file TYModelerFrame.h.

◆ _pRenderModeBox

QComboBox* TYModelerFrame::_pRenderModeBox
private

Combo box pour le mode de rendu.

Definition at line 467 of file TYModelerFrame.h.

◆ _pScreenShotBtn

QToolButton* TYModelerFrame::_pScreenShotBtn
private

Bouton pour effectuer une capture d'ecran.

Definition at line 476 of file TYModelerFrame.h.

◆ _pSetCameraCoordinatesBtn

QToolButton* TYModelerFrame::_pSetCameraCoordinatesBtn
protected

Bouton de specification des coordonnees de la camera.

Definition at line 606 of file TYModelerFrame.h.

◆ _pShowNormalsBtn

QToolButton* TYModelerFrame::_pShowNormalsBtn
private

Bouton pour l'affichage des normals.

Definition at line 485 of file TYModelerFrame.h.

◆ _pShowPlafondBtn

QToolButton* TYModelerFrame::_pShowPlafondBtn
private

Bouton pour l'affichage des normals.

Definition at line 491 of file TYModelerFrame.h.

◆ _pShowRaysBtn

QToolButton* TYModelerFrame::_pShowRaysBtn
private

Bouton pour l'affichage des rayons calcules par le lance de rayons.

Definition at line 497 of file TYModelerFrame.h.

◆ _pShowScale

QToolButton* TYModelerFrame::_pShowScale
private

Bouton pour l'affichage de l'echelle.

Definition at line 564 of file TYModelerFrame.h.

◆ _pShowSourcesBtn

QToolButton* TYModelerFrame::_pShowSourcesBtn
private

Bouton pour l'affichage des sources ponctuelles.

Definition at line 479 of file TYModelerFrame.h.

◆ _pSnapGridBtn

QToolButton* TYModelerFrame::_pSnapGridBtn
private

Bouton d'activation de la grille magnetique.

Definition at line 470 of file TYModelerFrame.h.

◆ _pStatusBar

QStatusBar* TYModelerFrame::_pStatusBar
private

Barre d'etat.

Definition at line 503 of file TYModelerFrame.h.

◆ _pView

TYRenderWindowInteractor* TYModelerFrame::_pView
protected

La fenetre graphique.

Definition at line 579 of file TYModelerFrame.h.

◆ _pViewTypeBox

QComboBox* TYModelerFrame::_pViewTypeBox
protected

Combo box pour la selection de la camera courante.

Definition at line 576 of file TYModelerFrame.h.

◆ _showGrid

bool TYModelerFrame::_showGrid
private

Indique si on affiche ou non la grille.

Definition at line 549 of file TYModelerFrame.h.

◆ _showNormals

bool TYModelerFrame::_showNormals
private

Indique si on affiche ou masque les normals.

Definition at line 488 of file TYModelerFrame.h.

◆ _showPlafond

bool TYModelerFrame::_showPlafond
private

Indique si on affiche ou masque les normals.

Definition at line 494 of file TYModelerFrame.h.

◆ _showRays

bool TYModelerFrame::_showRays
private

Indique si on affiche ou pas les rayons.

Definition at line 500 of file TYModelerFrame.h.

◆ _showScale

bool TYModelerFrame::_showScale
private

Indique si on affiche ou pas l'echelle.

Definition at line 567 of file TYModelerFrame.h.

◆ _showSources

bool TYModelerFrame::_showSources
private

Indique si on affiche ou pas les sources ponctuelles.

Definition at line 482 of file TYModelerFrame.h.

◆ _snapGridActive

bool TYModelerFrame::_snapGridActive
private

Indique si on active ou non la grille magnetique.

Definition at line 473 of file TYModelerFrame.h.

◆ _wireframeOnMovingCamera

bool TYModelerFrame::_wireframeOnMovingCamera
private

Indique si on passe en rendu wireframe lors de deplacement de camera.

Definition at line 509 of file TYModelerFrame.h.


The documentation for this class was generated from the following files: