Commit 532e949b authored by Emeric Verschuur's avatar Emeric Verschuur

Ajout des objets LrGeometry et Cie

parent ce649abf
//
// C++ Implementation: LrGeometry
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "LrGeometry.h"
LrGeometry::LrGeometry()
{
}
LrGeometry::~LrGeometry()
{
}
bool LrGeometry::getIntersection(const LrRay &ray, LrHit &hit) const
{
}
//
// C++ Interface: LrGeometry
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief 3D object management.
* @file LrGeometry.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LROBJECT3D_H
#define LROBJECT3D_H
#include "config.h"
#include "LrMatrix.h"
#include "LrPoint3d.h"
#include "LrRay.h"
/**
* This class can manage a geometry.
* @brief Geometry management.
*/
class LrGeometry
{
public:
/**
* @brief LrGeometry constructor.
*/
LrGeometry();
/**
* @brief LrGeometry destructor.
*/
virtual ~LrGeometry()=0;
/**
* @brief Give the intersection point of this object and a ray.
* @param ray LrRay object reference.
* @return un LrPoint3d object.
*/
virtual bool getIntersection(const LrRay &ray, LrHit &hit) const;
private:
};
#endif
//
// C++ Implementation: LrGeometryPoint
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "LrGeometryPoint.h"
LrGeometryPoint::LrGeometryPoint()
:
LrGeometry()
{
}
LrGeometryPoint::~LrGeometryPoint()
{
}
bool LrGeometryPoint::getIntersection(const LrRay &ray, LrHit &hit) const
{
}
//
// C++ Interface: LrGeometryPoint
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief Point (geometry) management.
* @file LrGeometryPoint.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LROBJECT3D_H
#define LROBJECT3D_H
#include "config.h"
#include "LrMatrix.h"
#include "LrPoint3d.h"
#include "LrRay.h"
/**
* This class can manage a point (geometry).
* @brief Point (geometry) management.
*/
class LrGeometryPoint : public LrGeometry
{
public:
/**
* @brief LrGeometryPoint constructor.
*/
LrGeometryPoint();
/**
* @brief LrGeometryPoint destructor.
*/
virtual ~LrGeometryPoint();
/**
* @brief Give the intersection point of this object and a ray.
* @param ray LrRay object reference.
* @return un LrPoint3d object.
*/
virtual bool getIntersection(const LrRay &ray, LrHit &hit) const;
private:
};
#endif
//
// C++ Implementation: LrGeometryQuadrangle
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "LrGeometryQuadrangle.h"
LrGeometryQuadrangle::LrGeometryQuadrangle()
:
LrGeometry()
{
}
LrGeometryQuadrangle::~LrGeometryQuadrangle()
{
}
bool LrGeometryQuadrangle::getIntersection(const LrRay &ray, LrHit &hit) const
{
}
//
// C++ Interface: LrGeometryQuadrangle
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief Quadrangle (geometry) management.
* @file LrGeometryQuadrangle.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LROBJECT3D_H
#define LROBJECT3D_H
#include "config.h"
#include "LrMatrix.h"
#include "LrPoint3d.h"
#include "LrRay.h"
/**
* This class can manage a 3D quadrangle (geometry).
* @brief Quadrangle (geometry) management.
*/
class LrGeometryQuadrangle : public LrGeometry
{
public:
/**
* @brief LrGeometryQuadrangle constructor.
*/
LrGeometryQuadrangle();
/**
* @brief LrGeometryQuadrangle destructor.
*/
virtual ~LrGeometryQuadrangle();
/**
* @brief Give the intersection point of this object and a ray.
* @param ray LrRay object reference.
* @return un LrPoint3d object.
*/
virtual bool getIntersection(const LrRay &ray, LrHit &hit) const;
private:
};
#endif
//
// C++ Implementation: LrGeometrySphere
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "LrGeometrySphere.h"
LrGeometrySphere::LrGeometrySphere()
:
LrGeometry()
{
}
LrGeometrySphere::~LrGeometrySphere()
{
}
bool LrGeometrySphere::getIntersection(const LrRay &ray, LrHit &hit) const
{
}
//
// C++ Interface: LrGeometrySphere
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief Sphere (geometry) management.
* @file LrGeometrySphere.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LROBJECT3D_H
#define LROBJECT3D_H
#include "config.h"
#include "LrMatrix.h"
#include "LrPoint3d.h"
#include "LrRay.h"
/**
* This class can manage a sphere (geometry).
* @brief Sphere (geometry) management.
*/
class LrGeometrySphere : public LrGeometry
{
public:
/**
* @brief LrGeometrySphere constructor.
*/
LrGeometrySphere();
/**
* @brief LrGeometrySphere destructor.
*/
virtual ~LrGeometrySphere();
/**
* @brief Give the intersection point of this object and a ray.
* @param ray LrRay object reference.
* @return un LrPoint3d object.
*/
virtual bool getIntersection(const LrRay &ray, LrHit &hit) const;
private:
};
#endif
//
// C++ Implementation: LrGeometryTriangle
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "LrGeometryTriangle.h"
LrGeometryTriangle::LrGeometryTriangle()
:
LrGeometry()
{
}
LrGeometryTriangle::~LrGeometryTriangle()
{
}
bool LrGeometryTriangle::getIntersection(const LrRay &ray, LrHit &hit) const
{
}
//
// C++ Interface: LrGeometryTriangle
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief Triangle (geometry) management.
* @file LrGeometryTriangle.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LROBJECT3D_H
#define LROBJECT3D_H
#include "config.h"
#include "LrMatrix.h"
#include "LrPoint3d.h"
#include "LrRay.h"
/**
* This class can manage a triangle (geometry).
* @brief Triangle (geometry) management.
*/
class LrGeometryTriangle : public LrGeometry
{
public:
/**
* @brief LrGeometryTriangle constructor.
*/
LrGeometryTriangle();
/**
* @brief LrGeometryTriangle destructor.
*/
virtual ~LrGeometryTriangle();
/**
* @brief Give the intersection point of this object and a ray.
* @param ray LrRay object reference.
* @return un LrPoint3d object.
*/
virtual bool getIntersection(const LrRay &ray, LrHit &hit) const;
private:
};
#endif
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