Skip to content

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

ArgumentTypeRequiredDescription
nameStringYes
actorvtkActorYes

extend

Method used to decorate a given object (publicAPI+model) with vtkMTLReader characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIMTLReaderInitialValuesNo(default: {})

getBaseURL

getDataAccessHelper

getInterpolateTextures

getMaterial

ArgumentTypeRequiredDescription
nameStringYesThe name of the material.

getMaterialNames

getSplitGroup

getUrl

Get the url of the object to load.

invokeBusy

ArgumentTypeRequiredDescription
busyBooleanYes

isBusy

listImages

loadData

Load the object data.

ArgumentTypeRequiredDescription
optionsIMTLReaderOptionsNo

newInstance

Method used to create a new instance of vtkMTLReader

ArgumentTypeRequiredDescription
initialValuesIMTLReaderInitialValuesNofor pre-setting some of its content

onBusy

ArgumentTypeRequiredDescription
callbackYes

parseAsText

Parse data as text.

ArgumentTypeRequiredDescription
contentStringYesThe content to parse.

requestData

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setDataAccessHelper

ArgumentTypeRequiredDescription
dataAccessHelperYes

setImageSrc

ArgumentTypeRequiredDescription
imagePathYes
srcYes

setInterpolateTextures

ArgumentTypeRequiredDescription
interpolateTexturesYes

setSplitGroup

ArgumentTypeRequiredDescription
splitGroupYes

setUrl

Set the url of the object to load.

ArgumentTypeRequiredDescription
urlStringYesthe url of the object to load.
optionIMTLReaderOptionsNoThe MTL reader options.