Skip to content

GCodeReader ​

Introduction ​

vtkGCodeReader is a source object that reads a GCODE file.

Methods ​

extend ​

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

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

getBaseURL ​

getDataAccessHelper ​

getUrl ​

Get the url of the object to load.

loadData ​

Load the object data.

ArgumentTypeRequiredDescription
optionsIGCodeReaderOptionsNo

newInstance ​

Method used to create a new instance of vtkGCodeReader

ArgumentTypeRequiredDescription
initialValuesIGCodeReaderInitialValuesNofor pre-setting some of its content

parse ​

Parse data.

ArgumentTypeRequiredDescription
contentString or ArrayBufferYesThe content to parse.

parseAsArrayBuffer ​

Parse data as ArrayBuffer.

ArgumentTypeRequiredDescription
contentArrayBufferYesThe content to parse.

parseAsText ​

Parse data as text.

ArgumentTypeRequiredDescription
contentStringYesThe 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.
optionIGCodeReaderOptionsNoThe PLY reader options.