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 AutomaticLODContributionHandler
automaticLODs
protected AutomaticRenderViewContributionHandler
automaticRenderViews
static String
DEFAULT_LODS_EP
static String
DEFAULT_RENDER_VIEWS_EP
protected static Log
log
static String
RENDER_VIEWS_EP
protected RenderViewContributionHandler
renderViews
-
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 void
activate(ComponentContext context)
Activates the component.BlobHolder
batchConvert(ThreeD originalThreed)
Batch convert theoriginalThreed
to all needed blobs (lod transmission formats and thumbnail render)void
cleanBatchData(DocumentModel doc)
Clears data model for render views and transmission formats.TransmissionThreeD
convertColladaToglTF(TransmissionThreeD colladaThreeD)
Batch convert the ColladacolladaThreeD
to glTFvoid
deactivate(ComponentContext context)
Deactivates the component.AutomaticLOD
getAutomaticLOD(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.ThreeDBatchProgress
getBatchProgress(String repositoryName, String docId)
Get the batch processing progressRenderView
getRenderView(Integer azimuth, Integer zenith)
Returns the available registered render views by azimuth and zenith (the combination is always unique).RenderView
getRenderView(String renderViewId)
Returns the available registered render views by id.void
launchBatchConversion(DocumentModel doc)
Launch all the registered automatic lod transmission version and thumbnail render on the givendoc
.void
registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
void
unregisterContribution(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:Component
Activates the component.This method is called by the runtime when a component is activated.
- Specified by:
activate
in interfaceComponent
- Overrides:
activate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
deactivate
public void deactivate(ComponentContext context)
Description copied from interface:Component
Deactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interfaceComponent
- Overrides:
deactivate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
unregisterContribution
in classDefaultComponent
-
cleanBatchData
public void cleanBatchData(DocumentModel doc)
Description copied from interface:ThreeDService
Clears data model for render views and transmission formats.- Specified by:
cleanBatchData
in interfaceThreeDService
-
launchBatchConversion
public void launchBatchConversion(DocumentModel doc)
Description copied from interface:ThreeDService
Launch all the registered automatic lod transmission version and thumbnail render on the givendoc
.- Specified by:
launchBatchConversion
in interfaceThreeDService
- Parameters:
doc
- the 3D document to be converted
-
batchConvert
public BlobHolder batchConvert(ThreeD originalThreed)
Description copied from interface:ThreeDService
Batch convert theoriginalThreed
to all needed blobs (lod transmission formats and thumbnail render)- Specified by:
batchConvert
in interfaceThreeDService
- Parameters:
originalThreed
- the 3d to convert- Returns:
- a
BlobHolder
object of the converted assets.
-
getAvailableRenderViews
public Collection<RenderView> getAvailableRenderViews()
Description copied from interface:ThreeDService
Returns the available registered render views on a 3D content.- Specified by:
getAvailableRenderViews
in interfaceThreeDService
-
getAutomaticRenderViews
public Collection<RenderView> getAutomaticRenderViews()
Description copied from interface:ThreeDService
Returns the automatic registered render views on a 3D content.- Specified by:
getAutomaticRenderViews
in interfaceThreeDService
-
getAvailableLODs
public Collection<AutomaticLOD> getAvailableLODs()
Description copied from interface:ThreeDService
Returns the available registered automatic LODs on a 3D content.- Specified by:
getAvailableLODs
in interfaceThreeDService
-
getAutomaticLODs
public Collection<AutomaticLOD> getAutomaticLODs()
Description copied from interface:ThreeDService
Returns the automatic registered automatic LODs on a 3D content.- Specified by:
getAutomaticLODs
in interfaceThreeDService
-
getAutomaticLOD
public AutomaticLOD getAutomaticLOD(String automaticLODId)
Description copied from interface:ThreeDService
Returns the available registered Automatic LOD by id.- Specified by:
getAutomaticLOD
in interfaceThreeDService
-
getRenderView
public RenderView getRenderView(String renderViewId)
Description copied from interface:ThreeDService
Returns the available registered render views by id.- Specified by:
getRenderView
in interfaceThreeDService
-
getRenderView
public RenderView getRenderView(Integer azimuth, Integer zenith)
Description copied from interface:ThreeDService
Returns the available registered render views by azimuth and zenith (the combination is always unique).- Specified by:
getRenderView
in interfaceThreeDService
-
convertColladaToglTF
public TransmissionThreeD convertColladaToglTF(TransmissionThreeD colladaThreeD)
Description copied from interface:ThreeDService
Batch convert the ColladacolladaThreeD
to glTF- Specified by:
convertColladaToglTF
in interfaceThreeDService
- Parameters:
colladaThreeD
- the 3d to convert- Returns:
- a
TransmissionThreeD
object of in glTF.
-
getBatchProgress
public ThreeDBatchProgress getBatchProgress(String repositoryName, String docId)
Description copied from interface:ThreeDService
Get the batch processing progress- Specified by:
getBatchProgress
in interfaceThreeDService
docId
- of the document being processed- Returns:
- a
ThreeDBatchProgress
with status (queued, running, unknown) and a message of the running state
-
-