Read@CVL
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
bool rdf::Polygon::contains ( const Vector2D pt) const
void rdf::Polygon::draw ( QPainter &  p) const
Polygon rdf::Polygon::fromCvPoints ( const std::vector< cv::Point2d > &  pts)
static
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
bool rdf::Polygon::isEmpty ( ) const
void rdf::Polygon::operator<< ( const QPointF &  pt)
inline
void rdf::Polygon::operator<< ( const Vector2D pt)
inline
QPolygonF rdf::Polygon::polygon ( ) const
void rdf::Polygon::read ( const QString &  pointList)
void rdf::Polygon::scale ( double  factor)
void rdf::Polygon::setPolygon ( const QPolygonF &  polygon)
int rdf::Polygon::size ( ) const
QVector< Vector2D > rdf::Polygon::toPoints ( ) const
void rdf::Polygon::translate ( const QPointF &  offset)
QString rdf::Polygon::write ( ) const

Member Data Documentation

QPolygonF rdf::Polygon::mPoly
protected

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