public interface MaterialList extends PropFeatureList<Material>, IListMove
Modifier and Type | Method and Description |
---|---|
Material |
create(java.lang.String tag)
Creates material in current component.
|
Material |
create(java.lang.String tag,
java.lang.String type)
Creates material of specified type in current component.
|
Material |
create(java.lang.String tag,
java.lang.String type,
java.lang.String component)
Creates material of specified type in the specified component.
|
java.lang.String |
getString(java.lang.String pname)
Gets string property.
|
java.lang.String[] |
getStringArray(java.lang.String pname)
Gets vector string property.
|
java.lang.String[][] |
getStringMatrix(java.lang.String pname)
Gets vector matrix property.
|
java.lang.String[][] |
insert(java.lang.String filename,
java.lang.String[] materials,
java.lang.String... password)
Insert materials from an mph file into the material list of this model
and returns the result of the operation as a double string array of
length 3.
The first array contains the messages from insert, the second array contains paths to the inserted objects, and the third array contains paths to the inserted references. |
MaterialList |
set(java.lang.String pname,
java.lang.String value)
Sets string property value.
|
MaterialList |
set(java.lang.String pname,
java.lang.String[] value)
Sets string vector property value.
|
MaterialList |
set(java.lang.String pname,
java.lang.String[][] value)
Sets string matrix property value.
|
clear, copy, copy, copyTo, duplicate, duplicateTo, get, index, remove, size, tags, uniquetag
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
Material create(java.lang.String tag)
tag
- Material tag.Material create(java.lang.String tag, java.lang.String type)
create
in interface PropFeatureList<Material>
tag
- Material tag.type
- Material type.Material create(java.lang.String tag, java.lang.String type, java.lang.String component)
tag
- Material tag.type
- Material type.component
- Component, empty string to create a global material.java.lang.String getString(java.lang.String pname)
pname
- Property name.java.lang.String[] getStringArray(java.lang.String pname)
pname
- Property name.java.lang.String[][] getStringMatrix(java.lang.String pname)
pname
- Property name.java.lang.String[][] insert(java.lang.String filename, java.lang.String[] materials, java.lang.String... password)
filename
- The file name.materials
- The tags of the materials to insert.password
- Optional password for opening the file.MaterialList set(java.lang.String pname, java.lang.String value)
pname
- Property name.value
- Property value.MaterialList set(java.lang.String pname, java.lang.String[] value)
pname
- Property name.value
- Property value.MaterialList set(java.lang.String pname, java.lang.String[][] value)
pname
- Property name.value
- Property value.