Debian Codegraph @

avogadro/rendering/quadoutline.h

raw
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_QUADOUTLINE_H
7 #define AVOGADRO_RENDERING_QUADOUTLINE_H
8
9 #include "linestripgeometry.h"
10
11 #include <avogadro/core/array.h>
12
13 namespace Avogadro {
14 namespace Rendering {
15
16 /**
17 * @class QuadOutline quadoutline.h
18 * <avogadro/rendering/quadoutline.h>
19 * @brief The QuadOutline class is a convenience class for creating a
20 * quadrilateral outline as a LineStripGeometry.
21 */
22 class AVOGADRORENDERING_EXPORT QuadOutline : public LineStripGeometry
23 {
24 public:
25 QuadOutline() {}
26 ~QuadOutline() 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 float lineWidth);
34 };
35
36 } // End namespace Rendering
37 } // End namespace Avogadro
38
39 #endif // AVOGADRO_RENDERING_QUADOUTLINE_H