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

41 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-05-26 11:06:27 +08:00
import { Vec3 } from '../Geometry/IVec3';
2021-01-28 10:17:21 +08:00
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;
2023-02-17 09:40:24 +08:00
WriteBool(v: boolean): void;
2022-05-26 11:06:27 +08:00
WriteVec3(v3: Vec3): void;
2023-03-15 16:40:54 +08:00
Write2dArray(arr: [any, any][]): void;
2021-01-28 10:17:21 +08:00
Read(): any;
2023-02-22 09:27:57 +08:00
ReadBool(): boolean;
2021-01-28 10:17:21 +08:00
ReadArray(count: number): any[];
2023-03-15 16:40:54 +08:00
Read2dArray(): [any, any][];
2021-01-28 10:17:21 +08:00
WriteObjectId(id: ObjectId): this;
ReadObjectId(): ObjectId;
WriteSoftObjectId(id: ObjectId): this;
ReadSoftObjectId(): ObjectId;
WriteHardObjectId(id: ObjectId): this;
2022-02-16 11:15:31 +08:00
ReadHardObjectId(): ObjectId<CADObject>;
2021-01-28 10:17:21 +08:00
ToString(): string;
FromString(str: string): void;
}
//# sourceMappingURL=CADFiler.d.ts.map