Package com.luciad.tea.viewshed
Class TLcdExtrudedPolygonViewshedFactory
java.lang.Object
com.luciad.tea.viewshed.TLcdExtrudedPolygonViewshedFactory
- All Implemented Interfaces:
ILcdViewshedFactory
A viewshed factory for extruded polygons.
This viewshed factory has the capability to create viewsheds for extruded shapes. The extruded
shapes must have ILcdPolygon or ILcdComplexPolygon as a baseshape. Currently
holes in ILcdComplexPolygons are not supported.
- Since:
- 11.0
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdExtrudedPolygonViewshedFactory(ILcdGeoReference aViewshedReference, ALcdViewshedObserver aViewshedObserver) Creates a newTLcdExtrudedPolygonViewshedFactory, given anALcdViewshedObserver. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Checks if thisTLcdExtrudedPolygonViewshedFactorycan create a viewshed for the givenaObject.createViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Creates a viewshed for a given extruded shape.Returns the viewshed observer for thisTLcdExtrudedPolygonViewshedFactory.Returns the viewshed reference of the generated viewsheds.
-
Constructor Details
-
TLcdExtrudedPolygonViewshedFactory
public TLcdExtrudedPolygonViewshedFactory(ILcdGeoReference aViewshedReference, ALcdViewshedObserver aViewshedObserver) Creates a newTLcdExtrudedPolygonViewshedFactory, 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 that should be used by this factory.
-
-
Method Details
-
getViewshedReference
Returns the viewshed reference of the generated viewsheds.- Returns:
- The viewshed reference that is used to generate viewsheds by this factory.
-
getViewshedObserver
Returns the viewshed observer for thisTLcdExtrudedPolygonViewshedFactory.- Returns:
- A viewshed observer.
-
createViewshed
public ILcdViewshed createViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Creates a viewshed for a given extruded shape.
Currently this method only accepts extruded shapes that have a complex polygon or a polygon as their base shape. If the base shape is a complex polygon, it will only accept complex polygons without holes. Complex polygons that contain multiple outer shells are accepted.
- Specified by:
createViewshedin 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 ofaObjectandaModel. The destination reference is the desired reference of the viewshed. This should be a cartesian reference such asILcdGeocentricReference.- Returns:
- A viewshed representation of
aObject, for the observer given bygetViewshedObserver()and in the destination reference ofaModelModelTransformation. - See Also:
-
canCreateViewshed
public boolean canCreateViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Checks if thisTLcdExtrudedPolygonViewshedFactorycan create a viewshed for the givenaObject.- Specified by:
canCreateViewshedin 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 ofaObjectandaModel. The destination reference is the desired reference of the viewshed. This should be a cartesian reference such asILcdGeocentricReference.- Returns:
- true if
aObjectis anILcdExtrudedShapethat contains anILcdPolygonorILcdComplexPolygon.
-