kig
object_imp_factory.cc
Go to the documentation of this file.
65 static void addDoubleElement( const char* name, double d, QDomElement& parent, QDomDocument& doc )
72 static void addCoordinateElement( const char* name, const Coordinate& d, QDomElement& p, QDomDocument& doc )
static const ObjectImpFactory * instance()
Definition: object_imp_factory.cc:37
Definition: object_imp_factory.h:23
LocusImp is an imp that consists of a copy of the curveimp that the moving point moves over...
Definition: locus_imp.h:57
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
Definition: object_hierarchy.h:30
static ObjectHierarchy * buildSafeObjectHierarchy(const QDomElement &parent, QString &error)
Deserialize the ObjectHierarchy data from the xml element parent .
Definition: object_hierarchy.cc:482
QDomNode appendChild(const QDomNode &newChild)
static double readDoubleElement(const QDomNode &n, bool &ok, const char *tagname)
Definition: object_imp_factory.cc:276
An ObjectImp class that is the base of the line-like ObjectImp's: SegmentImp, LineImp and RayImp...
Definition: line_imp.h:31
QString attribute(const QString &name, const QString &defValue) const
Definition: text_imp.h:26
static const ObjectImpType * stype()
Returns the ObjectImpType representing the DoubleImp type.
Definition: bogus_imp.cc:270
static void addDoubleElement(const char *name, double d, QDomElement &parent, QDomDocument &doc)
Definition: object_imp_factory.cc:65
void serialize(QDomElement &parent, QDomDocument &doc) const
saves the ObjectHierarchy data in children xml tags of parent .
Definition: object_hierarchy.cc:414
static const ObjectImpType * stype()
Returns the ObjectImpType representing the RayImp type.
Definition: line_imp.cc:562
static const ObjectImpType * stype()
Returns the ObjectImpType representing the VectorImp type.
Definition: other_imp.cc:613
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
static Coordinate readXYElements(const QDomElement &e, bool &ok)
Definition: object_imp_factory.cc:240
double toDouble(bool *ok) const
QDomNode nextSibling() const
#define KIG_GENERIC_PARSE_ERROR
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
QDomElement toElement() const
An implementation of ConicImp to be used when only the polar equation of the conic is known...
Definition: conic_imp.h:157
static Coordinate readCoordinateElement(const QDomNode &n, bool &ok, const char *tagname)
Definition: object_imp_factory.cc:263
bool isHomothetic() const
Returns whether this is a homothetic (affine) transformation.
Definition: kigtransform.cpp:681
QString number(int n, int base)
QString text() const
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const
ObjectImp * deserialize(const QString &type, const QDomElement &parent, QString &error) const
loads data from parent , and returns a new ObjectImp from the type string type .
Definition: object_imp_factory.cc:288
Definition: bogus_imp.h:232
Definition: bogus_imp.h:203
static const ObjectImpType * stype()
Returns the ObjectImpType representing the SegmentImp type.
Definition: line_imp.cc:545
This class represents an equation of a cubic in the form (in homogeneous coordinates, ), .
Definition: cubic-common.h:31
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ArcImp type.
Definition: other_imp.cc:629
QDomText createTextNode(const QString &value)
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CircleImp type.
Definition: circle_imp.cc:342
double startAngle() const
Return the start angle in radians of this arc.
Definition: other_imp.cc:542
QString serialize(const ObjectImp &d, QDomElement &parent, QDomDocument &doc) const
adds data to parent , and returns a type string.
Definition: object_imp_factory.cc:79
bool isNull() const
QDomNode firstChild() const
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CurveImp type.
Definition: curve_imp.cc:27
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ConicImp type.
Definition: conic_imp.cc:380
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AngleImp type.
Definition: other_imp.cc:597
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520
static const ObjectImpType * stype()
Returns the ObjectImpType representing the StringImp type.
Definition: bogus_imp.cc:220
static void addCoordinateElement(const char *name, const Coordinate &d, QDomElement &p, QDomDocument &doc)
Definition: object_imp_factory.cc:72
static void addXYElements(const Coordinate &c, QDomElement &parent, QDomDocument &doc)
Definition: object_imp_factory.cc:51
QString fromLatin1(const char *str, int size)
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
QString tagName() const
QDomElement createElement(const QString &tagName)
Definition: bogus_imp.h:253
This class represents a curve: something which is composed of points, like a line, a circle, a locus.
Definition: curve_imp.h:27
This class represents an equation of a conic in the form .
Definition: conic-common.h:85
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.