#include "PreCompiled.h"#include <climits>#include <Python.h>#include <Standard_Version.hxx>#include <BRep_Builder.hxx>#include <Handle_TDocStd_Document.hxx>#include <Handle_XCAFApp_Application.hxx>#include <TDocStd_Document.hxx>#include <XCAFApp_Application.hxx>#include <XCAFDoc_DocumentTool.hxx>#include <XCAFDoc_ShapeTool.hxx>#include <XCAFDoc_ColorTool.hxx>#include <TDF_Label.hxx>#include <TDF_LabelSequence.hxx>#include <TDF_ChildIterator.hxx>#include <TDataStd_Name.hxx>#include <Quantity_Color.hxx>#include <STEPCAFControl_Reader.hxx>#include <STEPCAFControl_Writer.hxx>#include <IGESCAFControl_Reader.hxx>#include <IGESCAFControl_Writer.hxx>#include <IGESControl_Controller.hxx>#include <Interface_Static.hxx>#include <Transfer_TransientProcess.hxx>#include <XSControl_WorkSession.hxx>#include <TopTools_IndexedMapOfShape.hxx>#include <TopTools_MapOfShape.hxx>#include <TopExp_Explorer.hxx>#include <TopoDS_Iterator.hxx>#include <TDataStd_Shape.hxx>#include <Base/PyObjectBase.h>#include <Base/Console.h>#include <App/Application.h>#include <App/Document.h>#include <App/DocumentObjectPy.h>#include <Gui/Application.h>#include <Mod/Part/Gui/ViewProvider.h>#include <Mod/Part/App/PartFeature.h>#include <Mod/Part/App/ProgressIndicator.h>Go to the source code of this file.
Classes | |
| class | ImportXCAF |
Functions | |
| static PyObject * | exporter (PyObject *self, PyObject *args) |
| static PyObject * | importer (PyObject *self, PyObject *args) |
Variables | |
| struct PyMethodDef | ImportGui_Import_methods [] |
Definition at line 344 of file AppImportGuiPy.cpp.
References App::Color::b, Base::Console(), DrawingExample::file, draftlibs::dxfReader::filename, App::Color::g, App::GetApplication(), PartGui::ViewProviderPart::getClassTypeId(), PartGui::ViewProviderPartExt::getClassTypeId(), Part::Feature::getClassTypeId(), App::PropertyContainer::getTypeId(), Handle(), Base::FileInfo::hasExtension(), Gui::Application::Instance, Base::BaseClass::isDerivedFrom(), Base::Type::isDerivedFrom(), App::DocumentObject::Label, PY_CATCH, Py_Return, PY_TRY, App::Color::r, Set(), Part::Feature::Shape, and App::DocumentObjectPy::Type.
Definition at line 271 of file AppImportGuiPy.cpp.
References DrawingExample::file, Base::FileInfo::fileNamePure(), App::GetApplication(), App::Application::getDocument(), Handle(), Base::FileInfo::hasExtension(), App::Application::newDocument(), PY_CATCH, Py_Return, PY_TRY, and App::Document::recompute().
| struct PyMethodDef ImportGui_Import_methods[] |
{
{"insert" ,importer ,METH_VARARGS,
"insert(string,string) -- Insert the file into the given document."},
{"export" ,exporter ,METH_VARARGS,
"export(list,string) -- Export a list of objects into a single file."},
{NULL, NULL}
}
Definition at line 460 of file AppImportGuiPy.cpp.
Referenced by initImportGui().
1.6.1