Commit be5cbc90 authored by Emeric Verschuur's avatar Emeric Verschuur

Add LrObject3D and derivates classes.

parent 70c5ec82
//
// C++ Implementation: lrcomposedobject3d
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "lrcomposedobject3d.h"
LrComposedObject3D::LrComposedObject3D()
: LrObject3D()
{
}
LrComposedObject3D::~LrComposedObject3D()
{
}
//
// C++ Interface: lrcomposedobject3d
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief 3D composed object management.
* @file lrcomposedobject3d.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LRCOMPOSEDOBJECT3D_H
#define LRCOMPOSEDOBJECT3D_H
#include "lrobject3d.h"
/**
* This class can manage a 3D elementary objects.
* @brief 3D elementary object management.
*/
/**
@author Emeric Verschuur <contact@mr-ti.com>
*/
class LrComposedObject3D : public LrObject3D
{
public:
LrComposedObject3D();
~LrComposedObject3D();
};
#endif
//
// C++ Implementation: lrelementaryobject3d
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "lrelementaryobject3d.h"
LrElementaryObject3D::LrElementaryObject3D()
: LrObject3D()
{
}
LrElementaryObject3D::~LrElementaryObject3D()
{
}
//
// C++ Interface: lrelementaryobject3d
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief 3D elementary object management.
* @file lrelementaryobject3d.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LRELEMENTARYOBJECT3D_H
#define LRELEMENTARYOBJECT3D_H
#include "lrobject3d.h"
/**
* This class can manage a 3D elementary objects.
* @brief 3D elementary object management.
*/
class LrElementaryObject3D : public LrObject3D
{
public:
LrElementaryObject3D();
~LrElementaryObject3D();
};
#endif
//
// C++ Implementation: lrobject3d
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "lrobject3d.h"
LrObject3D::LrObject3D()
:
m_mat()
{
}
LrObject3D::~LrObject3D()
{
}
LrPoint3d LrObject3D::getIntersection(const LrRay &ray) const
{
}
//
// C++ Interface: lrobject3d
//
// Description:
//
//
// Author: Emeric Verschuur <contact@mr-ti.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @brief 3D object management.
* @file lrobject3d.h
* @author Emeric VERSCHUUR <contact@mr-ti.com>, (C) 2008
*/
#ifndef LROBJECT3D_H
#define LROBJECT3D_H
#include "LrMatrix.h"
/**
* This class can manage a 3D objects.
* @brief 3D object management.
*/
class LrObject3D
{
public:
/**
* @brief LrObject3D constructor.
*/
LrObject3D();
/**
* @brief LrObject3D destructor.
*/
virtual ~LrObject3D()=0;
/**
* @brief Give the intersection point of this object and a ray.
* @param ray LrRay object reference.
* @return un LrPoint3d object.
*/
LrPoint3d getIntersection(const LrRay &ray) const;
private:
LrMatrix m_mat;
};
#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