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
public class ThreeDServiceImpl extends DefaultComponent implements ThreeDService
Default implementation ofThreeDService- Since:
- 8.4
-
-
Field Summary
Fields Modifier and Type Field Description protected AutomaticLODContributionHandlerautomaticLODsprotected AutomaticRenderViewContributionHandlerautomaticRenderViewsstatic StringDEFAULT_LODS_EPstatic StringDEFAULT_RENDER_VIEWS_EPprotected static Loglogstatic StringRENDER_VIEWS_EPprotected RenderViewContributionHandlerrenderViews-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description ThreeDServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(ComponentContext context)Activates the component.BlobHolderbatchConvert(ThreeD originalThreed)Batch convert theoriginalThreedto all needed blobs (lod transmission formats and thumbnail render)voidcleanBatchData(DocumentModel doc)Clears data model for render views and transmission formats.TransmissionThreeDconvertColladaToglTF(TransmissionThreeD colladaThreeD)Batch convert the ColladacolladaThreeDto glTFvoiddeactivate(ComponentContext context)Deactivates the component.AutomaticLODgetAutomaticLOD(String automaticLODId)Returns the available registered Automatic LOD by id.Collection<AutomaticLOD>getAutomaticLODs()Returns the automatic registered automatic LODs on a 3D content.Collection<RenderView>getAutomaticRenderViews()Returns the automatic registered render views on a 3D content.Collection<AutomaticLOD>getAvailableLODs()Returns the available registered automatic LODs on a 3D content.Collection<RenderView>getAvailableRenderViews()Returns the available registered render views on a 3D content.ThreeDBatchProgressgetBatchProgress(String repositoryName, String docId)Get the batch processing progressRenderViewgetRenderView(Integer azimuth, Integer zenith)Returns the available registered render views by azimuth and zenith (the combination is always unique).RenderViewgetRenderView(String renderViewId)Returns the available registered render views by id.voidlaunchBatchConversion(DocumentModel doc)Launch 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, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
log
protected static final Log log
-
RENDER_VIEWS_EP
public static final String RENDER_VIEWS_EP
- See Also:
- Constant Field Values
-
DEFAULT_RENDER_VIEWS_EP
public static final String DEFAULT_RENDER_VIEWS_EP
- See Also:
- Constant Field Values
-
DEFAULT_LODS_EP
public static final String DEFAULT_LODS_EP
- See Also:
- Constant Field Values
-
automaticLODs
protected AutomaticLODContributionHandler automaticLODs
-
automaticRenderViews
protected AutomaticRenderViewContributionHandler automaticRenderViews
-
renderViews
protected RenderViewContributionHandler renderViews
-
-
Method Detail
-
activate
public void activate(ComponentContext context)
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
public void deactivate(ComponentContext context)
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
public void cleanBatchData(DocumentModel doc)
Description copied from interface:ThreeDServiceClears data model for render views and transmission formats.- Specified by:
cleanBatchDatain interfaceThreeDService
-
launchBatchConversion
public void launchBatchConversion(DocumentModel doc)
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
public BlobHolder batchConvert(ThreeD originalThreed)
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
public Collection<RenderView> getAvailableRenderViews()
Description copied from interface:ThreeDServiceReturns the available registered render views on a 3D content.- Specified by:
getAvailableRenderViewsin interfaceThreeDService
-
getAutomaticRenderViews
public Collection<RenderView> getAutomaticRenderViews()
Description copied from interface:ThreeDServiceReturns the automatic registered render views on a 3D content.- Specified by:
getAutomaticRenderViewsin interfaceThreeDService
-
getAvailableLODs
public Collection<AutomaticLOD> getAvailableLODs()
Description copied from interface:ThreeDServiceReturns the available registered automatic LODs on a 3D content.- Specified by:
getAvailableLODsin interfaceThreeDService
-
getAutomaticLODs
public Collection<AutomaticLOD> getAutomaticLODs()
Description copied from interface:ThreeDServiceReturns the automatic registered automatic LODs on a 3D content.- Specified by:
getAutomaticLODsin interfaceThreeDService
-
getAutomaticLOD
public AutomaticLOD getAutomaticLOD(String automaticLODId)
Description copied from interface:ThreeDServiceReturns the available registered Automatic LOD by id.- Specified by:
getAutomaticLODin interfaceThreeDService
-
getRenderView
public RenderView getRenderView(String renderViewId)
Description copied from interface:ThreeDServiceReturns the available registered render views by id.- Specified by:
getRenderViewin interfaceThreeDService
-
getRenderView
public RenderView getRenderView(Integer azimuth, Integer zenith)
Description copied from interface:ThreeDServiceReturns the available registered render views by azimuth and zenith (the combination is always unique).- Specified by:
getRenderViewin interfaceThreeDService
-
convertColladaToglTF
public TransmissionThreeD convertColladaToglTF(TransmissionThreeD colladaThreeD)
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
public ThreeDBatchProgress getBatchProgress(String repositoryName, String docId)
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
-
-