Class Collada2glTFConverter
java.lang.Object
org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
org.nuxeo.ecm.platform.threed.convert.Collada2glTFConverter
- All Implemented Interfaces:
Converter
,ExternalConverter
Conversion from Collada to glTF format
- Since:
- 8.4
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CommandLineBasedConverter.CmdReturn
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BlobHolder
buildResult
(List<String> cmdOutput, CmdParameters cmdParameters) Builds result from commandLine output buffer.convert
(BlobHolder blobHolder, Map<String, Serializable> parameters) Main method to handle the real Conversion Job.getCmdBlobParameters
(BlobHolder blobHolder, Map<String, Serializable> parameters) Extracts BlobParameters.getCmdStringParameters
(BlobHolder blobHolder, Map<String, Serializable> parameters) Extracts String parameters.Methods inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
execOnBlob, getCommandName, getTmpDirectory, init, isConverterAvailable
-
Constructor Details
-
Collada2glTFConverter
public Collada2glTFConverter()
-
-
Method Details
-
getCmdBlobParameters
protected Map<String,Blob> getCmdBlobParameters(BlobHolder blobHolder, Map<String, Serializable> parameters) throws ConversionExceptionDescription copied from class:CommandLineBasedConverter
Extracts BlobParameters.- Specified by:
getCmdBlobParameters
in classCommandLineBasedConverter
- Throws:
ConversionException
-
getCmdStringParameters
protected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String, Serializable> parameters) throws ConversionExceptionDescription copied from class:CommandLineBasedConverter
Extracts String parameters.- Specified by:
getCmdStringParameters
in classCommandLineBasedConverter
- Throws:
ConversionException
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String, Serializable> parameters) throws ConversionExceptionDescription copied from interface:Converter
Main method to handle the real Conversion Job.Returned
BlobHolder
must implementCachableBlobHolder
, otherwise result won't be cached.- Specified by:
convert
in interfaceConverter
- Overrides:
convert
in classCommandLineBasedConverter
- Throws:
ConversionException
-
buildResult
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParameters) throws ConversionException Description copied from class:CommandLineBasedConverter
Builds result from commandLine output buffer.- Specified by:
buildResult
in classCommandLineBasedConverter
- Throws:
ConversionException
-