![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
The InputReader class reads input data from a file.
XML filfes like:
As well as from (g)zipped files KMZ (=zipped kml) SVGZ (=gzipped svg)
Definition at line 32 of file inputreader.h.
#include <inputreader.h>
Classes | |
class | XmlMessageHandler |
handles XML parse errors; used for debugging only More... | |
Public Member Functions | |
QVector< Path > & | getResults () |
void | clear () |
clear results More... | |
void | readAll (const DataPath &path) |
read polygonal curves from a file More... | |
bool | isSvg () const |
bool | isIpe () const |
bool | isScript () const |
QString | errorMessage () |
Private Member Functions | |
void | readAll (QIODevice *device, QString fileSuffix, QString queryString) |
read polygonal curves from a file More... | |
void | readXml (QIODevice *device, QString fileSuffix, QString xmlPath) |
read polygonal curves from an XML file More... | |
Path | readSvgPath (QString text, QTransform tf=QTransform()) |
read a polygonal curve from an SVG string More... | |
Path | readIpePath (QString text, QTransform tf=QTransform()) |
read a polygonal curve from an IPE string More... | |
bool | readScript (QString program) |
read a JavaScript file More... | |
QTransform | readTransformationMatrix (QXmlItem item, QXmlNamePool namepool) |
read a transformation matrix from XML More... | |
Static Private Member Functions | |
static bool | isZipFile (QString suffix) |
static bool | isGzipFile (QString suffix) |
static bool | isXmlFile (QString suffix) |
static bool | isCsvFile (QString suffix) |
static bool | isSvgFile (QString suffix) |
static bool | isIpeFile (QString suffix) |
static bool | isScriptFile (QString suffix) |
Private Attributes | |
QVector< Path > | results |
result values; expected to contain 2 result More... | |
QString | error_message |
parse error More... | |
bool | is_svg |
is it an SVG file? More... | |
bool | is_ipe |
is it an IPE file? More... | |
bool | is_kml |
not implemented More... | |
bool | is_script |
is it a JavaScript file More... | |
void InputReader::clear | ( | ) |
clear results
Definition at line 20 of file inputreader.cpp.
|
inline |
Definition at line 62 of file inputreader.h.
|
inline |
Definition at line 46 of file inputreader.h.
|
staticprivate |
suffix | file name suffix |
Definition at line 188 of file inputreader.cpp.
|
staticprivate |
suffix | file name suffix |
Definition at line 180 of file inputreader.cpp.
|
inline |
Definition at line 57 of file inputreader.h.
|
staticprivate |
suffix | file name suffix |
Definition at line 196 of file inputreader.cpp.
|
inline |
Definition at line 59 of file inputreader.h.
|
staticprivate |
suffix | file name suffix |
Definition at line 200 of file inputreader.cpp.
|
inline |
Definition at line 55 of file inputreader.h.
|
staticprivate |
suffix | file name suffix |
Definition at line 192 of file inputreader.cpp.
|
staticprivate |
suffix | file name suffix |
Definition at line 184 of file inputreader.cpp.
|
staticprivate |
suffix | file name suffix |
Definition at line 176 of file inputreader.cpp.
void InputReader::readAll | ( | const DataPath & | path | ) |
read polygonal curves from a file
path | location of inpupt data within the file |
Definition at line 26 of file inputreader.cpp.
|
private |
read polygonal curves from a file
device | input stream |
fileSuffix | file name suffix determines the file type |
queryString | path into XML structure |
Definition at line 56 of file inputreader.cpp.
|
private |
read a polygonal curve from an IPE string
text | IPE data string |
tf | apply transform (optional) |
Definition at line 169 of file inputreader.cpp.
|
private |
read a JavaScript file
program | JavaScript code |
Definition at line 12 of file scriptinput.cpp.
|
private |
read a polygonal curve from an SVG string
text | SVG data string |
tf | apply transform (optional) |
Definition at line 162 of file inputreader.cpp.
|
private |
read a transformation matrix from XML
item | XML item that contains the transformation matrix |
namepool | implements an XML namespace |
Definition at line 138 of file inputreader.cpp.
|
private |
read polygonal curves from an XML file
device | input stream |
fileSuffix | file name suffix determines the file type |
xmlPath | path into XML structure |
Definition at line 78 of file inputreader.cpp.
|
private |
parse error
Definition at line 38 of file inputreader.h.
|
private |
is it an IPE file?
Definition at line 40 of file inputreader.h.
|
private |
not implemented
Definition at line 41 of file inputreader.h.
|
private |
is it a JavaScript file
Definition at line 42 of file inputreader.h.
|
private |
is it an SVG file?
Definition at line 39 of file inputreader.h.
|
private |
result values; expected to contain 2 result
Definition at line 36 of file inputreader.h.