Class ThreeDServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.threed.service.ThreeDServiceImpl
- All Implemented Interfaces:
ThreeDService,Adaptable,Component,Extensible,TimestampedService
Default implementation of
ThreeDService- Since:
- 8.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AutomaticLODContributionHandlerprotected AutomaticRenderViewContributionHandlerstatic final Stringstatic final Stringstatic final Stringprotected RenderViewContributionHandlerFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ComponentContext context) Activates the component.batchConvert(ThreeD originalThreed) Batch convert theoriginalThreedto all needed blobs (lod transmission formats and thumbnail render)voidClears data model for render views and transmission formats.convertColladaToglTF(TransmissionThreeD colladaThreeD) Batch convert the ColladacolladaThreeDto glTFvoiddeactivate(ComponentContext context) Deactivates the component.getAutomaticLOD(String automaticLODId) Returns the available registered Automatic LOD by id.Returns the automatic registered automatic LODs on a 3D content.Returns the automatic registered render views on a 3D content.Returns the available registered automatic LODs on a 3D content.Returns the available registered render views on a 3D content.getBatchProgress(String repositoryName, String docId) Get the batch processing progressgetRenderView(Integer azimuth, Integer zenith) Returns the available registered render views by azimuth and zenith (the combination is always unique).getRenderView(String renderViewId) Returns the available registered render views by id.voidLaunch all the registered automatic lod transmission version and thumbnail render on the givendoc.voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) voidunregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
RENDER_VIEWS_EP
- See Also:
-
DEFAULT_RENDER_VIEWS_EP
- See Also:
-
DEFAULT_LODS_EP
- See Also:
-
automaticLODs
-
automaticRenderViews
-
renderViews
-
-
Constructor Details
-
ThreeDServiceImpl
public ThreeDServiceImpl()
-
-
Method Details
-
activate
Description copied from interface:ComponentActivates the component.This method is called by the runtime when a component is activated.
- Specified by:
activatein interfaceComponent- Overrides:
activatein classDefaultComponent- Parameters:
context- the runtime context
-
deactivate
Description copied from interface:ComponentDeactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivatein interfaceComponent- Overrides:
deactivatein classDefaultComponent- Parameters:
context- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContributionin classDefaultComponent
-
cleanBatchData
Description copied from interface:ThreeDServiceClears data model for render views and transmission formats.- Specified by:
cleanBatchDatain interfaceThreeDService
-
launchBatchConversion
Description copied from interface:ThreeDServiceLaunch all the registered automatic lod transmission version and thumbnail render on the givendoc.- Specified by:
launchBatchConversionin interfaceThreeDService- Parameters:
doc- the 3D document to be converted
-
batchConvert
Description copied from interface:ThreeDServiceBatch convert theoriginalThreedto all needed blobs (lod transmission formats and thumbnail render)- Specified by:
batchConvertin interfaceThreeDService- Parameters:
originalThreed- the 3d to convert- Returns:
- a
BlobHolderobject of the converted assets.
-
getAvailableRenderViews
Description copied from interface:ThreeDServiceReturns the available registered render views on a 3D content.- Specified by:
getAvailableRenderViewsin interfaceThreeDService
-
getAutomaticRenderViews
Description copied from interface:ThreeDServiceReturns the automatic registered render views on a 3D content.- Specified by:
getAutomaticRenderViewsin interfaceThreeDService
-
getAvailableLODs
Description copied from interface:ThreeDServiceReturns the available registered automatic LODs on a 3D content.- Specified by:
getAvailableLODsin interfaceThreeDService
-
getAutomaticLODs
Description copied from interface:ThreeDServiceReturns the automatic registered automatic LODs on a 3D content.- Specified by:
getAutomaticLODsin interfaceThreeDService
-
getAutomaticLOD
Description copied from interface:ThreeDServiceReturns the available registered Automatic LOD by id.- Specified by:
getAutomaticLODin interfaceThreeDService
-
getRenderView
Description copied from interface:ThreeDServiceReturns the available registered render views by id.- Specified by:
getRenderViewin interfaceThreeDService
-
getRenderView
Description copied from interface:ThreeDServiceReturns the available registered render views by azimuth and zenith (the combination is always unique).- Specified by:
getRenderViewin interfaceThreeDService
-
convertColladaToglTF
Description copied from interface:ThreeDServiceBatch convert the ColladacolladaThreeDto glTF- Specified by:
convertColladaToglTFin interfaceThreeDService- Parameters:
colladaThreeD- the 3d to convert- Returns:
- a
TransmissionThreeDobject of in glTF.
-
getBatchProgress
Description copied from interface:ThreeDServiceGet the batch processing progress- Specified by:
getBatchProgressin interfaceThreeDServicedocId- of the document being processed- Returns:
- a
ThreeDBatchProgresswith status (queued, running, unknown) and a message of the running state
-