Commit 0b795523 authored by michael's avatar michael

commentaire de l'optic et du rayon

parent f6aa1be2
......@@ -3,10 +3,12 @@
#endif
/*****************************************************************************
* class LrOptic (body) *
* class Lroptic : Cette structure représente l'optique *
* d'un objet.: sa couleur , sa transparence , sa luminance *
* et un point d'origine de type LrPoint. *
* *
* author : etudiant *
* creation : Thursday, March 6 2008 (3/6/2008) *
* author : J.Francois, M.Nauge, A.Richard, H.Souchaud, E.Vershuur *
* creation : Thursday, February 14 2008 (2/14/2008) *
* note : *
*****************************************************************************/
......
/*****************************************************************************
* class LrOptic (specification) *
* class Lroptic : Cette structure représente l'optique *
* d'un objet.: sa couleur , sa transparence , sa luminance *
* et un point d'origine de type LrPoint. *
* *
* author : etudiant *
* creation : Thursday, March 6 2008 (3/6/2008) *
* author : J.Francois, M.Nauge, A.Richard, H.Souchaud, E.Vershuur *
* creation : Thursday, February 14 2008 (2/14/2008) *
* note : *
*****************************************************************************/
......@@ -14,30 +16,50 @@ class LrOptic
{
public:
// constructors and destructor
// ***************************
/**
* @brief LrOptic constructor.
*/
LrOptic();
/**
* @brief LrOptic copy constructor
* @param source LrOptic object reference.
*/
LrOptic(const LrOptic &source);
/**
* @brief LrOptic clone.
* @return LrOptic pointer object.
*/
LrOptic * clone() const;
/**
* @brief LrRay personnal constructor
* @param luminance REAL object reference.
* @param transparency REAL object reference.
* @param color LrColor object reference.
*/
LrOptic(REAL luminance, REAL transparency, LrColor color);
/**
* @brief LrOptic destructor
*/
virtual ~LrOptic();
// assignement operator(s)
// ***********************
/**
* @brief assignement operator(s)
*/
LrOptic & operator = (const LrOptic &source);
// comparison operator(s)
// **********************
/**
* @brief comparison operator(s)
*/
friend bool operator == (const LrOptic &lhs, const LrOptic &rhs);
friend bool operator != (const LrOptic &lhs, const LrOptic &rhs);
// accessors
// *********
/**
* @brief accessors
*/
REAL getLuminance() const;
void setLuminance(REAL luminance);
......
......@@ -6,10 +6,6 @@
* author : J.Francois, M.Nauge, A.Richard, H.Souchaud, E.Vershuur *
* creation : Thursday, February 14 2008 (2/14/2008) *
* note : *
*---------------------------------------------------------------------------*
* $Id$
*---------------------------------------------------------------------------*
* Log : see end of file *
*****************************************************************************/
#ifndef LRRAY_H
......@@ -22,51 +18,68 @@ class LrRay
{
public:
// constructors and destructor
// ***************************
/**
* @brief LrRay constructor.
*/
LrRay();
/**
* @brief LrRay copy constructor
* @param source LrRay object reference.
*/
LrRay(const LrRay &source);
/**
* @brief LrRay clone.
* @return LrRay object.
*/
LrRay * clone() const;
/**
* @brief LrRay personnal constructor
* @param direction LrVector object reference.
* @param origin LrPoint object reference.
*/
LrRay(const LrVector &direction, const LrPoint &origin);
/**
* @brief LrRay destructor
*/
virtual ~LrRay();
// assignement operator(s)
// ***********************
/**
* @brief assignement operator(s)
*/
LrRay & operator = (const LrRay &source);
// comparison operator(s)
// **********************
/**
* @brief comparison operator(s)
*/
friend bool operator == (const LrRay &lhs, const LrRay &rhs);
friend bool operator != (const LrRay &lhs, const LrRay &rhs);
// accessors
// *********
/**
* @brief accessors
*/
LrVector getDirection() const;
void setDirection(const LrVector &direction);
LrPoint getOrigin() const;
void setOrigin(const LrPoint &origin);
//obtenir les coordonées du point situe a une distance k
/**
* @brief obtenir les coordonées du point situe a une distance k
* @param distanceK REAL la distance situee entre l'origine et le point desire
*/
LrPoint getPoint(REAL distanceK);
private:
// data
// ****
LrVector m_direction;
LrPoint m_origin;
};
#endif
/*****************************************************************************
* $Log$
*****************************************************************************/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment