com.supermap.realspace
Class Sightline
- java.lang.Object
- 
- com.supermap.data.InternalHandle
- 
- com.supermap.data.InternalHandleDisposable
- 
- com.supermap.realspace.Sightline
 
 
 
- 
 
 public class Sightline extends InternalHandleDisposable 3D analysis classSightline analysis. According to viewer position and target point to build sight line analysis, and in a specified scenen analyzing result. The function needs to add the license of 3D analysis development module. Please purchase related license according to your needs. 
- 
- 
Constructor SummaryConstructors Constructor and Description Sightline(Scene scene)Constructs a new Sightline object based on the specified Scene object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description intaddTargetPoint(Point3D point)Add target pointbooleanbuild()Perform visibility analysis.voidclearResult()Clean analysis result.voiddispose()Disposes resources.intgetPointCount()Get the number of the target points.Point3DgetTargetPoint(int index)Return the specified target point position according to the index.Point3DgetvViewerPosition()Gets the Viewer PositionvoidremoveAllTargetPoints()Removes the target point of all indexes.booleanremoveTargetPoint(int index)Removes the target point according to the index.voidsetTargetPoint(Point3D point, int index)Adds the target point in specified index position.voidsetViewerPosition(Point3D point)Sets the Viewer Position
 
- 
- 
- 
Constructor Detail- 
Sightlinepublic Sightline(Scene scene) Constructs a new Sightline object based on the specified Scene object.- Parameters:
- scene- Specified Scene object
 
 
- 
 - 
Method Detail- 
getPointCountpublic int getPointCount() Get the number of the target points.- Returns:
- Number of target points.
 
 - 
getvViewerPositionpublic Point3D getvViewerPosition() Gets the Viewer Position- Returns:
- Viewer Position.
 
 - 
setViewerPositionpublic void setViewerPosition(Point3D point) Sets the Viewer Position- Parameters:
- point- Viewer Position.
 
 - 
addTargetPointpublic int addTargetPoint(Point3D point) Add target point- Parameters:
- point- target position
- Returns:
- Index number of object of target point
 
 - 
getTargetPointpublic Point3D getTargetPoint(int index) Return the specified target point position according to the index.- Parameters:
- index- specify index number.
- Returns:
- Specified target point position
 
 - 
setTargetPointpublic void setTargetPoint(Point3D point, int index) Adds the target point in specified index position.- Parameters:
- point- Specified target point object.
- index- specified index number.
 
 - 
removeTargetPointpublic boolean removeTargetPoint(int index) Removes the target point according to the index.- Parameters:
- index- specified index number.
- Returns:
- If removing successfully, return YES, else retun NO.
 
 - 
removeAllTargetPointspublic void removeAllTargetPoints() Removes the target point of all indexes.
 - 
buildpublic boolean build() Perform visibility analysis.- Returns:
- Returns true if successful; otherwise false.
 
 - 
clearResultpublic void clearResult() Clean analysis result.
 - 
disposepublic void dispose() Disposes resources.
 
- 
 
-