215 lines
8.1 KiB
XML
215 lines
8.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
|
<PythonExport
|
|
Father="BaseClassPy"
|
|
Name="MaterialPy"
|
|
Twin="Material"
|
|
TwinPointer="Material"
|
|
Include="Mod/Material/App/Materials.h"
|
|
Namespace="Materials"
|
|
FatherInclude="Base/BaseClassPy.h"
|
|
FatherNamespace="Base"
|
|
Constructor="true"
|
|
Delete="true">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="DavidCarter" EMail="dcarter@davidcarter.ca" />
|
|
<UserDocu>Material descriptions.</UserDocu>
|
|
</Documentation>
|
|
<Attribute Name="LibraryName" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Model library name.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="LibraryName" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="LibraryRoot" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Model library path.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="LibraryRoot" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="LibraryIcon" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Model icon path.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="LibraryIcon" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Name" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Model name.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Name" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Directory" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Model directory relative to the library root.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Directory" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="UUID" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Unique model identifier. This is only valid after the material is saved.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="UUID" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Description" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Description of the material.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Description" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="URL" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>URL to a material reference.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="URL" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Reference" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Reference for material data.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Reference" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Parent" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Parent material UUID.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Parent" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="AuthorAndLicense" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>deprecated -- Author and license information.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="AuthorAndLicense" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Author" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Author information.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Author" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="License" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>License information.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="License" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="PhysicalModels" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>List of implemented models.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="PhysicalModels" Type="List"/>
|
|
</Attribute>
|
|
<Attribute Name="AppearanceModels" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>List of implemented models.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="AppearanceModels" Type="List"/>
|
|
</Attribute>
|
|
<Attribute Name="Tags" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>List of searchable tags.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Tags" Type="List"/>
|
|
</Attribute>
|
|
<Methode Name="addPhysicalModel" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Add the physical model with the given UUID</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="removePhysicalModel" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Remove the physical model with the given UUID</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="hasPhysicalModel" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Check if the material implements the physical model with the given UUID</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="addAppearanceModel" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Add the appearance model with the given UUID</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="removeAppearanceModel" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Remove the appearance model with the given UUID</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="hasAppearanceModel" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Check if the material implements the appearance model with the given UUID</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="isPhysicalModelComplete" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Check if the material implements the physical model with the given UUID, and has values defined for each property</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="isAppearanceModelComplete" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Check if the material implements the appearance model with the given UUID, and has values defined for each property</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="hasPhysicalProperty" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Check if the material implements the physical property with the given name</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="hasAppearanceProperty" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Check if the material implements the appearance property with the given name</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="hasLegacyProperties" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Returns true of there are legacy properties</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Attribute Name="Properties" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>deprecated -- Dictionary of all material properties.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Properties" Type="Dict"/>
|
|
</Attribute>
|
|
<Attribute Name="PhysicalProperties" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>deprecated -- Dictionary of material physical properties.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="PhysicalProperties" Type="Dict"/>
|
|
</Attribute>
|
|
<Attribute Name="AppearanceProperties" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>deprecated -- Dictionary of material appearance properties.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="AppearanceProperties" Type="Dict"/>
|
|
</Attribute>
|
|
<Attribute Name="LegacyProperties" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>deprecated -- Dictionary of material legacy properties.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="LegacyProperties" Type="Dict"/>
|
|
</Attribute>
|
|
<Methode Name="getPhysicalValue" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Get the value associated with the property</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="setPhysicalValue" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Set the value associated with the property</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getAppearanceValue" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Get the value associated with the property</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="setAppearanceValue" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Set the value associated with the property</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
</PythonExport>
|
|
</GenerateModel>
|