DracoFormat

Overzicht

DracoFormat is een klasse in Aspose.3D FOSS voor Java. Erft van: FileFormat.

Google Draco-formaat

Voorbeeld: De volgende code laat zien hoe je een Mesh kunt coderen en decoderen naar/van een byte-array:

          Mesh mesh = (new Sphere()).toMesh();
          //encode mesh

Deze klasse biedt 25 methoden voor het werken met DracoFormat objecten in Java programma’s. Beschikbare methoden omvatten: FileFormat, canDetect, createLoadOptions, createSaveOptions, decode, detect, encode, getCanExport, getCanImport, getContentType, getExtension, getExtensions en 6 extra methoden. Alle openbare leden zijn toegankelijk voor elke Java applicatie na het installeren van het Aspose.3D FOSS voor Java pakket. Eigenschappen: AMF, ASE, ASPOSE3D_WEB, BLENDER, COLLADA, DISCREET3DS en nog 53.

Eigenschappen

NaamTypeToegangBeschrijving
formatsList<FileFormat>LezenHaalt de formaten op.
versionVersionLezenHaalt de versie op.
canImportbooleanLezenHaalt de can import op.
canExportbooleanLezenHaalt de can export op.
extensionStringLezenHaalt de extensie op.
extensionsString[]LezenHaalt de extensies op.
contentTypeFileContentTypeLezenHaalt het inhoudstype op.
fileFormatTypeFileFormatTypeLezenHaalt het bestandformaattype op.
FBX6100ASCIIFileFormatLezenHaalt de fbx6100 ascii op.
FBX6100_BINARYFileFormatLezenHaalt de fbx6100-binaire op.
FBX7200ASCIIFileFormatLezenHaalt de fbx7200 ascii op.
FBX7200_BINARYFileFormatLezenHaalt de fbx7200-binaire op.
FBX7300ASCIIFileFormatLezenHaalt de fbx7300 ascii op.
FBX7300_BINARYFileFormatLezenHaalt de fbx7300-binary op.
FBX7400ASCIIFileFormatLezenHaalt de fbx7400 ascii op.
FBX7400_BINARYFileFormatLezenHaalt de fbx7400-binaire op.
FBX7500ASCIIFileFormatLezenHaalt de fbx7500 ascii op.
FBX7500_BINARYFileFormatLezenHaalt de fbx7500-binaire op.
FBX7600ASCIIFileFormatLezenHaalt de fbx7600 ascii op.
FBX7600_BINARYFileFormatLezenHaalt de fbx7600-binaire op.
FBX7700ASCIIFileFormatLezenHaalt de fbx7700 ascii op.
FBX7700_BINARYFileFormatLezenHaalt de fbx7700-binaire op.
MAYAASCIIFileFormatLezenHaalt de mayaascii op.
MAYA_BINARYFileFormatLezenHaalt de maya-binary op.
STL_BINARYFileFormatLezenHaalt de stl-binaire op.
STLASCIIFileFormatLezenHaalt de stlascii op.
WAVEFRONTOBJFileFormatLezenHaalt de wavefrontobj op.
DISCREET3DSFileFormatLezenHaalt de discreet3 ds op.
COLLADAFileFormatLezenHaalt de collada op.
UNIVERSAL3DFileFormatLezenHaalt de universal3 d op.
GLTFFileFormatLezenHaalt de gltf op.
GLTF2FileFormatLezenHaalt de gltf2 op.
GLTF_BINARYFileFormatLezenHaalt de gltf-binaire op.
GLTF2_BINARYFileFormatLezenHaalt de gltf2-binaire op.
PDFPdfFormatLezenHaalt de pdf op.
BLENDERFileFormatLezenHaalt de blender op.
DXFFileFormatLezenHaalt de dxf op.
PLYPlyFormatLezenHaalt de ply op.
X_BINARYFileFormatLezenHaalt de x-binaire op.
X_TEXTFileFormatLezenHaalt de x-tekst op.
DRACODracoFormatLezenHaalt de draco op.
MICROSOFT3MFMicrosoft3MFFormatLezenHaalt de microsoft3 mf op.
RVM_TEXTRvmFormatLezenHaalt de rvm-tekst op.
RVM_BINARYRvmFormatLezenHaalt de rvm-binary op.
ASEFileFormatLezenHaalt de ase op.
IFCFileFormatLezenHaalt de ifc op.
SIEMENSJT8FileFormatLezenHaalt de siemensjt8 op.
SIEMENSJT9FileFormatLezenHaalt de siemensjt9 op.
AMFFileFormatLezenHaalt de amf op.
VRMLFileFormatLezenHaalt de vrml op.
ASPOSE3D_WEBFileFormatLezenHaalt de aspose3d-web op.
HTML5FileFormatLezenHaalt de html5 op.
ZIPFileFormatLezenHaalt de zip op.
USDFileFormatLezenHaalt de usd op.
USDAFileFormatLezenHaalt de usda op.
USDZFileFormatLezenHaalt de usdz op.
XYZFileFormatLezenHaalt de xyz op.
PCDFileFormatLezenHaalt de pcd op.
PCD_BINARYFileFormatLezenHaalt de pcd-binary op.

