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

#include <OGLLightElement.h>

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

Public Member Functions

 OGLLightElement ()
 
virtual ~OGLLightElement ()
 
virtual int render ()
 
void init (int index, OPoint3D position, float intensity)
 
void setPosition (const OPoint3D &position)
 
void setIntensity (const float intensity)
 
double * getPosition ()
 
float getIntensity ()
 
- Public Member Functions inherited from OGLElement
 OGLElement ()
 
virtual ~OGLElement ()
 
void setDisplayPosition (double displayPositionX, double displayPositionY)
 
void setVisibility (bool bVisible)
 
bool getVisibility ()
 
void setIs3D (bool bIs3D)
 
bool getIs3D ()
 

Protected Attributes

OPoint3D m_oPosition
 
float m_fIntensity
 
int m_iIndex
 
OGLLightm_pOGLLightToDisplay
 
- Protected Attributes inherited from OGLElement
double m_DisplayPositionX
 
double m_DisplayPositionY
 
bool m_bVisible
 
bool m_bIs3D
 

Detailed Description

Classe de light en tant qu'elemement

Definition at line 37 of file OGLLightElement.h.

Constructor & Destructor Documentation

◆ OGLLightElement()

OGLLightElement::OGLLightElement ( )

Constructeur.

Definition at line 33 of file OGLLightElement.cpp.

Here is the call graph for this function:

◆ ~OGLLightElement()

OGLLightElement::~OGLLightElement ( )
virtual

Destructeur.

Definition at line 42 of file OGLLightElement.cpp.

Member Function Documentation

◆ getIntensity()

float OGLLightElement::getIntensity ( )
inline

Definition at line 57 of file OGLLightElement.h.

◆ getPosition()

double* OGLLightElement::getPosition ( )
inline

Definition at line 56 of file OGLLightElement.h.

Here is the call graph for this function:

◆ init()

void OGLLightElement::init ( int  index,
OPoint3D  position,
float  intensity 
)

Definition at line 50 of file OGLLightElement.cpp.

◆ render()

int OGLLightElement::render ( )
virtual

Reimplemented from OGLElement.

Definition at line 57 of file OGLLightElement.cpp.

Here is the call graph for this function:

◆ setIntensity()

void OGLLightElement::setIntensity ( const float  intensity)
inline

Definition at line 54 of file OGLLightElement.h.

◆ setPosition()

void OGLLightElement::setPosition ( const OPoint3D position)
inline

Definition at line 53 of file OGLLightElement.h.

Member Data Documentation

◆ m_fIntensity

float OGLLightElement::m_fIntensity
protected

Definition at line 61 of file OGLLightElement.h.

◆ m_iIndex

int OGLLightElement::m_iIndex
protected

Definition at line 62 of file OGLLightElement.h.

◆ m_oPosition

OPoint3D OGLLightElement::m_oPosition
protected

Definition at line 57 of file OGLLightElement.h.

◆ m_pOGLLightToDisplay

OGLLight* OGLLightElement::m_pOGLLightToDisplay
protected

Definition at line 63 of file OGLLightElement.h.


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