Represents a 2D vector graphic object. More...
#include <VectorObject2D.h>
Public Types | |
enum | StyleT { Lines, Dots } |
Public Member Functions | |
float | b () |
float | g () |
float | lineWidth () |
void | paintGl () |
float | r () |
void | setColor (float r, float g, float b) |
void | setLineWidth (float lineWidth) |
void | setStyle (StyleT style) |
void | setVertices (std::vector< Point2D > &vertices) |
StyleT | style () |
VectorObject2D (const std::vector< Point2D > vertices, float r, float g, float b, float lineWidth=1.0, StyleT style=Lines) | |
std::vector< Point2D > & | vertices () |
~VectorObject2D () | |
Static Public Attributes | |
static const unsigned short | ClassVersion |
Private Attributes | |
float | m_B |
float | m_G |
float | m_LineWidth |
float | m_R |
StyleT | m_Style |
std::vector< Point2D > | m_Vertices |
Represents a 2D vector graphic object.
Definition at line 22 of file VectorObject2D.h.
Definition at line 27 of file VectorObject2D.h.
VectorObject2D::VectorObject2D | ( | const std::vector< Point2D > | vertices, |
float | r, | ||
float | g, | ||
float | b, | ||
float | lineWidth = 1.0 , |
||
StyleT | style = Lines |
||
) |
float VectorObject2D::b | ( | ) | [inline] |
Definition at line 43 of file VectorObject2D.h.
float VectorObject2D::g | ( | ) | [inline] |
Definition at line 42 of file VectorObject2D.h.
float VectorObject2D::lineWidth | ( | ) | [inline] |
Definition at line 44 of file VectorObject2D.h.
void VectorObject2D::paintGl | ( | ) |
float VectorObject2D::r | ( | ) | [inline] |
Definition at line 41 of file VectorObject2D.h.
void VectorObject2D::setColor | ( | float | r, |
float | g, | ||
float | b | ||
) | [inline] |
Definition at line 48 of file VectorObject2D.h.
void VectorObject2D::setLineWidth | ( | float | lineWidth | ) | [inline] |
Definition at line 49 of file VectorObject2D.h.
void VectorObject2D::setStyle | ( | StyleT | style | ) | [inline] |
Definition at line 50 of file VectorObject2D.h.
void VectorObject2D::setVertices | ( | std::vector< Point2D > & | vertices | ) | [inline] |
Definition at line 47 of file VectorObject2D.h.
StyleT VectorObject2D::style | ( | ) | [inline] |
Definition at line 45 of file VectorObject2D.h.
std::vector<Point2D>& VectorObject2D::vertices | ( | ) | [inline] |
Definition at line 40 of file VectorObject2D.h.
const unsigned short VectorObject2D::ClassVersion [static] |
Definition at line 32 of file VectorObject2D.h.
float VectorObject2D::m_B [private] |
Definition at line 57 of file VectorObject2D.h.
float VectorObject2D::m_G [private] |
Definition at line 56 of file VectorObject2D.h.
float VectorObject2D::m_LineWidth [private] |
Definition at line 58 of file VectorObject2D.h.
float VectorObject2D::m_R [private] |
Definition at line 55 of file VectorObject2D.h.
StyleT VectorObject2D::m_Style [private] |
Definition at line 59 of file VectorObject2D.h.
std::vector<Point2D> VectorObject2D::m_Vertices [private] |
Definition at line 54 of file VectorObject2D.h.