PartDesign: Remove XML binding files.
This commit is contained in:
committed by
Benjamin Nauck
parent
a209926436
commit
bbe9fbccb5
@@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="BodyBasePy"
|
||||
Name="BodyPy"
|
||||
Twin="Body"
|
||||
TwinPointer="Body"
|
||||
Include="Mod/PartDesign/App/Body.h"
|
||||
Namespace="PartDesign"
|
||||
FatherInclude="Mod/Part/App/BodyBasePy.h"
|
||||
FatherNamespace="Part">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
||||
<UserDocu>PartDesign body class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="insertObject">
|
||||
<Documentation>
|
||||
<UserDocu>insertObject(feature, target, after=False)
|
||||
Insert the feature into the body after the given feature.
|
||||
|
||||
@param feature The feature to insert into the body
|
||||
@param target The feature relative which one should be inserted the given.
|
||||
If target is NULL than insert into the end if where is InsertBefore
|
||||
and into the begin if where is InsertAfter.
|
||||
@param after if true insert the feature after the target. Default is false.
|
||||
|
||||
@note the method doesn't modify the Tip unlike addObject()
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="VisibleFeature" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Return the visible feature of this body</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="VisibleFeature" Type="Object" />
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -11,9 +11,7 @@ include_directories(
|
||||
)
|
||||
link_directories(${OCC_LIBRARY_DIR})
|
||||
|
||||
generate_from_xml(BodyPy)
|
||||
generate_from_py(Body)
|
||||
generate_from_xml(FeaturePy)
|
||||
generate_from_py(Feature)
|
||||
|
||||
|
||||
@@ -125,9 +123,9 @@ SOURCE_GROUP("Module" FILES ${Module_SRCS})
|
||||
|
||||
|
||||
SET(Python_SRCS
|
||||
BodyPy.xml
|
||||
Body.pyi
|
||||
BodyPyImp.cpp
|
||||
FeaturePy.xml
|
||||
Feature.pyi
|
||||
FeaturePyImp.cpp
|
||||
)
|
||||
SOURCE_GROUP("Python" FILES ${Python_SRCS})
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="PartFeaturePy"
|
||||
Name="FeaturePy"
|
||||
Twin="Feature"
|
||||
TwinPointer="Feature"
|
||||
Include="Mod/PartDesign/App/Feature.h"
|
||||
Namespace="PartDesign"
|
||||
FatherInclude="Mod/Part/App/PartFeaturePy.h"
|
||||
FatherNamespace="Part">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
||||
<UserDocu>This is the father of all PartDesign object classes</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="getBaseObject">
|
||||
<Documentation>
|
||||
<UserDocu>getBaseObject: returns feature this one fuses itself to, or None. Normally, this should be the same as BaseFeature property, except for legacy workflow. In legacy workflow, it will look up the support of referenced sketch.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -9,7 +9,6 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/3rdParty/json/single_include/nlohmann/
|
||||
)
|
||||
|
||||
generate_from_xml(ViewProviderPy)
|
||||
generate_from_py(ViewProvider)
|
||||
|
||||
|
||||
@@ -230,7 +229,7 @@ SOURCE_GROUP("Module" FILES ${PartDesignGuiModule_SRCS})
|
||||
|
||||
|
||||
SET(Python_SRCS
|
||||
ViewProviderPy.xml
|
||||
ViewProvider.pyi
|
||||
ViewProviderPyImp.cpp
|
||||
)
|
||||
SOURCE_GROUP("Python" FILES ${Python_SRCS})
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="ViewProviderPartExtPy"
|
||||
Name="ViewProviderPy"
|
||||
Twin="ViewProvider"
|
||||
TwinPointer="ViewProvider"
|
||||
Include="Mod/PartDesign/Gui/ViewProvider.h"
|
||||
Namespace="PartDesignGui"
|
||||
FatherInclude="Mod/Part/Gui/ViewProviderPartExtPy.h"
|
||||
FatherNamespace="PartGui">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
||||
<UserDocu>This is the father of all PartDesign ViewProvider classes</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="setBodyMode">
|
||||
<Documentation>
|
||||
<UserDocu>setBodyMode(bool): body mode means that the object is part of a body
|
||||
and that the body is used to set the visual properties, not the features. Hence
|
||||
setting body mode to true will hide most viewprovider properties.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeTemporaryVisible">
|
||||
<Documentation>
|
||||
<UserDocu>makeTemporaryVisible(bool): makes this viewprovider visible in the
|
||||
scene graph without changing any properties, not the visibility one and also not
|
||||
the display mode. This can be used to show the shape of this viewprovider from
|
||||
other viewproviders without doing anything to the document and properties.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -37,7 +37,7 @@ def compareFiles(file1, file2):
|
||||
class TemplateClassPyExport(template.ModelTemplate):
|
||||
# TODO: This is temporary, once all XML files are migrated, this can be removed.
|
||||
def getPath(self, path):
|
||||
if self.is_python and not self.export.ModuleName in ["Base", "App", "Gui"]:
|
||||
if self.is_python and not self.export.ModuleName in ["Base", "App", "Gui", "PartDesign"]:
|
||||
root, ext = os.path.splitext(path)
|
||||
return f"{root}_{ext}"
|
||||
return path
|
||||
|
||||
Reference in New Issue
Block a user