Skip to content

TGAReader ​

Introduction ​

vtkTGAReader is a source object that reads Truevision Targa(TGA) files.

Methods ​

extend ​

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

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

getBaseURL ​

Get the base url.

getDataAccessHelper ​

Get the dataAccess helper.

getUrl ​

Get the url of the object to load.

loadData ​

Load the object data.

ArgumentTypeRequiredDescription
optionsITGAReaderOptionsNo

newInstance ​

Method used to create a new instance of vtkTGAReader

ArgumentTypeRequiredDescription
initialValuesITGAReaderInitialValuesNofor pre-setting some of its content

parse ​

Parse data.

ArgumentTypeRequiredDescription
contentArrayBufferYesThe content to parse.

parseAsArrayBuffer ​

Parse data as ArrayBuffer.

ArgumentTypeRequiredDescription
contentArrayBufferYesThe content to parse.

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setDataAccessHelper ​

ArgumentTypeRequiredDescription
dataAccessHelperYes

setUrl ​

Set the url of the object to load.

ArgumentTypeRequiredDescription
urlStringYesthe url of the object to load.
optionITGAReaderOptionsNoThe PLY reader options.