Public Types | Public Member Functions | Static Public Attributes | Private Attributes
VectorObject2D Class Reference

Represents a 2D vector graphic object. More...

#include <VectorObject2D.h>

List of all members.

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

Detailed Description

Represents a 2D vector graphic object.

Author:
David Gossow (RX)

Definition at line 22 of file VectorObject2D.h.


Member Enumeration Documentation

Enumerator:
Lines 
Dots 

Definition at line 27 of file VectorObject2D.h.


Constructor & Destructor Documentation

VectorObject2D::VectorObject2D ( const std::vector< Point2D >  vertices,
float  r,
float  g,
float  b,
float  lineWidth = 1.0,
StyleT  style = Lines 
)

Member Function Documentation

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.

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.

Definition at line 45 of file VectorObject2D.h.

std::vector<Point2D>& VectorObject2D::vertices ( ) [inline]

Definition at line 40 of file VectorObject2D.h.


Member Data Documentation

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.

Definition at line 59 of file VectorObject2D.h.

std::vector<Point2D> VectorObject2D::m_Vertices [private]

Definition at line 54 of file VectorObject2D.h.


The documentation for this class was generated from the following file:


robbie_architecture
Author(s): Viktor Seib
autogenerated on Mon Oct 6 2014 02:53:09