kig
polygon_imp.cc
Go to the documentation of this file.
48 AbstractPolygonImp::AbstractPolygonImp( const uint npoints, const std::vector<Coordinate>& points,
188 bool AbstractPolygonImp::isOnCPolygonBorder( const Coordinate& p, double dist, const KigDocument& doc ) const
198 bool AbstractPolygonImp::isOnOPolygonBorder( const Coordinate& p, double dist, const KigDocument& ) const
std::vector< Coordinate > ptransform(const Transformation &) const
Definition: polygon_imp.cc:77
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
const char * iconForProperty(int which) const
Definition: polygon_imp.cc:380
FilledPolygonImp(const std::vector< Coordinate > &points)
Definition: polygon_imp.cc:935
bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: polygon_imp.cc:777
const ObjectImpType * impRequirementForProperty(int which) const
Definition: polygon_imp.cc:350
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: polygon_imp.cc:759
const ObjectImpType * impRequirementForProperty(int which) const
Definition: polygon_imp.cc:364
bool contains(const Coordinate &p, int width, const KigWidget &) const
Definition: polygon_imp.cc:945
virtual const ObjectImpType * impRequirementForProperty(int which) const
Definition: object_imp.cc:76
const char * iconForProperty(int which) const
Definition: polygon_imp.cc:403
virtual ObjectImp * property(int which, const KigDocument &d) const
Definition: object_imp.cc:70
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: polygon_imp.cc:750
bool isInPolygon(const Coordinate &p) const
Definition: polygon_imp.cc:137
double getProjectiveIndicator(const Coordinate &c) const
Definition: kigtransform.cpp:703
const char * iconForProperty(int which) const
Definition: polygon_imp.cc:371
const ObjectImpType * type() const
Returns the lowermost ObjectImpType that this object is an instantiation of.
Definition: polygon_imp.cc:764
virtual const QByteArrayList propertiesInternalNames() const
Definition: object_imp.cc:63
static const ObjectImpType * stype()
The ObjectImpType representing the base ObjectImp class.
Definition: object_imp.cc:284
const std::vector< Coordinate > points() const
Returns the vector with polygon points.
Definition: polygon_imp.cc:571
Coordinate attachPoint() const
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachme...
Definition: polygon_imp.cc:72
bool isMonotoneSteering() const
Definition: polygon_imp.cc:893
void drawPolygon(const std::vector< QPoint > &pts, Qt::FillRule fillRule=Qt::OddEvenFill)
draw a polygon defined by the points in pts...
Definition: kigpainter.cpp:303
ObjectImp * property(int which, const KigDocument &w) const
Definition: polygon_imp.cc:454
int size() const
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
bool equals(const ObjectImp &rhs) const
Returns true if this ObjectImp is equal to rhs.
Definition: polygon_imp.cc:645
const QByteArrayList propertiesInternalNames() const
Definition: polygon_imp.cc:272
AbstractPolygonImp(const std::vector< Coordinate > &points)
Definition: polygon_imp.cc:54
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: polygon_imp.cc:116
const ObjectImpType * impRequirementForProperty(int which) const
Definition: polygon_imp.cc:357
const ScreenInfo & screenInfo() const
the part of the document we're currently showing i.e.
Definition: kig_view.cpp:272
bool isOnSegment(const Coordinate &o, const Coordinate &a, const Coordinate &b, const double fault)
is o on the segment defined by point a and point b ? this calls isOnLine(), but also checks if o is "...
Definition: common.cpp:212
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: polygon_imp.cc:130
virtual const char * iconForProperty(int which) const
Definition: object_imp.cc:187
static const ObjectImpType * stype()
Returns the ObjectImpType representing the PolygonImp type.
Definition: polygon_imp.cc:651
bool inRect(const Rect &r, int width, const KigWidget &) const
Definition: polygon_imp.cc:210
OpenPolygonalImp(const std::vector< Coordinate > &points)
Definition: polygon_imp.cc:969
bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: polygon_imp.cc:785
const QByteArrayList properties() const
Definition: polygon_imp.cc:298
virtual bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: object_imp.cc:326
ObjectImp * property(int which, const KigDocument &w) const
Definition: polygon_imp.cc:497
void setContains(Coordinate p)
this makes sure p is in the rect, extending it if necessary...
Definition: rect.cc:240
ObjectImp * property(int which, const KigDocument &w) const
Definition: polygon_imp.cc:540
bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: polygon_imp.cc:769
bool lineInRect(const Rect &r, const Coordinate &a, const Coordinate &b, const int width, const ObjectImp *imp, const KigWidget &w)
Is the line, segment, ray or vector inside r ? We need the imp to distinguish between rays...
Definition: common.cpp:401
std::vector< Coordinate > computeConvexHull(const std::vector< Coordinate > &points)
Definition: polygon_imp.cc:990
const Coordinate apply(const double x0, const double x1, const double x2) const
Apply this Tranformation.
Definition: kigtransform.cpp:611
const QByteArrayList propertiesInternalNames() const
Definition: polygon_imp.cc:286
const QByteArrayList propertiesInternalNames() const
Definition: polygon_imp.cc:258
ObjectImp * property(int which, const KigDocument &w) const
Definition: polygon_imp.cc:445
bool contains(const Coordinate &p, int width, const KigWidget &) const
Definition: polygon_imp.cc:963
ClosedPolygonalImp(const std::vector< Coordinate > &points)
Definition: polygon_imp.cc:951
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
ObjectImp * transform(const Transformation &) const
Return this ObjectImp, transformed by the transformation t.
Definition: polygon_imp.cc:123
bool isPropertyDefinedOnOrThroughThisImp(int which) const
Definition: polygon_imp.cc:793
bool isOnCPolygonBorder(const Coordinate &p, double dist, const KigDocument &doc) const
Definition: polygon_imp.cc:188
const QByteArrayList propertiesInternalNames() const
Definition: polygon_imp.cc:253
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
const QByteArrayList properties() const
Definition: polygon_imp.cc:317
bool contains(const Coordinate &p, int width, const KigWidget &) const
Definition: polygon_imp.cc:980
const char * iconForProperty(int which) const
Definition: polygon_imp.cc:426
void drawSegment(const Coordinate &from, const Coordinate &to)
draw a segment...
Definition: kigpainter.cpp:94
const ObjectImpType * impRequirementForProperty(int which) const
Definition: polygon_imp.cc:343
Definition: object_imp.h:56
bool isOnOPolygonBorder(const Coordinate &p, double dist, const KigDocument &doc) const
Definition: polygon_imp.cc:198
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.