* will be created or the graphics from which the entities are
* taken to be stored in a file.
*/
-bool RS_FilterDXF::fileImport(RS_Graphic & g, const QString & file, RS2::FormatType /*type*/)
+bool RS_FilterDXF::fileImport(Drawing & g, const QString & file, RS2::FormatType /*type*/)
{
RS_DEBUG->print("RS_FilterDXF::fileImport");
//RS_DEBUG->timestamp();
// update document's variable list:
if (currentContainer->rtti() == RS2::EntityGraphic)
- ((RS_Graphic *)currentContainer)->addVariable(QString(key), Vector(v1, v2, v3), code);
+ ((Drawing *)currentContainer)->addVariable(QString(key), Vector(v1, v2, v3), code);
}
/**
// update document's variable list:
if (currentContainer->rtti()==RS2::EntityGraphic) {
- ((RS_Graphic*)currentContainer)->addVariable(QString(key),
+ ((Drawing*)currentContainer)->addVariable(QString(key),
QString(value), code);
}
}
// update document's variable list:
if (currentContainer->rtti()==RS2::EntityGraphic) {
- ((RS_Graphic*)currentContainer)->addVariable(QString(key),
+ ((Drawing*)currentContainer)->addVariable(QString(key),
value, code);
}
}
// update document's variable list:
if (currentContainer->rtti() == RS2::EntityGraphic)
{
- ((RS_Graphic *)currentContainer)->addVariable(QString(key), value, code);
+ ((Drawing *)currentContainer)->addVariable(QString(key), value, code);
}
}
*
* @param file Full path to the DXF file that will be written.
*/
-bool RS_FilterDXF::fileExport(RS_Graphic & g, const QString & file, RS2::FormatType type)
+bool RS_FilterDXF::fileExport(Drawing & g, const QString & file, RS2::FormatType type)
{
RS_DEBUG->print("RS_FilterDXF::fileExport: exporting file '%s'...",
(const char *)QFile::encodeName(file));