Newer
Older
HuangJiPC / public / static / three / examples / jsm / loaders / PDBLoader.d.ts
@zhangdeliang zhangdeliang on 21 Jun 486 bytes update
import {
	BufferGeometry,
	Loader,
	LoadingManager
} from '../../../src/Three';

export interface PDB {
	geometryAtoms: BufferGeometry;
	geometryBonds: BufferGeometry;
	json: {
		atoms: any[][],
		bonds: number[][]
	}
}


export class PDBLoader extends Loader {

	constructor( manager?: LoadingManager );

	load( url: string, onLoad: ( pdb: PDB ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
	parse( text: string ) : PDB;

}