Package com.luciad.tea.viewshed
Class TLcd3DMeshViewshedFactory
java.lang.Object
com.luciad.tea.viewshed.TLcd3DMeshViewshedFactory
- All Implemented Interfaces:
ILcdViewshedFactory
,ILcdStatusSource
public class TLcd3DMeshViewshedFactory
extends Object
implements ILcdViewshedFactory, ILcdStatusSource
A viewshed factory that supports the creation of viewsheds for ILcd3DMesh
instances.
- Since:
- 11.0
-
Constructor Summary
ConstructorDescriptionTLcd3DMeshViewshedFactory
(ILcdGeoReference aViewshedReference, ALcdViewshedObserver aViewshedObserver) Creates a newTLcd3DMeshViewshedFactory
, given anALcdViewshedObserver
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatusListener
(ILcdStatusListener aStatusListener) Starts notifying a listener with the progress of creation of a viewshedboolean
canCreateViewshed
(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Checks whether thisTLcd3DMeshViewshedFactory
can create a viewshed for the givenaObject
createViewshed
(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Creates a viewshed for the given object.Returns the viewshed observer for thisTLcd3DMeshViewshedFactory
.void
removeStatusListener
(ILcdStatusListener aStatusListener) Terminates notifying a listener of the progress of creation of a viewshed
-
Constructor Details
-
TLcd3DMeshViewshedFactory
public TLcd3DMeshViewshedFactory(ILcdGeoReference aViewshedReference, ALcdViewshedObserver aViewshedObserver) Creates a newTLcd3DMeshViewshedFactory
, given anALcdViewshedObserver
.- Parameters:
aViewshedReference
- The viewshed reference that should be used by this factory. All generated viewsheds will use this reference.aViewshedObserver
- The viewshed observer for this viewshed.
-
-
Method Details
-
getViewshedObserver
Returns the viewshed observer for thisTLcd3DMeshViewshedFactory
.- Returns:
- A viewshed observer.
-
removeStatusListener
Terminates notifying a listener of the progress of creation of a viewshed- Specified by:
removeStatusListener
in interfaceILcdStatusSource
- Parameters:
aStatusListener
- will no longer be notified of progress of creation of the viewshed- See Also:
-
addStatusListener
Starts notifying a listener with the progress of creation of a viewshed- Specified by:
addStatusListener
in interfaceILcdStatusSource
- Parameters:
aStatusListener
- will be notified of progress of creation of the viewshed- See Also:
-
createViewshed
public ILcdViewshed createViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Creates a viewshed for the given object.- Specified by:
createViewshed
in interfaceILcdViewshedFactory
- Parameters:
aObject
- The object for which a viewshed will be created.aModelModelTransformation
- The transformation that transforms the domain object to the reference in which the viewshed should be defined. The source reference should be the reference ofaObject
andaModel
. The destination reference is the desired reference of the viewshed. This should be a cartesian reference such asILcdGeocentricReference
.- Returns:
- A viewshed
-
canCreateViewshed
public boolean canCreateViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Checks whether thisTLcd3DMeshViewshedFactory
can create a viewshed for the givenaObject
- Specified by:
canCreateViewshed
in interfaceILcdViewshedFactory
- Parameters:
aObject
- The object to check.aModelModelTransformation
- The transformation that transforms the domain object to the reference in which the viewshed should be defined. The source reference should be the reference ofaObject
. The destination reference is the desired reference of the viewshed. This should be a cartesian reference such asILcdGeocentricReference
.- Returns:
- true if this object is an
ILcd3DMesh
; false otherwise.
-