• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

Public Types | Public Member Functions | Static Public Member Functions | List of all members
ClosedPolygonalImp Class Reference

#include <polygon_imp.h>

Inheritance diagram for ClosedPolygonalImp:
Inheritance graph
[legend]

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 &centerofmass)
 
 ~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

typedef AbstractPolygonImp ClosedPolygonalImp::Parent

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

bool ClosedPolygonalImp::contains ( const Coordinate &  p,
int  width,
const KigWidget &  w 
) const
virtual

Implements ObjectImp.

Definition at line 963 of file polygon_imp.cc.

ClosedPolygonalImp * ClosedPolygonalImp::copy ( ) const
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.

void ClosedPolygonalImp::draw ( KigPainter &  p) const
virtual

Implements ObjectImp.

Definition at line 956 of file polygon_imp.cc.

const char * ClosedPolygonalImp::iconForProperty ( int  which) const
virtual

Reimplemented from AbstractPolygonImp.

Definition at line 403 of file polygon_imp.cc.

const ObjectImpType * ClosedPolygonalImp::impRequirementForProperty ( int  which) const
virtual

Reimplemented from AbstractPolygonImp.

Definition at line 357 of file polygon_imp.cc.

bool ClosedPolygonalImp::isPropertyDefinedOnOrThroughThisImp ( int  which) const
virtual

Reimplemented from AbstractPolygonImp.

Definition at line 785 of file polygon_imp.cc.

int ClosedPolygonalImp::numberOfProperties ( ) const
virtual

Reimplemented from AbstractPolygonImp.

Definition at line 243 of file polygon_imp.cc.

const QByteArrayList ClosedPolygonalImp::properties ( ) const
virtual

Reimplemented from AbstractPolygonImp.

Definition at line 317 of file polygon_imp.cc.

const QByteArrayList ClosedPolygonalImp::propertiesInternalNames ( ) const
virtual

Reimplemented from AbstractPolygonImp.

Definition at line 272 of file polygon_imp.cc.

ObjectImp * ClosedPolygonalImp::property ( int  which,
const KigDocument &  w 
) const
virtual

Reimplemented from AbstractPolygonImp.

Definition at line 497 of file polygon_imp.cc.

const ObjectImpType * ClosedPolygonalImp::stype ( )
static

Definition at line 678 of file polygon_imp.cc.

ObjectImp * ClosedPolygonalImp::transform ( const Transformation &  t) const
virtual

Return this ObjectImp, transformed by the transformation t.

Implements ObjectImp.

Definition at line 123 of file polygon_imp.cc.

const ObjectImpType * ClosedPolygonalImp::type ( ) const
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:

std::string typename = object.type()->internalName();

Implements ObjectImp.

Definition at line 759 of file polygon_imp.cc.

void ClosedPolygonalImp::visit ( ObjectImpVisitor *  vtor) const
virtual

Implements ObjectImp.

Definition at line 635 of file polygon_imp.cc.


The documentation for this class was generated from the following files:
  • polygon_imp.h
  • polygon_imp.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal