public interface UnitTransformationProviderRegistry<D> extends RootLocationConfigProvider, org.openbase.jul.pattern.provider.DataProvider<D>, UnitConfigCollectionProvider
| Modifier and Type | Method and Description |
|---|---|
default rst.domotic.unit.UnitConfigType.UnitConfig |
getRootLocationConfig() |
default javax.media.j3d.Transform3D |
getRootToUnitTransform3D(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the Transform3D of the transformation from root to unit coordinate system.
|
default rct.Transform |
getRootToUnitTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
Method returns the transformation from the root location to the given unit.
|
default Future<rct.Transform> |
getRootToUnitTransformationFuture(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
Method returns the transformation which leads from the root location to the given unit.
|
default javax.vecmath.Point3d |
getUnitBoundingBoxCenterGlobalPoint3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the center coordinates of the unit's BoundingBox in the coordinate system of the root location as a Point3d object.
|
default javax.vecmath.Point3d |
getUnitBoundingBoxCenterPoint3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the center coordinates of the unit's BoundingBox in the unit coordinate system as a Point3d object.
|
default rst.geometry.TranslationType.Translation |
getUnitPositionGlobal(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the position of the unit relative to the root location as a Translation object.
|
default javax.vecmath.Point3d |
getUnitPositionGlobalPoint3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the position of the unit relative to the root location as a Point3d object.
|
default rst.math.Vec3DDoubleType.Vec3DDouble |
getUnitPositionGlobalVec3DDouble(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the position of the unit relative to the root location as a Point3d object.
|
default javax.vecmath.Vector3d |
getUnitPositionGlobalVector3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the position of the unit relative to the root location as a Vector3d object.
|
default rst.geometry.RotationType.Rotation |
getUnitRotationGlobal(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the rotation of the unit relative to the root location as a Rotation object.
|
default javax.vecmath.Quat4d |
getUnitRotationGlobalQuat4d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the rotation of the unit relative to the root location as a Quat4d object.
|
default rst.spatial.ShapeType.Shape |
getUnitShape(String unitId)
Method returns the unit shape of the given unit referred by the id.
|
rst.spatial.ShapeType.Shape |
getUnitShape(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Method returns the unit shape of the given unit configuration.
|
default javax.media.j3d.Transform3D |
getUnitToRootTransform3D(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
Gets the inverse Transform3D to getTransform3D().
|
default rct.Transform |
getUnitToRootTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
Method returns the transformation from the root location to the given unit.
|
default Future<rct.Transform> |
getUnitToRootTransformationFuture(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
Method returns the transformation which leads from the given unit to the root location.
|
default Future<rct.Transform> |
getUnitTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigSource,
rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
Deprecated.
please use getUnitTransformationFuture instead because this method will be return the Transform type directly in near future.
|
default Future<rct.Transform> |
getUnitTransformationFuture(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigSource,
rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
Method returns the transformation between the given unit A and the given unit B.
|
default rct.Transform |
lookupUnitTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigSource,
rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
Deprecated.
do not use method because API changes will be applied in near future and this method will be renamed into
getUnitTransformation within the next release. |
addDataObserver, getData, getDataClass, getDataFuture, isDataAvailable, removeDataObserver, waitForData, waitForDatacontainsUnitConfigById, getUnitConfigById, getUnitConfigs, getUnitConfigsdefault rst.domotic.unit.UnitConfigType.UnitConfig getRootLocationConfig()
throws org.openbase.jul.exception.CouldNotPerformException,
org.openbase.jul.exception.NotAvailableException
getRootLocationConfig in interface RootLocationConfigProviderorg.openbase.jul.exception.CouldNotPerformExceptionorg.openbase.jul.exception.NotAvailableExceptiondefault Future<rct.Transform> getRootToUnitTransformationFuture(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
unitConfigTarget - the unit where the transformation leads to.default Future<rct.Transform> getUnitToRootTransformationFuture(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
unitConfigTarget - the unit where the transformation leads to.@Deprecated default Future<rct.Transform> getUnitTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigSource, rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
unitConfigSource - the unit used as transformation base.unitConfigTarget - the unit where the transformation leads to.default Future<rct.Transform> getUnitTransformationFuture(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigSource, rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
unitConfigSource - the unit used as transformation base.unitConfigTarget - the unit where the transformation leads to.default rct.Transform getRootToUnitTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
throws org.openbase.jul.exception.NotAvailableException
unitConfigTarget - the unit where the transformation leads to.org.openbase.jul.exception.NotAvailableExceptiondefault rct.Transform getUnitToRootTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget)
throws org.openbase.jul.exception.NotAvailableException
unitConfigTarget - the unit where the transformation leads to.org.openbase.jul.exception.NotAvailableException@Deprecated default rct.Transform lookupUnitTransformation(rst.domotic.unit.UnitConfigType.UnitConfig unitConfigSource, rst.domotic.unit.UnitConfigType.UnitConfig unitConfigTarget) throws org.openbase.jul.exception.NotAvailableException
getUnitTransformation within the next release.unitConfigSource - the unit used as transformation base.unitConfigTarget - the unit where the transformation leads to.org.openbase.jul.exception.NotAvailableExceptiondefault javax.media.j3d.Transform3D getRootToUnitTransform3D(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default javax.media.j3d.Transform3D getUnitToRootTransform3D(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default javax.vecmath.Point3d getUnitPositionGlobalPoint3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default rst.math.Vec3DDoubleType.Vec3DDouble getUnitPositionGlobalVec3DDouble(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default javax.vecmath.Vector3d getUnitPositionGlobalVector3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default rst.geometry.TranslationType.Translation getUnitPositionGlobal(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default javax.vecmath.Quat4d getUnitRotationGlobalQuat4d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default rst.geometry.RotationType.Rotation getUnitRotationGlobal(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the transformation is not available.default javax.vecmath.Point3d getUnitBoundingBoxCenterPoint3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the center can not be calculate.default javax.vecmath.Point3d getUnitBoundingBoxCenterGlobalPoint3d(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
unitConfig - the unit config to refer the unit.org.openbase.jul.exception.NotAvailableException - is thrown if the center can not be calculate.default rst.spatial.ShapeType.Shape getUnitShape(String unitId) throws org.openbase.jul.exception.NotAvailableException
If this unit configuration does not provide any shape information the shape of the unit host will be returned. In case the unit host even does not provide any shape information and the unit is a device than the shape of the device class will be used.
unitId - the id to resolve the unit shape.org.openbase.jul.exception.NotAvailableException - is thrown if the unit shape is not available or the resolution has been failed.rst.spatial.ShapeType.Shape getUnitShape(rst.domotic.unit.UnitConfigType.UnitConfig unitConfig)
throws org.openbase.jul.exception.NotAvailableException
If this unit configuration does not provide any shape information the shape of the unit host will be returned. In case the unit host even does not provide any shape information and the unit is a device than the shape of the device class will be used.
unitConfig - the unit configuration to resolve the unit shape.org.openbase.jul.exception.NotAvailableException - is thrown if the unit shape is not available or the resolution has been failed.Copyright © 2014–2018 openbase.org. All rights reserved.