QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RImporter.h
Go to the documentation of this file.
1
20#ifndef RIMPORTER_H
21#define RIMPORTER_H
22
23#include "core_global.h"
24
25#include "RTransaction.h"
26
27class RDocument;
28class REntity;
29class RVector;
30class RMessageHandler;
32
46public:
47 RImporter();
48 RImporter(RDocument& document, RMessageHandler* messageHandler = NULL, RProgressHandler* progressHandler = NULL);
49 virtual ~RImporter();
50
51 virtual void startImport();
52 virtual void endImport();
53
57 virtual void importObjectP(QSharedPointer<RObject> object);
58
59 virtual void importObject(RObject* object);
60
61 virtual void setCurrentBlockId(RObject::Id id);
62 virtual RObject::Id getCurrentBlockId();
63
65 void setDocument(RDocument* d);
66
67 void setKnownVariable(RS::KnownVariable key, const QVariant& value);
68 void setKnownVariable(RS::KnownVariable key, const RVector& value);
69
70protected:
76};
77
79
80#endif
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Base class for all entity classes.
Definition REntity.h:63
Base class for importers.
Definition RImporter.h:45
RObject::Id blockId
Definition RImporter.h:75
RDocument * document
Definition RImporter.h:71
RMessageHandler * messageHandler
Definition RImporter.h:72
RProgressHandler * progressHandler
Definition RImporter.h:73
RTransaction transaction
Definition RImporter.h:74
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RMessageHandler.h:33
Abstract base class for all objects.
Definition RObject.h:64
int Id
Definition RObject.h:69
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RProgressHandler.h:33
KnownVariable
Well established document variables.
Definition RS.h:501
Transaction implementation.
Definition RTransaction.h:73
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADCORE_EXPORT
Definition core_global.h:10
void getDocument()
Returns the current RDocument or undefined.
Definition simple.js:63
#define NULL
Definition opennurbs_system.h:256