Methoden

HandtekeningBeschrijving
decode(fileName: String) → GeometryNiet geïmplementeerd in de FOSS-editie — gooit een fout tijdens runtime. Decodeer de point cloud of mesh van de opgegeven bestandsnaam.
decode(data: byte[]) → GeometryNiet geïmplementeerd in de FOSS-editie — gooit een fout tijdens runtime. Decodeer de point cloud of mesh uit geheugengegevens.
encode(entity: Entity, stream: Stream, options: DracoSaveOptions)Niet geïmplementeerd in de FOSS-editie — gooit een fout tijdens runtime. Encodeer de entiteit naar de opgegeven stream.
encode(entity: Entity, stream: Stream)Niet geïmplementeerd in de FOSS-editie — gooit een fout tijdens runtime. Encodeer de entiteit naar de opgegeven stream.
encode(entity: Entity, fileName: String, options: DracoSaveOptions)Niet geïmplementeerd in de FOSS-editie — gooit een fout bij runtime. Encodeer de entiteit naar het opgegeven bestand.
encode(entity: Entity, fileName: String)Niet geïmplementeerd in de FOSS-editie — gooit een fout bij runtime. Encodeer de entiteit naar het opgegeven bestand.
encode(entity: Entity, options: DracoSaveOptions) → byte[]Niet geïmplementeerd in de FOSS-editie — gooit een fout bij runtime. Encodeer de entiteit naar ruwe Draco-gegevens.
encode(entity: Entity) → byte[]Niet geïmplementeerd in de FOSS-editie — gooit een fout tijdens runtime. Encodeer de entiteit naar Draco-ruwe data.
FileFormat(type: FileFormatType, version: Version, contentType: FileContentType, extension: String, extensions: String[], canImport: boolean, canExport: boolean)Roept FileFormat(type, version, contentType, extension, extensions, canImport, canExport) aan op deze DracoFormat instantie.
getFormats() → List<FileFormat>Retourneert de formaten.
getVersion() → VersionRetourneert de versie.
getFormatByExtension(filePath: String) → FileFormatRoept getFormatByExtension(filePath) aan op deze DracoFormat instantie.
getCanImport() → booleanRetourneert de can import.
getCanExport() → booleanRetourneert de can export.
getExtension() → StringRetourneert de extensie.
getExtensions() → String[]Retourneert de extensies.
getContentType() → FileContentTypeRetourneert het inhoudstype.
getFileFormatType() → FileFormatTypeRetourneert het type bestandsformaat.
createLoadOptions() → LoadOptionsRoept createLoadOptions aan op deze DracoFormat-instantie.
createSaveOptions() → SaveOptionsRoept createSaveOptions aan op deze DracoFormat-instantie.
canDetect(stream: Stream, fileName: String) → booleanRoept canDetect(stream, fileName) aan op deze DracoFormat instantie.
detect(stream: Stream, fileName: String) → FileFormatRoept detect(stream, fileName) aan op deze DracoFormat instantie.
detect(fileName: String) → FileFormatRoept detect(fileName) aan op deze DracoFormat instantie.
registerFormat(format: FileFormat)Roept registerFormat(format) aan op deze DracoFormat instantie.
toString() → StringRoept toString aan op deze DracoFormat instantie.

Zie ook

 Nederlands