Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Attributes | List of all members
TYPanelGraphic Class Reference

classe graphique pour un panel d'informations More...

#include <TYPanelGraphic.h>

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

Public Member Functions

 TYPanelGraphic (TYPanel *pElement)
 
virtual ~TYPanelGraphic ()
 
virtual void update (bool force=false)
 
virtual void display (TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
 
double getPosX () const
 
void setPosX (double x)
 
double getPosY () const
 
void setPosY (double y)
 
double getWidth () const
 
void setWidth (double width)
 
double getHeight () const
 
void setHeight (double height)
 
OColor getBackColor () const
 
void setBackColor (const OColor &backColor)
 
OColor getFontColor () const
 
void setFontColor (const OColor &fontColor)
 
- Public Member Functions inherited from TYElementGraphic
virtual ~TYElementGraphic ()
 
void setElement (TYElement *pElt)
 
TYElementgetTYElement ()
 
void updateTree ()
 
void setModified (bool modified=true)
 
bool getModified (bool andReset=false)
 
void setVisible (bool visible=true)
 
bool getVisible ()
 
void setRecursiveVisible (bool visible=true)
 
void setTexture (bool state=true)
 
bool getTexture ()
 
OBox GetBox ()
 
virtual void computeBoundingBox ()
 
virtual void getChilds (TYListPtrTYElementGraphic &childs, bool recursif=true)
 
void highlight (bool state=true)
 
bool getHighlightState ()
 
void viewOnlyHighlight (bool state=true)
 
bool getOnlyHighlight ()
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Protected Attributes

LPOGLFont _font
 
double _posX
 
double _posY
 
double _width
 
double _height
 
OColor _backColor
 
OColor _fontColor
 
- Protected Attributes inherited from TYElementGraphic
OBox _boundingBox
 
TYElement_pElement
 L'element metier auquel cet element graphique metier est associe. More...
 
bool _highlight
 Indique si le highlight est active pour cet element. More...
 
bool _texture
 Indique si le texturing est active pour cet element. More...
 
bool _visible
 Inique si l'element est visible. More...
 
bool _bFirstDisp
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Additional Inherited Members

- Static Public Attributes inherited from TYElementGraphic
static OBox _globalBoundingBox
 
static bool _gDrawNormals = false
 Indique si les normals doivent etre visible. More...
 
static bool _gDrawPlafond = true
 Indique si les plafonds doivent etre visible. More...
 
- Protected Member Functions inherited from TYElementGraphic
 TYElementGraphic (TYElement *pElt)
 
void displayNormal (OVector3D normal, OPoint3D p1)
 
void glVertex3fAndEnlargeBB (GLfloat x, GLfloat y, GLfloat z)
 
void glVertex3dAndEnlargeBB (GLdouble x, GLdouble y, GLdouble z)
 
void gluDiskAndEnlargeBB (GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops)
 
void gluCylinderAndEnlargeBB (GLUquadric *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks)
 
void gluPartialDiskAndEnlargeBB (GLUquadric *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle)
 
void drawBoundingBox ()
 
void drawLineBoundingBox ()
 
void drawName (TYElement *pModelerElement=nullptr)
 

Detailed Description

classe graphique pour un panel d'informations

Definition at line 40 of file TYPanelGraphic.h.

Constructor & Destructor Documentation

◆ TYPanelGraphic()

TYPanelGraphic::TYPanelGraphic ( TYPanel pElement)

Definition at line 32 of file TYPanelGraphic.cpp.

◆ ~TYPanelGraphic()

TYPanelGraphic::~TYPanelGraphic ( )
virtual

Definition at line 48 of file TYPanelGraphic.cpp.

Member Function Documentation

◆ display()

void TYPanelGraphic::display ( TYElement pModelerElement = nullptr,
GLenum  mode = GL_RENDER 
)
virtual

Fonction d'affichage

Parameters
pModelerElementelement du modeleur a afficher
modemode d'affichage

Reimplemented from TYElementGraphic.

Definition at line 55 of file TYPanelGraphic.cpp.

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

◆ getBackColor()

OColor TYPanelGraphic::getBackColor ( ) const
inline

Get de la couleur du fond

Definition at line 127 of file TYPanelGraphic.h.

◆ getFontColor()

OColor TYPanelGraphic::getFontColor ( ) const
inline

Get de la couleur du texte

Definition at line 143 of file TYPanelGraphic.h.

◆ getHeight()

double TYPanelGraphic::getHeight ( ) const
inline

Get de la hauteur

Definition at line 111 of file TYPanelGraphic.h.

Here is the caller graph for this function:

◆ getPosX()

double TYPanelGraphic::getPosX ( ) const
inline

Get de la position en x

Definition at line 63 of file TYPanelGraphic.h.

◆ getPosY()

double TYPanelGraphic::getPosY ( ) const
inline

Get de la position en y

Definition at line 79 of file TYPanelGraphic.h.

◆ getWidth()

double TYPanelGraphic::getWidth ( ) const
inline

Get de la largeur

Definition at line 95 of file TYPanelGraphic.h.

Here is the caller graph for this function:

◆ setBackColor()

void TYPanelGraphic::setBackColor ( const OColor backColor)
inline

Set de la couleur du fond

Definition at line 135 of file TYPanelGraphic.h.

◆ setFontColor()

void TYPanelGraphic::setFontColor ( const OColor fontColor)
inline

Set de la couleur du fond

Definition at line 151 of file TYPanelGraphic.h.

◆ setHeight()

void TYPanelGraphic::setHeight ( double  height)
inline

Set de la hauteur

Definition at line 119 of file TYPanelGraphic.h.

◆ setPosX()

void TYPanelGraphic::setPosX ( double  x)
inline

Set de la position en x

Definition at line 71 of file TYPanelGraphic.h.

◆ setPosY()

void TYPanelGraphic::setPosY ( double  y)
inline

Set de la position en y

Definition at line 87 of file TYPanelGraphic.h.

◆ setWidth()

void TYPanelGraphic::setWidth ( double  width)
inline

Set de la largeur

Definition at line 103 of file TYPanelGraphic.h.

◆ update()

void TYPanelGraphic::update ( bool  force = false)
virtual

Mets a jour l'objet 3D associe a cet objet graphique metier. Remarque : Lorsque cette methode est surchargee, un appel de l'implementation parent (TYElementGraphic::update()) doit etre fait a la fin.

Parameters
forceOutrepasse l'etat du flag 'modified' et effectue la mise a jour.

Reimplemented from TYElementGraphic.

Definition at line 50 of file TYPanelGraphic.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _backColor

OColor TYPanelGraphic::_backColor
protected

Definition at line 169 of file TYPanelGraphic.h.

◆ _font

LPOGLFont TYPanelGraphic::_font
protected

Definition at line 158 of file TYPanelGraphic.h.

◆ _fontColor

OColor TYPanelGraphic::_fontColor
protected

Definition at line 172 of file TYPanelGraphic.h.

◆ _height

double TYPanelGraphic::_height
protected

Definition at line 166 of file TYPanelGraphic.h.

◆ _posX

double TYPanelGraphic::_posX
protected

Definition at line 161 of file TYPanelGraphic.h.

◆ _posY

double TYPanelGraphic::_posY
protected

Definition at line 162 of file TYPanelGraphic.h.

◆ _width

double TYPanelGraphic::_width
protected

Definition at line 165 of file TYPanelGraphic.h.


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