18 #ifndef KIG_OBJECTS_OTHER_IMP_H 19 #define KIG_OBJECTS_OTHER_IMP_H 21 #include "curve_imp.h" 22 #include "../misc/common.h" 23 #include "../misc/coordinate.h" 32 const double mstartangle;
39 static const ObjectImpType* stype();
45 AngleImp(
const Coordinate& pt,
double start_angle_in_radials,
46 double angle_in_radials );
51 void draw( KigPainter& p )
const;
52 bool contains(
const Coordinate& p,
int width,
const KigWidget& )
const;
53 bool inRect(
const Rect& r,
int width,
const KigWidget& )
const;
54 Rect surroundingRect()
const;
57 const uint numberOfProperties()
const;
58 const QCStringList properties()
const;
59 const QCStringList propertiesInternalNames()
const;
60 ObjectImp* property( uint which,
const KigDocument& w )
const;
61 const char* iconForProperty( uint which )
const;
62 const ObjectImpType* impRequirementForProperty( uint which )
const;
63 bool isPropertyDefinedOnOrThroughThisImp( uint which )
const;
65 ObjectImp* copy()
const;
70 const double size()
const;
71 const ObjectImpType* type()
const;
72 void visit( ObjectImpVisitor* vtor )
const;
85 const double angle()
const {
return mangle; }
87 bool equals(
const ObjectImp& rhs )
const;
102 static const ObjectImpType* stype();
112 const Coordinate getPoint(
double param,
const KigDocument& )
const;
113 double getParam(
const Coordinate&,
const KigDocument& )
const;
115 void draw( KigPainter& p )
const;
116 bool contains(
const Coordinate& p,
int width,
const KigWidget& )
const;
117 bool inRect(
const Rect& r,
int width,
const KigWidget& )
const;
118 Rect surroundingRect()
const;
120 const uint numberOfProperties()
const;
121 const QCStringList properties()
const;
122 const QCStringList propertiesInternalNames()
const;
123 ObjectImp* property( uint which,
const KigDocument& w )
const;
124 const char* iconForProperty( uint which )
const;
125 const ObjectImpType* impRequirementForProperty( uint which )
const;
126 bool isPropertyDefinedOnOrThroughThisImp( uint which )
const;
128 VectorImp* copy()
const;
145 const double length()
const;
151 const ObjectImpType* type()
const;
152 void visit( ObjectImpVisitor* vtor )
const;
154 bool equals(
const ObjectImp& rhs )
const;
156 bool containsPoint(
const Coordinate& p,
const KigDocument& doc )
const;
157 bool internalContainsPoint(
const Coordinate& p,
double threshold )
const;
175 static const ObjectImpType* stype();
181 ArcImp(
const Coordinate& center,
const double radius,
182 const double startangle,
const double angle );
184 ArcImp* copy()
const;
188 void draw( KigPainter& p )
const;
189 bool contains(
const Coordinate& p,
int width,
const KigWidget& w )
const;
190 bool inRect(
const Rect& r,
int width,
const KigWidget& si )
const;
191 Rect surroundingRect()
const;
194 const uint numberOfProperties()
const;
195 const QCStringList properties()
const;
196 const QCStringList propertiesInternalNames()
const;
197 ObjectImp* property( uint which,
const KigDocument& d )
const;
198 const char* iconForProperty( uint which )
const;
199 const ObjectImpType* impRequirementForProperty( uint which )
const;
200 bool isPropertyDefinedOnOrThroughThisImp( uint which )
const;
202 const ObjectImpType* type()
const;
203 void visit( ObjectImpVisitor* vtor )
const;
205 double getParam(
const Coordinate& c,
const KigDocument& d )
const;
206 const Coordinate getPoint(
double p,
const KigDocument& d )
const;
215 double radius()
const;
219 double startAngle()
const;
223 double angle()
const;
235 const double sectorSurface()
const;
237 bool equals(
const ObjectImp& rhs )
const;
239 bool containsPoint(
const Coordinate& p,
const KigDocument& doc )
const;
240 bool internalContainsPoint(
const Coordinate& p,
double threshold )
const;
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:218
Simple class representing a line.
Definition: common.h:60
const Coordinate point() const
Return the center of this angle.
Definition: other_imp.h:77
const double startAngle() const
Return the start angle in radians of this angle.
Definition: other_imp.h:81
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
const double angle() const
Return the dimension in radians of this angle.
Definition: other_imp.h:85