kig
#include <polygon_imp.h>
Public Types | |
typedef AbstractPolygonImp | Parent |
Public Types inherited from AbstractPolygonImp | |
typedef ObjectImp | Parent |
Public Member Functions | |
ClosedPolygonalImp (const std::vector< Coordinate > &points) | |
bool | contains (const Coordinate &p, int width, const KigWidget &) const |
ClosedPolygonalImp * | 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 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 closed polygonal.
Definition at line 130 of file polygon_imp.h.
Member Typedef Documentation
Definition at line 134 of file polygon_imp.h.
Constructor & Destructor Documentation
ClosedPolygonalImp::ClosedPolygonalImp | ( | const std::vector< Coordinate > & | points | ) |
Definition at line 951 of file polygon_imp.cc.
Member Function Documentation
|
virtual |
Implements ObjectImp.
Definition at line 963 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 620 of file polygon_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 956 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 403 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 357 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 785 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 243 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 317 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 272 of file polygon_imp.cc.
|
virtual |
Reimplemented from AbstractPolygonImp.
Definition at line 497 of file polygon_imp.cc.
|
static |
Definition at line 678 of file polygon_imp.cc.
|
virtual |
Return this ObjectImp, transformed by the transformation t.
Implements ObjectImp.
Definition at line 123 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 759 of file polygon_imp.cc.
|
virtual |
Implements ObjectImp.
Definition at line 635 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.