Continues the work of the material subsystem improvements. This merge covers the continued development of the material editor. The primary improvements are the addition of new data types, a new appearance preview UI, and changes in the array data types. New data types were added to support more advanced workflows, such as the Render Workbench.The Image datatype allows the material to embed the image in the card instead of pointing to an image in an external file. Multi-buyte strings span multiple lines as the name implies. It preserves formatting accross those lines. Also several list types are now supported, with the primary difference being the editors. List is a list of strings, FileList is a list of file path names, and ImageList is a list of embedded images. For the appearance preview, the UI now uses the same Coin library as is used in the documents, meaning the preview will look exactly the same as the material will be shown in the documents. The array data types are now more complete. The default value wasn't being used as originially envisioned and was tehrefore removed. For 3D arrays, the Python API was implemented. There were a lot of code clean ups. This involved removing logging statements used for debugging during development, reduction of lint warnings, and code refactoring. The editor can automatically convert from previous format files to the current format. This has been extended to material files generated by the Render WB. Old format files are displayed in the editor with a warning icon. Selecting one will require saving the file in the new format before it can be used.
53 lines
1.9 KiB
XML
53 lines
1.9 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="Array3DPy"
|
|
Twin="Material3DArray"
|
|
TwinPointer="Material3DArray"
|
|
Include="Mod/Material/App/MaterialValue.h"
|
|
Namespace="Materials"
|
|
FatherInclude="Base/BaseClassPy.h"
|
|
FatherNamespace="Base"
|
|
Constructor="true"
|
|
Delete="true">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="DavidCarter" EMail="dcarter@davidcarter.ca" />
|
|
<UserDocu>3D Array of material properties.</UserDocu>
|
|
</Documentation>
|
|
<Attribute Name="Array" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>The 3 dimensional array.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Array" Type="List"/>
|
|
</Attribute>
|
|
<Attribute Name="Columns" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>The number of columns in the array.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Columns" Type="Int"/>
|
|
</Attribute>
|
|
<Attribute Name="Depth" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>The depth of the array (3rd dimension).</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Columns" Type="Int"/>
|
|
</Attribute>
|
|
<Methode Name="getRows" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Get the number of rows in the array at the specified depth.</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getValue" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Get the value at the given row and column</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
<Methode Name="getDepthValue" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>Get the column value at the given depth</UserDocu>
|
|
</Documentation>
|
|
</Methode>
|
|
</PythonExport>
|
|
</GenerateModel>
|