public class TLcd3DMeshViewshedFactory extends Object implements ILcdViewshedFactory, ILcdStatusSource
A viewshed factory that supports the creation of viewsheds for ILcd3DMesh
instances.
Constructor and Description |
---|
TLcd3DMeshViewshedFactory(ILcdGeoReference aViewshedReference,
ALcdViewshedObserver aViewshedObserver)
Creates a new
TLcd3DMeshViewshedFactory , given an ALcdViewshedObserver . |
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(ILcdStatusListener aStatusListener)
Starts notifying a listener with the progress of creation of a viewshed
|
boolean |
canCreateViewshed(Object aObject,
ILcdModelModelTransformation aModelModelTransformation)
Checks whether this
TLcd3DMeshViewshedFactory can create
a viewshed for the given aObject |
ILcdViewshed |
createViewshed(Object aObject,
ILcdModelModelTransformation aModelModelTransformation)
Creates a viewshed for the given object.
|
ALcdViewshedObserver |
getViewshedObserver()
Returns the viewshed observer for this
TLcd3DMeshViewshedFactory . |
void |
removeStatusListener(ILcdStatusListener aStatusListener)
Terminates notifying a listener of the progress of creation of a viewshed
|
public TLcd3DMeshViewshedFactory(ILcdGeoReference aViewshedReference, ALcdViewshedObserver aViewshedObserver)
TLcd3DMeshViewshedFactory
, given an ALcdViewshedObserver
.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.public ALcdViewshedObserver getViewshedObserver()
TLcd3DMeshViewshedFactory
.public void removeStatusListener(ILcdStatusListener aStatusListener)
removeStatusListener
in interface ILcdStatusSource
aStatusListener
- will no longer be notified of progress of creation of the viewshedaddStatusListener(com.luciad.util.ILcdStatusListener)
public void addStatusListener(ILcdStatusListener aStatusListener)
addStatusListener
in interface ILcdStatusSource
aStatusListener
- will be notified of progress of creation of the viewshedremoveStatusListener(ILcdStatusListener)
public ILcdViewshed createViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation)
createViewshed
in interface ILcdViewshedFactory
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 of aObject
and
aModel
. The destination reference is the desired
reference of the viewshed. This should be a cartesian reference
such as ILcdGeocentricReference
.public boolean canCreateViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation)
TLcd3DMeshViewshedFactory
can create
a viewshed for the given aObject
canCreateViewshed
in interface ILcdViewshedFactory
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 of aObject
.
The destination reference is the desired
reference of the viewshed. This should be a cartesian reference
such as ILcdGeocentricReference
.ILcd3DMesh
; false otherwise.