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 Summary
Constructors Constructor and Description Sightline(Scene scene)
Constructs a new Sightline object based on the specified Scene object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
addTargetPoint(Point3D point)
Add target pointboolean
build()
Perform visibility analysis.void
clearResult()
Clean analysis result.void
dispose()
Disposes resources.int
getPointCount()
Get the number of the target points.Point3D
getTargetPoint(int index)
Return the specified target point position according to the index.Point3D
getvViewerPosition()
Gets the Viewer Positionvoid
removeAllTargetPoints()
Removes the target point of all indexes.boolean
removeTargetPoint(int index)
Removes the target point according to the index.void
setTargetPoint(Point3D point, int index)
Adds the target point in specified index position.void
setViewerPosition(Point3D point)
Sets the Viewer Position
-
-
-
Constructor Detail
-
Sightline
public Sightline(Scene scene)
Constructs a new Sightline object based on the specified Scene object.- Parameters:
scene
- Specified Scene object
-
-
Method Detail
-
getPointCount
public int getPointCount()
Get the number of the target points.- Returns:
- Number of target points.
-
getvViewerPosition
public Point3D getvViewerPosition()
Gets the Viewer Position- Returns:
- Viewer Position.
-
setViewerPosition
public void setViewerPosition(Point3D point)
Sets the Viewer Position- Parameters:
point
- Viewer Position.
-
addTargetPoint
public int addTargetPoint(Point3D point)
Add target point- Parameters:
point
- target position- Returns:
- Index number of object of target point
-
getTargetPoint
public Point3D getTargetPoint(int index)
Return the specified target point position according to the index.- Parameters:
index
- specify index number.- Returns:
- Specified target point position
-
setTargetPoint
public void setTargetPoint(Point3D point, int index)
Adds the target point in specified index position.- Parameters:
point
- Specified target point object.index
- specified index number.
-
removeTargetPoint
public 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.
-
removeAllTargetPoints
public void removeAllTargetPoints()
Removes the target point of all indexes.
-
build
public boolean build()
Perform visibility analysis.- Returns:
- Returns true if successful; otherwise false.
-
clearResult
public void clearResult()
Clean analysis result.
-
dispose
public void dispose()
Disposes resources.
-
-