18#ifndef KIG_OBJECTS_POINT_IMP_H
19#define KIG_OBJECTS_POINT_IMP_H
21#include "object_imp.h"
22#include "../misc/coordinate.h"
36 static const ObjectImpType*
stype();
44 Rect surroundingRect()
const;
56 void draw( KigPainter& p )
const;
57 bool contains(
const Coordinate& p,
int width,
const KigWidget& )
const;
58 bool inRect(
const Rect& r,
int width,
const KigWidget& )
const;
60 const uint numberOfProperties()
const;
61 const QCStringList properties()
const;
62 const QCStringList propertiesInternalNames()
const;
63 ObjectImp* property( uint which,
const KigDocument& d )
const;
64 const char* iconForProperty( uint which )
const;
65 const ObjectImpType* impRequirementForProperty( uint which )
const;
66 bool isPropertyDefinedOnOrThroughThisImp( uint which )
const;
72 const ObjectImpType*
type()
const;
73 void visit( ObjectImpVisitor* vtor )
const;
75 void fillInNextEscape( TQString& s,
const KigDocument& )
const;
76 bool canFillInNextEscape()
const;
78 bool equals(
const ObjectImp& rhs )
const;
87 static const ObjectImpType* stype();
88 const ObjectImpType* type()
const;
The Coordinate class is the basic class representing a 2D location by its x and y components.
Definition: coordinate.h:34
Instances of this class represent a certain Object type.
Definition: object_imp.h:89
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:219
An Object representing a point.
Definition: point_imp.h:29
Point(const Coordinate &c)
Construct a Point with coordinate c.
void setCoordinate(const Coordinate &c)
Set the coordinate of this Point.
bool equals(const Object &rhs) const
Returns true if this Object is equal to rhs.
static const ObjectType * stype()
Returns the ObjectType representing Point's.
Point * copy() const
Returns a copy of this Object.
Object * transform(const Transformation &) const
Return this Object, transformed by the transformation t.
Coordinate attachPoint() const
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachme...
const Coordinate & coordinate() const
Get the coordinate of this Point.
Definition: point_imp.h:50
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.