QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RDxfImporterFactory.h
Go to the documentation of this file.
1
20#ifndef RDXFIMPORTERFACTORY_H_
21#define RDXFIMPORTERFACTORY_H_
22
23#include "dxf_global.h"
24
25#include <QMetaType>
26
27#include "RDxfImporter.h"
30
31class RDocument;
32class RMessageHandler;
34
39public:
45
46 virtual QStringList getFilterStrings();
47
49 RMessageHandler* messageHandler = NULL,
50 RProgressHandler* progressHandler = NULL) {
51
52 return new RDxfImporter(document, messageHandler, progressHandler);
53 }
54
55 virtual int canImport(const QString& fileName, const QString& nameFilter);
56};
57
59
60#endif
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Definition RDxfImporterFactory.h:38
virtual RFileImporter * instantiate(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)
Definition RDxfImporterFactory.h:48
static void registerFileImporter()
Definition RDxfImporterFactory.h:40
Importer for the DXF format, based on the dxflib library.
Definition RDxfImporter.h:59
Needs to be implemented by RFileImporter implementations to check if the importer is suitable to impo...
Definition RFileImporterFactory.h:41
virtual QStringList getFilterStrings()=0
virtual int canImport(const QString &fileName, const QString &nameFilter="")=0
Base class for file importers.
Definition RFileImporter.h:41
static void registerFileImporter(RFileImporterFactory *factory)
Registers a file importer.
Definition RFileImporterRegistry.cpp:38
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RMessageHandler.h:33
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RProgressHandler.h:33
#define QCADDXF_EXPORT
Definition dxf_global.h:10
#define NULL
Definition opennurbs_system.h:256