QCAD
Open Source 2D CAD
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 
27 class RDocument;
28 class REntity;
29 class RVector;
30 class RMessageHandler;
31 class RProgressHandler;
32 
46 public:
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(RBlock::Id id);
62  virtual RBlock::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 
70 protected:
76 };
77 
79 
80 #endif
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RMessageHandler.h:33
Base class for importers.
Definition: RImporter.h:45
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Abstract base class for all objects.
Definition: RObject.h:48
#define QCADCORE_EXPORT
Definition: core_global.h:10
int Id
Definition: RObject.h:53
RDocument * document
Definition: RImporter.h:71
void getDocument()
Definition: simple.js:19
Transaction implementation.
Definition: RTransaction.h:70
RBlock::Id blockId
Definition: RImporter.h:75
RMessageHandler * messageHandler
Definition: RImporter.h:72
Base class for all entity classes.
Definition: REntity.h:64
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:63
Q_DECLARE_METATYPE(RMath *)
RTransaction transaction
Definition: RImporter.h:74
KnownVariable
Well established document variables.
Definition: RS.h:282
RProgressHandler * progressHandler
Definition: RImporter.h:73
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RProgressHandler.h:33