kig
kig_document.h
Go to the documentation of this file.
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
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
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 setCoordinatePrecision(int precision)
Definition: kig_document.cc:201
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
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
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
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.