webcad-ue4-api/types/DatabaseServices/CADFiler.d.ts

44 lines
1.4 KiB
TypeScript
Raw Normal View History

2025-04-01 14:56:29 +08:00
import { Matrix4 } from 'three';
2024-10-29 17:14:43 +08:00
import { Vec3 } from '../Geometry/IVec3';
import { CADObject } from './CADObject';
import { Database } from './Database';
import { ISerialize } from './ISerialize';
import { ObjectId } from './ObjectId';
/**
* CAD文件数据
*/
export declare class CADFiler {
protected _datas: any[];
database: Database;
private readIndex;
constructor(_datas?: any[]);
Destroy(): void;
get Data(): any[];
set Data(data: any[]);
Clear(): this;
Reset(): this;
WriteString(str: string): this;
ReadString(): string;
WriteObject(obj: ISerialize): this;
ReadObject<T extends ISerialize = CADObject>(obj?: T): T;
CloneObjects(objects: CADObject[], clonedObjects?: CADObject[]): CADObject[];
Write(data: any): this;
WriteBool(v: boolean): void;
WriteVec3(v3: Vec3): void;
2025-04-01 14:56:29 +08:00
WriteMatrix4(m: Matrix4): void;
2024-10-29 17:14:43 +08:00
Write2dArray(arr: [any, any][]): void;
Read(): any;
ReadBool(): boolean;
2025-04-01 14:56:29 +08:00
ReadMatrix4(): Matrix4;
2024-10-29 17:14:43 +08:00
ReadArray(count: number): any[];
Read2dArray(): [any, any][];
WriteObjectId(id: ObjectId): this;
ReadObjectId(): ObjectId;
WriteSoftObjectId(id: ObjectId): this;
ReadSoftObjectId(): ObjectId;
WriteHardObjectId(id: ObjectId): this;
ReadHardObjectId(): ObjectId<CADObject>;
ToString(): string;
FromString(str: string): void;
}
//# sourceMappingURL=CADFiler.d.ts.map