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

classe graphique pour une altimetrie More...

#include <TYAltimetrieGraphic.h>

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

Public Member Functions

 TYAltimetrieGraphic (TYAltimetrie *pElement)
 
virtual ~TYAltimetrieGraphic ()
 
virtual void update (bool force=false)
 
virtual void display (TYRenderContext &renderContext)
 
virtual void getChilds (TYListPtrTYElementGraphic &childs, bool recursif=true)
 
virtual OBox computeBoundingBox () const
 
void setBackgroundImage (std::shared_ptr< QImage > &image, int semiX, int semiY, TYPoint ptPosition, OVector3D bgImageOrientation)
 
void unsetBackgroundImage ()
 
void collectMeshInstances (std::vector< OGLMeshInstance > &meshInstances, TYRenderContext *renderContext) const override
 
- Public Member Functions inherited from TYElementGraphic
virtual ~TYElementGraphic ()
 
void setElement (TYElement *pElt)
 
TYElementgetTYElement ()
 
const TYElementgetTYElement () const
 
void updateTree ()
 
void setModified (bool modified=true)
 
bool getModified () const
 
void setVisible (bool visible=true)
 
bool getVisible () const
 
void setTexture (bool state=true)
 
bool getTexture ()
 
OBox boundingBox () const
 
void getChilds (TYListPtrConstTYElementGraphic &childs, bool recursif=true) const
 
void setBoundingBoxVisible (bool state=true)
 
bool isBoundingBoxVisible () const
 
void setOnlyBoundingBox (bool state=true)
 
bool getOnlyBoundingBox () const
 
const TYGeometryNodeGraphicnearestGeoNode () const
 
QMatrix4x4 globalMatrix () const
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Protected Attributes

OLookupTable _oColorMap
 
int _semiX
 
int _semiY
 
OVector3D _bgImageOrientation
 
TYPoint _imagePosition
 
double _angle
 
std::shared_ptr< QImage > _image
 
std::shared_ptr< OGLArrayMesh_mesh
 
- Protected Attributes inherited from TYElementGraphic
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...
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Additional Inherited Members

- Static Public Attributes inherited from TYElementGraphic
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 drawName (TYRenderContext &renderContext)
 
void invalidateBoundingBox ()
 

Detailed Description

classe graphique pour une altimetrie

Definition at line 48 of file TYAltimetrieGraphic.h.

Constructor & Destructor Documentation

◆ TYAltimetrieGraphic()

TYAltimetrieGraphic::TYAltimetrieGraphic ( TYAltimetrie pElement)

Constructor

Definition at line 62 of file TYAltimetrieGraphic.cpp.

Here is the call graph for this function:

◆ ~TYAltimetrieGraphic()

TYAltimetrieGraphic::~TYAltimetrieGraphic ( )
virtual

Destructor

Definition at line 75 of file TYAltimetrieGraphic.cpp.

Member Function Documentation

◆ collectMeshInstances()

void TYAltimetrieGraphic::collectMeshInstances ( std::vector< OGLMeshInstance > &  meshInstances,
TYRenderContext renderContext 
) const
overridevirtual

Collect mesh instances

Reimplemented from TYElementGraphic.

Definition at line 197 of file TYAltimetrieGraphic.cpp.

Here is the call graph for this function:

◆ computeBoundingBox()

OBox TYAltimetrieGraphic::computeBoundingBox ( ) const
virtual

Build the bounding box, with the min and max of each coordinate

Reimplemented from TYElementGraphic.

Definition at line 132 of file TYAltimetrieGraphic.cpp.

Here is the call graph for this function:

◆ display()

void TYAltimetrieGraphic::display ( TYRenderContext renderContext)
virtual

Effectue le trace openGL de l'objet graphique

Parameters
pModelerElementelement du modeleur a afficher
modeGere les modes rendu et select pour le picking.

Reimplemented from TYElementGraphic.

Definition at line 151 of file TYAltimetrieGraphic.cpp.

Here is the call graph for this function:

◆ getChilds()

void TYAltimetrieGraphic::getChilds ( TYListPtrTYElementGraphic childs,
bool  recursif = true 
)
virtual

Store each child of the box in childs. If recursif is true, also store the children of each child

Reimplemented from TYElementGraphic.

Definition at line 119 of file TYAltimetrieGraphic.cpp.

Here is the call graph for this function:

◆ setBackgroundImage()

void TYAltimetrieGraphic::setBackgroundImage ( std::shared_ptr< QImage > &  image,
int  semiX,
int  semiY,
TYPoint  ptPosition,
OVector3D  bgImageOrientation 
)

Set a background image

Parameters
QImageimage : new background image
intsemiX : half of the size of the image on the X axis
intsemiY : half of the size of the image on the Y axis
TYPointptPosition : center of the image
OVector3DbgImageOrientation : orientation of the image

Definition at line 177 of file TYAltimetrieGraphic.cpp.

Here is the call graph for this function:

◆ unsetBackgroundImage()

void TYAltimetrieGraphic::unsetBackgroundImage ( )

Unset the background image

Definition at line 188 of file TYAltimetrieGraphic.cpp.

◆ update()

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

Updates the 3D object associated to this object Note : When this method is overloaded, the parent implementation (TYElementGraphic::update()) must be called at the end

Parameters
forceoverstep the state of the flag 'modified' and apply the update.

Reimplemented from TYElementGraphic.

Definition at line 77 of file TYAltimetrieGraphic.cpp.

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

Member Data Documentation

◆ _angle

double TYAltimetrieGraphic::_angle
protected

Definition at line 118 of file TYAltimetrieGraphic.h.

◆ _bgImageOrientation

OVector3D TYAltimetrieGraphic::_bgImageOrientation
protected

Definition at line 116 of file TYAltimetrieGraphic.h.

◆ _image

std::shared_ptr<QImage> TYAltimetrieGraphic::_image
protected

Definition at line 119 of file TYAltimetrieGraphic.h.

◆ _imagePosition

TYPoint TYAltimetrieGraphic::_imagePosition
protected

Definition at line 117 of file TYAltimetrieGraphic.h.

◆ _mesh

std::shared_ptr<OGLArrayMesh> TYAltimetrieGraphic::_mesh
protected

Definition at line 120 of file TYAltimetrieGraphic.h.

◆ _oColorMap

OLookupTable TYAltimetrieGraphic::_oColorMap
protected

Definition at line 113 of file TYAltimetrieGraphic.h.

◆ _semiX

int TYAltimetrieGraphic::_semiX
protected

Definition at line 114 of file TYAltimetrieGraphic.h.

◆ _semiY

int TYAltimetrieGraphic::_semiY
protected

Definition at line 115 of file TYAltimetrieGraphic.h.


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