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
Modifier and TypeFieldDescriptionprotected AutomaticLODContributionHandler
protected AutomaticRenderViewContributionHandler
static final String
static final String
static final String
protected RenderViewContributionHandler
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(ComponentContext context) Activates the component.batchConvert
(ThreeD originalThreed) Batch convert theoriginalThreed
to all needed blobs (lod transmission formats and thumbnail render)void
Clears data model for render views and transmission formats.convertColladaToglTF
(TransmissionThreeD colladaThreeD) Batch convert the ColladacolladaThreeD
to glTFvoid
deactivate
(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.void
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
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: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
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
Description copied from interface:ThreeDService
Clears data model for render views and transmission formats.- Specified by:
cleanBatchData
in interfaceThreeDService
-
launchBatchConversion
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
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
Description copied from interface:ThreeDService
Returns the available registered render views on a 3D content.- Specified by:
getAvailableRenderViews
in interfaceThreeDService
-
getAutomaticRenderViews
Description copied from interface:ThreeDService
Returns the automatic registered render views on a 3D content.- Specified by:
getAutomaticRenderViews
in interfaceThreeDService
-
getAvailableLODs
Description copied from interface:ThreeDService
Returns the available registered automatic LODs on a 3D content.- Specified by:
getAvailableLODs
in interfaceThreeDService
-
getAutomaticLODs
Description copied from interface:ThreeDService
Returns the automatic registered automatic LODs on a 3D content.- Specified by:
getAutomaticLODs
in interfaceThreeDService
-
getAutomaticLOD
Description copied from interface:ThreeDService
Returns the available registered Automatic LOD by id.- Specified by:
getAutomaticLOD
in interfaceThreeDService
-
getRenderView
Description copied from interface:ThreeDService
Returns the available registered render views by id.- Specified by:
getRenderView
in interfaceThreeDService
-
getRenderView
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
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
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
-