| 1 |
/****************************************************************************** |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
******************************************************************************/ |
| 5 |
|
| 6 |
#ifndef AVOGADRO_RENDERING_QUAD_H |
| 7 |
#define AVOGADRO_RENDERING_QUAD_H |
| 8 |
|
| 9 |
#include "meshgeometry.h" |
| 10 |
|
| 11 |
#include <avogadro/core/array.h> |
| 12 |
|
| 13 |
namespace Avogadro { |
| 14 |
namespace Rendering { |
| 15 |
|
| 16 |
/** |
| 17 |
* @class Quad quad.h |
| 18 |
* <avogadro/rendering/quad.h> |
| 19 |
* @brief The Quad class is a convenience class for creating a quadrilateral |
| 20 |
* mesh. |
| 21 |
*/ |
| 22 |
class AVOGADRORENDERING_EXPORT Quad : public MeshGeometry |
| 23 |
{ |
| 24 |
public: |
| 25 |
Quad() {} |
| 26 |
~Quad() override {} |
| 27 |
|
| 28 |
/** |
| 29 |
* @brief setQuad Set the four corners of the quad. |
| 30 |
*/ |
| 31 |
void setQuad(const Vector3f& topLeft, const Vector3f& topRight, |
| 32 |
const Vector3f& bottomLeft, const Vector3f& bottomRight); |
| 33 |
}; |
| 34 |
|
| 35 |
} // End namespace Rendering |
| 36 |
} // End namespace Avogadro |
| 37 |
|
| 38 |
#endif // AVOGADRO_RENDERING_QUAD_H |