kig
#include <polygon_imp.h>
Public Types | |
typedef AbstractPolygonImp | Parent |
Public Types inherited from AbstractPolygonImp | |
typedef ObjectImp | Parent |
Public Member Functions | |
FilledPolygonImp (const std::vector< Coordinate > &points) | |
bool | contains (const Coordinate &p, int width, const KigWidget &) const |
FilledPolygonImp * | copy () const |
void | draw (KigPainter &p) const |
const char * | iconForProperty (int which) const |
const ObjectImpType * | impRequirementForProperty (int which) const |
bool | isPropertyDefinedOnOrThroughThisImp (int which) const |
int | numberOfProperties () const |
const QByteArrayList | properties () const |
const QByteArrayList | propertiesInternalNames () const |
ObjectImp * | property (int which, const KigDocument &w) const |
ObjectImp * | transform (const Transformation &) const |
const ObjectImpType * | type () const |
void | visit (ObjectImpVisitor *vtor) const |
Public Member Functions inherited from AbstractPolygonImp | |
AbstractPolygonImp (const std::vector< Coordinate > &points) | |
AbstractPolygonImp (const uint nsides, const std::vector< Coordinate > &points, const Coordinate ¢erofmass) | |
~AbstractPolygonImp () | |
double | area () const |
Coordinate | attachPoint () const |
const Coordinate | centerOfMass () const |
double | cperimeter () const |
bool | equals (const ObjectImp &rhs) const |
bool | inRect (const Rect &r, int width, const KigWidget &) const |
bool | isConvex () const |
bool | isInPolygon (const Coordinate &p) const |
bool | isMonotoneSteering () const |
bool | isOnCPolygonBorder (const Coordinate &p, double dist, const KigDocument &doc) const |
bool | isOnOPolygonBorder (const Coordinate &p, double dist, const KigDocument &doc) const |
bool | isTwisted () const |
uint | npoints () const |
double | operimeter () const |
const std::vector< Coordinate > | points () const |
std::vector< Coordinate > | ptransform (const Transformation &) const |
Rect | surroundingRect () const |
bool | valid () const |
int | windingNumber () const |
Public Member Functions inherited from ObjectImp | |
virtual | ~ObjectImp () |
virtual bool | canFillInNextEscape () const |
virtual void | fillInNextEscape (QString &s, const KigDocument &) const |
int | getPropGid (const char *pname) const |
int | getPropLid (int propgid) const |
const char * | getPropName (int propgid) const |
bool | inherits (const ObjectImpType *t) const |
virtual bool | isCache () const |
bool | valid () const |
Static Public Member Functions | |
static const ObjectImpType * | stype () |
static const ObjectImpType * | stype3 () |
static const ObjectImpType * | stype4 () |
Static Public Member Functions inherited from AbstractPolygonImp | |
static const ObjectImpType * | stype () |
Static Public Member Functions inherited from ObjectImp | |
static const ObjectImpType * | stype () |
Additional Inherited Members | |
Protected Member Functions inherited from ObjectImp | |
ObjectImp () | |
Protected Attributes inherited from AbstractPolygonImp | |
Coordinate | mcenterofmass |
uint | mnpoints |
std::vector< Coordinate > | mpoints |
Detailed Description
An ObjectImp representing a filled polygon.
Definition at line 101 of file polygon_imp.h.
Member Typedef Documentation
Definition at line 105 of file polygon_imp.h.
Constructor & Destructor Documentation
FilledPolygonImp::FilledPolygonImp | ( | const std::vector< Coordinate > & | points | ) |
Definition at line 935 of file polygon_imp.cc.
Member Function Documentation
|
virtual |
Implements ObjectImp.
Definition at line 945 of file polygon_imp.cc.
|
virtual |
Returns a copy of this ObjectImp.
The copy is an exact copy. Changes to the copy don't affect the original.
Implements ObjectImp.
Definition at line 615 of file polygon_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 940 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 380 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 350 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 777 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 238 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 303 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 258 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 454 of file polygon_imp.cc.
|
static |
Definition at line 660 of file polygon_imp.cc.
|
static |
Definition at line 714 of file polygon_imp.cc.
|
static |
Definition at line 732 of file polygon_imp.cc.
|
virtual |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 116 of file polygon_imp.cc.
|
virtual |
Returns the lowermost ObjectImpType that this object is an instantiation of.
E.g. if you want to get a string containing the internal name of the type of an object, you can do:
Implements ObjectImp.
Definition at line 750 of file polygon_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 630 of file polygon_imp.cc.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.