MTLReader
Introduction
The vtkMTLReader aims to parse the MTL(Material Template Library file format which is a companion file format to .OBJ that describes surface shading (material) properties of objects within one or more .OBJ files.
Methods
applyMaterialToActor
| Argument | Type | Required | Description |
|---|---|---|---|
name | String | Yes | |
actor | vtkActor | Yes |
extend
Method used to decorate a given object (publicAPI+model) with vtkMTLReader characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IMTLReaderInitialValues | No | (default: {}) |
getBaseURL
getDataAccessHelper
getInterpolateTextures
getMaterial
| Argument | Type | Required | Description |
|---|---|---|---|
name | String | Yes | The name of the material. |
getMaterialNames
getSplitGroup
getUrl
Get the url of the object to load.
invokeBusy
| Argument | Type | Required | Description |
|---|---|---|---|
busy | Boolean | Yes |
isBusy
listImages
loadData
Load the object data.
| Argument | Type | Required | Description |
|---|---|---|---|
options | IMTLReaderOptions | No |
newInstance
Method used to create a new instance of vtkMTLReader
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IMTLReaderInitialValues | No | for pre-setting some of its content |
onBusy
| Argument | Type | Required | Description |
|---|---|---|---|
callback | Yes |
parseAsText
Parse data as text.
| Argument | Type | Required | Description |
|---|---|---|---|
content | String | Yes | The content to parse. |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setDataAccessHelper
| Argument | Type | Required | Description |
|---|---|---|---|
dataAccessHelper | Yes |
setImageSrc
| Argument | Type | Required | Description |
|---|---|---|---|
imagePath | Yes | ||
src | Yes |
setInterpolateTextures
| Argument | Type | Required | Description |
|---|---|---|---|
interpolateTextures | Yes |
setSplitGroup
| Argument | Type | Required | Description |
|---|---|---|---|
splitGroup | Yes |
setUrl
Set the url of the object to load.
| Argument | Type | Required | Description |
|---|---|---|---|
url | String | Yes | the url of the object to load. |
option | IMTLReaderOptions | No | The MTL reader options. |