kig
kig_document.cc
Go to the documentation of this file.
68 std::vector<ObjectHolder*> KigDocument::whatAmIOn( const Coordinate& p, const KigWidget& w ) const
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
a CoordinateSystem is what the user sees: it is kept by KigPart to show the user a grid...
Definition: coordinate_system.h:60
std::vector< ObjectHolder * > whatIsInHere(const Rect &p, const KigWidget &)
Return a vector of objects that are in the given Rect.
Definition: kig_document.cc:91
void delObject(ObjectHolder *o)
Remove the object o from the document.
Definition: kig_document.cc:151
const std::set< ObjectHolder * > & objectsSet() const
Definition: kig_document.cc:51
void addObjects(const std::vector< ObjectHolder * > &os)
Add the objects os to the document.
Definition: kig_document.cc:143
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
int getCoordinatePrecision() const
Definition: kig_document.cc:221
void setCoordinateSystem(CoordinateSystem *s)
sets the coordinate system to s , and deletes the old one.
Definition: kig_document.cc:56
Definition: coordinate_system.h:91
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
bool isPointOnCurve(const ObjectCalcer *point, const ObjectCalcer *curve)
Return true if the given point is ( by construction ) on the given curve.
Definition: calcpaths.cc:309
std::vector< ObjectHolder * > whatAmIOn(const Coordinate &p, const KigWidget &w) const
Return a vector of objects that contain the given point.
Definition: kig_document.cc:68
const std::vector< ObjectHolder * > objects() const
Get a hold of the objects of this KigDocument.
Definition: kig_document.cc:46
void setContains(Coordinate p)
this makes sure p is in the rect, extending it if necessary...
Definition: rect.cc:240
void setCoordinatePrecision(int precision)
Definition: kig_document.cc:201
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
std::vector< ObjectCalcer * > findIntersectionPoints(const ObjectCalcer *c1, const ObjectCalcer *c2) const
Return all the points that belong (by construction) on both the given curves.
Definition: kig_document.cc:248
CoordinateSystem * switchCoordinateSystem(CoordinateSystem *s)
sets the coordinate system to s , and returns the old one.
Definition: kig_document.cc:61
void addObject(ObjectHolder *oObject)
Add the objects o to the document.
Definition: kig_document.cc:138
void setNightVision(bool nv)
set to enable/disable night-vision (visibility of hidden objects)
Definition: kig_document.cc:196
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
void delObjects(const std::vector< ObjectHolder * > &os)
Remove the objects os from the document.
Definition: kig_document.cc:156
const CoordinateSystem & coordinateSystem() const
Definition: kig_document.cc:40
bool isUserSpecifiedCoordinatePrecision() const
Definition: kig_document.cc:216
Rect suggestedRect() const
Return a rect containing most of the objects, which would be a fine suggestion to map to the widget...
Definition: kig_document.cc:106
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.