public class ThreeDServiceImpl extends DefaultComponent implements ThreeDService
ThreeDService
Modifier and Type | Field and Description |
---|---|
protected AutomaticLODContributionHandler |
automaticLODs |
protected AutomaticRenderViewContributionHandler |
automaticRenderViews |
static String |
DEFAULT_LODS_EP |
static String |
DEFAULT_RENDER_VIEWS_EP |
protected static org.apache.commons.logging.Log |
log |
static String |
RENDER_VIEWS_EP |
protected RenderViewContributionHandler |
renderViews |
lastModified
Constructor and Description |
---|
ThreeDServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
BlobHolder |
batchConvert(ThreeD originalThreed)
Batch convert the
originalThreed 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 Collada
colladaThreeD to glTF |
void |
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 progress
|
RenderView |
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 given
doc . |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected static final org.apache.commons.logging.Log log
public static final String RENDER_VIEWS_EP
public static final String DEFAULT_RENDER_VIEWS_EP
public static final String DEFAULT_LODS_EP
protected AutomaticLODContributionHandler automaticLODs
protected AutomaticRenderViewContributionHandler automaticRenderViews
protected RenderViewContributionHandler renderViews
public ThreeDServiceImpl()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public void cleanBatchData(DocumentModel doc)
ThreeDService
cleanBatchData
in interface ThreeDService
public void launchBatchConversion(DocumentModel doc)
ThreeDService
doc
.launchBatchConversion
in interface ThreeDService
doc
- the 3D document to be convertedpublic BlobHolder batchConvert(ThreeD originalThreed)
ThreeDService
originalThreed
to all needed blobs (lod transmission formats and thumbnail render)batchConvert
in interface ThreeDService
originalThreed
- the 3d to convertBlobHolder
object of the converted assets.public Collection<RenderView> getAvailableRenderViews()
ThreeDService
getAvailableRenderViews
in interface ThreeDService
public Collection<RenderView> getAutomaticRenderViews()
ThreeDService
getAutomaticRenderViews
in interface ThreeDService
public Collection<AutomaticLOD> getAvailableLODs()
ThreeDService
getAvailableLODs
in interface ThreeDService
public Collection<AutomaticLOD> getAutomaticLODs()
ThreeDService
getAutomaticLODs
in interface ThreeDService
public AutomaticLOD getAutomaticLOD(String automaticLODId)
ThreeDService
getAutomaticLOD
in interface ThreeDService
public RenderView getRenderView(String renderViewId)
ThreeDService
getRenderView
in interface ThreeDService
public RenderView getRenderView(Integer azimuth, Integer zenith)
ThreeDService
getRenderView
in interface ThreeDService
public TransmissionThreeD convertColladaToglTF(TransmissionThreeD colladaThreeD)
ThreeDService
colladaThreeD
to glTFconvertColladaToglTF
in interface ThreeDService
colladaThreeD
- the 3d to convertTransmissionThreeD
object of in glTF.public ThreeDBatchProgress getBatchProgress(String repositoryName, String docId)
ThreeDService
getBatchProgress
in interface ThreeDService
docId
- of the document being processedThreeDBatchProgress
with status (queued, running, unknown) and a message of the running stateCopyright © 2018 Nuxeo. All rights reserved.