Home Reference Source Repository
import XReader from 'dh3dlib/js/xfile/XReader.js'
public class | source

XReader

Extends:

ModelReader → XReader

XReader class

Constructor Summary

Public Constructor
public

constructor

Method Summary

Public Methods
public

read X file data from given URL

public

readModelFromFile(file: File): boolean

read X file data from File object

public

readModelProcess(url: *): *

public

readModelSub(url: *): *

Inherited Summary

From class ModelReader
public

read model file from url

public

read model file from File object

Public Constructors

public constructor source

constructor

Public Methods

public readModel(url: string): Promise source

read X file data from given URL

Override:

ModelReader#readModel

Params:

NameTypeAttributeDescription
url string

URL of X file

Return:

Promise

resolved when loading model is completed

public readModelFromFile(file: File): boolean source

read X file data from File object

Override:

ModelReader#readModelFromFile

Params:

NameTypeAttributeDescription
file File

X file

Return:

boolean

true: success, false: failure

public readModelProcess(url: *): * source

Params:

NameTypeAttributeDescription
url *

Return:

*

public readModelSub(url: *): * source

Params:

NameTypeAttributeDescription
url *

Return:

*