ReadFramework
rdf::Polygon Class Reference

#include <Shapes.h>

Public Member Functions

 Polygon (const QPolygonF &polygon=QPolygonF())
 
void operator<< (const QPointF &pt)
 
void operator<< (const Vector2D &pt)
 
bool isEmpty () const
 
void read (const QString &pointList)
 
QString write () const
 
void translate (const QPointF &offset)
 
int size () const
 
QPolygonF polygon () const
 
QPolygonF closedPolygon () const
 
QVector< Vector2DtoPoints () const
 
void setPolygon (const QPolygonF &polygon)
 
void scale (double factor)
 
void draw (QPainter &p) const
 
bool contains (const Vector2D &pt) const
 

Static Public Member Functions

static Polygon fromCvPoints (const std::vector< cv::Point2d > &pts)
 
static Polygon fromCvPoints (const std::vector< cv::Point2f > &pts)
 
static Polygon fromCvPoints (const std::vector< cv::Point > &pts)
 
static Polygon fromRect (const Rect &rect)
 

Protected Attributes

QPolygonF mPoly
 

Constructor & Destructor Documentation

rdf::Polygon::Polygon ( const QPolygonF &  polygon = QPolygonF())

Member Function Documentation

QPolygonF rdf::Polygon::closedPolygon ( ) const

Here is the caller graph for this function:

bool rdf::Polygon::contains ( const Vector2D pt) const

Here is the caller graph for this function:

void rdf::Polygon::draw ( QPainter &  p) const

Here is the caller graph for this function:

Polygon rdf::Polygon::fromCvPoints ( const std::vector< cv::Point2d > &  pts)
static

Here is the caller graph for this function:

Polygon rdf::Polygon::fromCvPoints ( const std::vector< cv::Point2f > &  pts)
static
Polygon rdf::Polygon::fromCvPoints ( const std::vector< cv::Point > &  pts)
static
Polygon rdf::Polygon::fromRect ( const Rect rect)
static

Here is the caller graph for this function:

bool rdf::Polygon::isEmpty ( ) const

Here is the caller graph for this function:

void rdf::Polygon::operator<< ( const QPointF &  pt)
inline
void rdf::Polygon::operator<< ( const Vector2D pt)
inline
QPolygonF rdf::Polygon::polygon ( ) const

Here is the caller graph for this function:

void rdf::Polygon::read ( const QString &  pointList)

Here is the caller graph for this function:

void rdf::Polygon::scale ( double  factor)

Here is the caller graph for this function:

void rdf::Polygon::setPolygon ( const QPolygonF &  polygon)

Here is the caller graph for this function:

int rdf::Polygon::size ( ) const

Here is the caller graph for this function:

QVector< Vector2D > rdf::Polygon::toPoints ( ) const

Here is the caller graph for this function:

void rdf::Polygon::translate ( const QPointF &  offset)

Here is the caller graph for this function:

QString rdf::Polygon::write ( ) const

Here is the caller graph for this function:

Member Data Documentation

QPolygonF rdf::Polygon::mPoly
protected

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