kig
cabri-filter.cc
Go to the documentation of this file.
62 static ObjectTypeCalcer* intersectionPoints( const std::vector<ObjectCalcer*>& parents, int which )
151 QRegExp header( "Figure Cabri\\s?II (Plus )?vers\\. (MS-Windows|DOS) ((\\d+)\\.(\\d+)(\\.(\\d+))?(\\.(\\d+))?|(\\d+)\\.x \\((\\d+)\\.(\\d+)\\))(, ([^,]+), t=(\\d+)s)?" );
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
static const ArcLineIntersectionType * instance()
Definition: intersection_types.cc:541
QString cap(int nth) const
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
static const PointReflectionType * instance()
Definition: transform_types.cc:87
This is an ObjectCalcer that keeps an ObjectImp, and never calculates a new one.
Definition: object_calcer.h:232
Definition: cabri-utils.h:154
ObjectTypeCalcer * fixedPointCalcer(const Coordinate &c) const
Definition: object_factory.cc:50
const char * internalName() const
Returns an internal name for this ObjectImp type.
Definition: object_imp.cc:235
bool isEmpty() const
virtual CabriObject * readObject(QFile &f)=0
static const ObjectImpType * stype()
Returns the ObjectImpType representing the VectorImp type.
Definition: other_imp.cc:613
void addObjects(const std::vector< ObjectHolder * > &os)
Add the objects os to the document.
Definition: kig_document.cc:143
ObjectTypeCalcer * locusCalcer(ObjectCalcer *a, ObjectCalcer *b) const
return a locus, defined by the two points ( one constrained, and one following ) a and b ...
Definition: object_factory.cc:355
This is an ObjectCalcer that uses one of the various ObjectType's to calculate its ObjectImp...
Definition: object_calcer.h:183
void publicParseError(const QString &file, const QString &text) const
Definition: cabri-filter.cc:708
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
ObjectTypeCalcer * labelCalcer(const QString &s, const Coordinate &loc, bool needframe, const std::vector< ObjectCalcer * > &parents, const KigDocument &doc) const
Definition: object_factory.cc:394
virtual const ObjectImpType * type() const =0
Returns the lowermost ObjectImpType that this object is an instantiation of.
QString readLine(QFile &file)
Read a line from a Cabri file, stripping the \n and \r characters.
Definition: cabri-utils.cc:89
static const LineLineIntersectionType * instance()
Definition: intersection_types.cc:374
void parseError(const QString &file, const QString &explanation=QString()) const
Definition: filter.cc:79
Definition: cabri-utils.h:44
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
int toInt(bool *ok, int base) const
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void notSupported(const QString &file, const QString &explanation) const
Definition: filter.cc:92
ObjectTypeCalcer * constrainedPointCalcer(ObjectCalcer *curve, double param) const
Definition: object_factory.cc:313
virtual void calc(const KigDocument &)=0
Makes the ObjectCalcer recalculate its ObjectImp from its parents.
static const ObjectImpType * stype()
Returns the ObjectImpType representing the SegmentImp type.
Definition: line_imp.cc:545
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: cabri-utils.h:49
ObjectPropertyCalcer * propertyObjectCalcer(ObjectCalcer *o, const char *p) const
returns a property object for the property p of object o .
Definition: object_factory.cc:483
static const ObjectImpType * stype()
Returns the ObjectImpType representing the ArcImp type.
Definition: other_imp.cc:629
Definition: cabri-utils.h:142
void push_back(QChar ch)
void push_back(char ch)
static const ObjectImpType * stype()
Returns the ObjectImpType representing the CircleImp type.
Definition: circle_imp.cc:342
virtual bool readWindowMetrics(QFile &f)=0
void setCaseSensitivity(Qt::CaseSensitivity cs)
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
This is an import filter for the output of the commercial program Cabri ("CAhier de BRouillon Interac...
Definition: cabri-filter.h:36
A class holding some information about how a certain object is drawn on the window.
Definition: object_drawer.h:47
QString & replace(int position, int n, QChar after)
Definition: cabri-utils.h:50
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
virtual bool atEnd() const
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
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520
static const ConicLineIntersectionType * instance()
Definition: intersection_types.cc:54
virtual const ObjectImp * imp() const =0
Returns the ObjectImp of this ObjectCalcer.
static ObjectTypeCalcer * intersectionPoints(const std::vector< ObjectCalcer * > &parents, int which)
This file is part of Kig, a KDE program for Interactive Geometry...
Definition: cabri-filter.cc:62
void calc(const KigDocument &doc)
Makes the ObjectCalcer recalculate its ObjectImp from its parents.
Definition: object_calcer.cc:32
static const LineReflectionType * instance()
Definition: transform_types.cc:122
virtual void decodeStyle(CabriObject *obj, Qt::PenStyle &ps, int &pointType)=0
Definition: cabri-utils.h:43
bool exactMatch(const QString &str) const
KigDocument * load(const QString &fromfile)
load file fromfile and build a KigDocument from it.
Definition: cabri-filter.cc:141
Definition: object_factory.h:23
bool supportMime(const QString &mime)
can the filter handle the mimetype mime ?
Definition: cabri-filter.cc:133
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.