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, name| 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, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected 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)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentpublic void cleanBatchData(DocumentModel doc)
ThreeDServicecleanBatchData in interface ThreeDServicepublic void launchBatchConversion(DocumentModel doc)
ThreeDServicedoc.launchBatchConversion in interface ThreeDServicedoc - the 3D document to be convertedpublic BlobHolder batchConvert(ThreeD originalThreed)
ThreeDServiceoriginalThreed to all needed blobs (lod transmission formats and thumbnail render)batchConvert in interface ThreeDServiceoriginalThreed - the 3d to convertBlobHolder object of the converted assets.public Collection<RenderView> getAvailableRenderViews()
ThreeDServicegetAvailableRenderViews in interface ThreeDServicepublic Collection<RenderView> getAutomaticRenderViews()
ThreeDServicegetAutomaticRenderViews in interface ThreeDServicepublic Collection<AutomaticLOD> getAvailableLODs()
ThreeDServicegetAvailableLODs in interface ThreeDServicepublic Collection<AutomaticLOD> getAutomaticLODs()
ThreeDServicegetAutomaticLODs in interface ThreeDServicepublic AutomaticLOD getAutomaticLOD(String automaticLODId)
ThreeDServicegetAutomaticLOD in interface ThreeDServicepublic RenderView getRenderView(String renderViewId)
ThreeDServicegetRenderView in interface ThreeDServicepublic RenderView getRenderView(Integer azimuth, Integer zenith)
ThreeDServicegetRenderView in interface ThreeDServicepublic TransmissionThreeD convertColladaToglTF(TransmissionThreeD colladaThreeD)
ThreeDServicecolladaThreeD to glTFconvertColladaToglTF in interface ThreeDServicecolladaThreeD - the 3d to convertTransmissionThreeD object of in glTF.public ThreeDBatchProgress getBatchProgress(String repositoryName, String docId)
ThreeDServicegetBatchProgress in interface ThreeDServicedocId - of the document being processedThreeDBatchProgress with status (queued, running, unknown) and a message of the running stateCopyright © 2019 Nuxeo. All rights reserved.