Continues the work of the material subsystem improvements. This merge covers the continued development of the material editor. The primary improvements are in the handling of 2D and 3D array properties. These properties are now fully editable, and can be saved and restored. The cards now separate the author and license. These were previously saved as a single item. Future support will be provided for standard open source licenses. Saving operations validate the cards to ensure UUIDs of materials are considered. Warnings are given when a save could potentially impact the models, such as saving over a material instead of creating a new instance. The editor is still not complete. There are a number of functional elements, such as drag/drop operations, folder creation, and deletion operations that need to be added to the main tree. State needs to be saved and restored to improve the user experience. The appearance preview also needs significant work. This will be handled in a future PR.
174 lines
6.5 KiB
XML
174 lines
6.5 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="true">
|
|
<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.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="UUID" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Description" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Description of the material.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Description" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="URL" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>URL to a material reference.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="URL" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="Reference" ReadOnly="true">
|
|
<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="true">
|
|
<Documentation>
|
|
<UserDocu>Author information.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Author" Type="String"/>
|
|
</Attribute>
|
|
<Attribute Name="License" ReadOnly="true">
|
|
<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="hasPhysicalModel" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Check if the material implements the physical 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>
|
|
<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>
|
|
<Methode Name="getPhysicalValue" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Get 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>
|
|
</PythonExport>
|
|
</GenerateModel>
|