1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
8
Include="Mod/Material/App/Materials.h"
10
FatherInclude="Base/BaseClassPy.h"
11
FatherNamespace="Base"
15
<Author Licence="LGPL" Name="DavidCarter" EMail="dcarter@davidcarter.ca" />
16
<UserDocu>Material descriptions.</UserDocu>
18
<Attribute Name="LibraryName" ReadOnly="true">
20
<UserDocu>Model library name.</UserDocu>
22
<Parameter Name="LibraryName" Type="String"/>
24
<Attribute Name="LibraryRoot" ReadOnly="true">
26
<UserDocu>Model library path.</UserDocu>
28
<Parameter Name="LibraryRoot" Type="String"/>
30
<Attribute Name="LibraryIcon" ReadOnly="true">
32
<UserDocu>Model icon path.</UserDocu>
34
<Parameter Name="LibraryIcon" Type="String"/>
36
<Attribute Name="Name" ReadOnly="false">
38
<UserDocu>Model name.</UserDocu>
40
<Parameter Name="Name" Type="String"/>
42
<Attribute Name="Directory" ReadOnly="true">
44
<UserDocu>Model directory relative to the library root.</UserDocu>
46
<Parameter Name="Directory" Type="String"/>
48
<Attribute Name="UUID" ReadOnly="true">
50
<UserDocu>Unique model identifier. This is only valid after the material is saved.</UserDocu>
52
<Parameter Name="UUID" Type="String"/>
54
<Attribute Name="Description" ReadOnly="false">
56
<UserDocu>Description of the material.</UserDocu>
58
<Parameter Name="Description" Type="String"/>
60
<Attribute Name="URL" ReadOnly="false">
62
<UserDocu>URL to a material reference.</UserDocu>
64
<Parameter Name="URL" Type="String"/>
66
<Attribute Name="Reference" ReadOnly="false">
68
<UserDocu>Reference for material data.</UserDocu>
70
<Parameter Name="Reference" Type="String"/>
72
<Attribute Name="Parent" ReadOnly="true">
74
<UserDocu>Parent material UUID.</UserDocu>
76
<Parameter Name="Parent" Type="String"/>
78
<Attribute Name="AuthorAndLicense" ReadOnly="true">
80
<UserDocu>deprecated -- Author and license information.</UserDocu>
82
<Parameter Name="AuthorAndLicense" Type="String"/>
84
<Attribute Name="Author" ReadOnly="false">
86
<UserDocu>Author information.</UserDocu>
88
<Parameter Name="Author" Type="String"/>
90
<Attribute Name="License" ReadOnly="false">
92
<UserDocu>License information.</UserDocu>
94
<Parameter Name="License" Type="String"/>
96
<Attribute Name="PhysicalModels" ReadOnly="true">
98
<UserDocu>List of implemented models.</UserDocu>
100
<Parameter Name="PhysicalModels" Type="List"/>
102
<Attribute Name="AppearanceModels" ReadOnly="true">
104
<UserDocu>List of implemented models.</UserDocu>
106
<Parameter Name="AppearanceModels" Type="List"/>
108
<Attribute Name="Tags" ReadOnly="true">
110
<UserDocu>List of searchable tags.</UserDocu>
112
<Parameter Name="Tags" Type="List"/>
114
<Methode Name="addPhysicalModel" ReadOnly="false">
116
<UserDocu>Add the physical model with the given UUID</UserDocu>
119
<Methode Name="removePhysicalModel" ReadOnly="false">
121
<UserDocu>Remove the physical model with the given UUID</UserDocu>
124
<Methode Name="hasPhysicalModel" ReadOnly="true">
126
<UserDocu>Check if the material implements the physical model with the given UUID</UserDocu>
129
<Methode Name="addAppearanceModel" ReadOnly="false">
131
<UserDocu>Add the appearance model with the given UUID</UserDocu>
134
<Methode Name="removeAppearanceModel" ReadOnly="false">
136
<UserDocu>Remove the appearance model with the given UUID</UserDocu>
139
<Methode Name="hasAppearanceModel" ReadOnly="true">
141
<UserDocu>Check if the material implements the appearance model with the given UUID</UserDocu>
144
<Methode Name="isPhysicalModelComplete" ReadOnly="true">
146
<UserDocu>Check if the material implements the physical model with the given UUID, and has values defined for each property</UserDocu>
149
<Methode Name="isAppearanceModelComplete" ReadOnly="true">
151
<UserDocu>Check if the material implements the appearance model with the given UUID, and has values defined for each property</UserDocu>
154
<Methode Name="hasPhysicalProperty" ReadOnly="true">
156
<UserDocu>Check if the material implements the physical property with the given name</UserDocu>
159
<Methode Name="hasAppearanceProperty" ReadOnly="true">
161
<UserDocu>Check if the material implements the appearance property with the given name</UserDocu>
164
<Methode Name="hasLegacyProperties" ReadOnly="true">
166
<UserDocu>Returns true of there are legacy properties</UserDocu>
169
<Attribute Name="Properties" ReadOnly="true">
171
<UserDocu>deprecated -- Dictionary of all material properties.</UserDocu>
173
<Parameter Name="Properties" Type="Dict"/>
175
<Attribute Name="PhysicalProperties" ReadOnly="true">
177
<UserDocu>deprecated -- Dictionary of material physical properties.</UserDocu>
179
<Parameter Name="PhysicalProperties" Type="Dict"/>
181
<Attribute Name="AppearanceProperties" ReadOnly="true">
183
<UserDocu>deprecated -- Dictionary of material appearance properties.</UserDocu>
185
<Parameter Name="AppearanceProperties" Type="Dict"/>
187
<Attribute Name="LegacyProperties" ReadOnly="true">
189
<UserDocu>deprecated -- Dictionary of material legacy properties.</UserDocu>
191
<Parameter Name="LegacyProperties" Type="Dict"/>
193
<Methode Name="getPhysicalValue" ReadOnly="true">
195
<UserDocu>Get the value associated with the property</UserDocu>
198
<Methode Name="setPhysicalValue" ReadOnly="true">
200
<UserDocu>Set the value associated with the property</UserDocu>
203
<Methode Name="getAppearanceValue" ReadOnly="true">
205
<UserDocu>Get the value associated with the property</UserDocu>
208
<Methode Name="setAppearanceValue" ReadOnly="true">
210
<UserDocu>Set the value associated with the property</UserDocu>