Drive Engine  1.0.0
Plateforme de reconstruction 3D
DriveEngine::DefaultColor Class Reference
Inheritance diagram for DriveEngine::DefaultColor:
DriveEngine::IColor DriveEngine::IDatatype IExportable

Public Member Functions

 CONSTRUCTOR_H (IColor, DefaultColor)
 Default constructor. More...
 
 CONSTRUCTOR_H (IColor, DefaultColor, float intensity)
 Constructor for a scaled-gray color. More...
 
 CONSTRUCTOR_H (IColor, DefaultColor, float red, float green, float blue)
 Constructor for a RGB color. More...
 
 DESTRUCTOR_H (DefaultColor)
 
virtual float GetRed () const
 Gets the red composant value. If the pixel is gray scaled, return the intensity. More...
 
virtual float GetBlue () const
 Gets the blue composant value. If the pixel is gray scaled, return the intensity. More...
 
virtual float GetGreen () const
 Gets the green composant value. If the pixel is gray scaled, return the intensity. More...
 
virtual float GetIntensity () const
 Gets the intensity. More...
 
- Public Member Functions inherited from IExportable
virtual void Delete () const =0
 Deletes the current object. Needed for memory management. More...
 

Member Function Documentation

DriveEngine::DefaultColor::CONSTRUCTOR_H ( IColor  ,
DefaultColor   
)

Default constructor.

Exception safety : No-throw guarantee. This member function never throws exceptions.

DriveEngine::DefaultColor::CONSTRUCTOR_H ( IColor  ,
DefaultColor  ,
float  intensity 
)

Constructor for a scaled-gray color.

Exception safety : Basic exception safety. This member function throws exceptions.

Parameters
intensityThe gray intensity. It must vary from 0.0 (black) to 1.0 (white)
DriveEngine::DefaultColor::CONSTRUCTOR_H ( IColor  ,
DefaultColor  ,
float  red,
float  green,
float  blue 
)

Constructor for a RGB color.

Exception safety : Basic exception safety. This member function throws exceptions.

Parameters
redThe red composant value. It must vary from 0.0 (black) to 1.0 (red)
greenThe green composant value. It must vary from 0.0 (black) to 1.0 (green)
blueThe blue composant value. It must vary from 0.0 (black) to 1.0 (blue)
virtual float DriveEngine::DefaultColor::GetBlue ( ) const
virtual

Gets the blue composant value. If the pixel is gray scaled, return the intensity.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The blue composant value. It vary from 0.0 to 1.0.

Implements DriveEngine::IColor.

virtual float DriveEngine::DefaultColor::GetGreen ( ) const
virtual

Gets the green composant value. If the pixel is gray scaled, return the intensity.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The green composant value. It vary from 0.0 to 1.0.

Implements DriveEngine::IColor.

virtual float DriveEngine::DefaultColor::GetIntensity ( ) const
virtual

Gets the intensity.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The intensity value. It vary from 0.0 to 1.0.

Implements DriveEngine::IColor.

virtual float DriveEngine::DefaultColor::GetRed ( ) const
virtual

Gets the red composant value. If the pixel is gray scaled, return the intensity.

Exception safety : No-throw guarantee. This member function never throws exceptions.

Returns
The red composant value. It vary from 0.0 to 1.0.

Implements DriveEngine::IColor.


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