com.supermap.realspace
Class LookAt
- java.lang.Object
- 
- com.supermap.realspace.LookAt
 
- 
 
 public class LookAt extends java.lang.ObjectThe camera class LookAtThis class is for determining the position of scene according to the position of the observation, the direction angle, the angle of pitch and the distance from the camera to the observation. 
- 
- 
Constructor SummaryConstructors Constructor and Description LookAt(double longitude, double latitude, double range)Constructs a new LookAt object based on the longitude and latitude of the specified viewpoint and the distance from the specified camera.LookAt(double longitude, double latitude, double range, AltitudeMode mode)Constructs a new LookAt object based on the longitude and latitude of the specified viewpoint and the distance from the specified camera.LookAt(double longitude, double latitude, double altitude, AltitudeMode mode, double tilt, double heading, double range)Constructs a new LookAt object based on the longitude, latitude, angle of pitch, azimuth angle, distance and altitude mode of the specified viewpoint.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(LookAt lookAt)Determines whether the two camera are the samedoublegetAltitude()Gets the altitude of the viewpointAltitudeModegetAltitudeMode()Gets the altitude mode of the viewpointdoublegetHeading()Gets the azimuth of the viewpoint that is the angle between the north and the point in the clockwise direction which ranges from 0 to 360 degreedoublegetLatitude()Gets the latitude of the viewpoint.doublegetLongitude()Gets the longitude of the viewpoint relative to the prime meridian in degree.doublegetRange()Gets the distance between the camera and the viewpoint.doublegetTilt()Gets the angle between LookAt position and the surface normal which ranges from 0 to 90 degree.booleanisValid()Determines whether it is visiblevoidsetAltitude(double atitude)Sets the altitude of the viewpointvoidsetAltitudeMode(AltitudeMode mode)Sets the altitude mode of the viewpoint.voidsetHeading(double heading)Sets the azimuth of the viewpoint that is the angle between the north and the point in the clockwise direction which ranges from 0 to 360 degreevoidsetLatitude(double latitude)Sets the latitude of the viewpoint.voidsetLongtitude(double longtitude)Sets the latitude of the viewpoint relative to the prime meridian in degree.voidsetRange(double range)Sets the distance between the camera and the viewpoint.voidsetTilt(double tilt)Sets the angle between LookAt position and the surface normal which ranges from 0 to 90 degree.java.lang.StringtoString()Returns a string for describing the LookAt object
 
- 
- 
- 
Constructor Detail- 
LookAtpublic LookAt(double longitude, double latitude, double range)Constructs a new LookAt object based on the longitude and latitude of the specified viewpoint and the distance from the specified camera.- Parameters:
- longitude- The specified longitude.
- latitude- The specified latitude
- range- The specified distance
 
 - 
LookAtpublic LookAt(double longitude, double latitude, double range, AltitudeMode mode)Constructs a new LookAt object based on the longitude and latitude of the specified viewpoint and the distance from the specified camera.- Parameters:
- longitude- The specified longitude.
- latitude- The specified latitude
- range- The specified distance
- mode- The specified altitude mode
 
 - 
LookAtpublic LookAt(double longitude, double latitude, double altitude, AltitudeMode mode, double tilt, double heading, double range)Constructs a new LookAt object based on the longitude, latitude, angle of pitch, azimuth angle, distance and altitude mode of the specified viewpoint.- Parameters:
- longitude- The specified longitude.
- latitude- The specified latitude
- altitude- The specified altitude
- mode- The specified altitude mode
- tilt- The specified angle of pitch
- heading- The specified azimuth
- range- The specified distance
 
 
- 
 - 
Method Detail- 
getLatitudepublic double getLatitude() Gets the latitude of the viewpoint. Identifies the degree north or south of the equator and the value ranges from -90 degree to 90 degree.- Returns:
- Gets the latitude of the viewpoint.
 
 - 
setLatitudepublic void setLatitude(double latitude) Sets the latitude of the viewpoint. Identifies the degree north or south of the equator and the value ranges from -90 degree to 90 degree.- Parameters:
- latitude- The specified latitude
 
 - 
getLongitudepublic double getLongitude() Gets the longitude of the viewpoint relative to the prime meridian in degree. The value west of the prime meridian ranges from -180 to 0 degree, and the value east of the prime meridian ranges from 0 degree to 180 degree.- Returns:
- Gets the longitude of the viewpoint relative to the prime meridian in degree.
 
 - 
setLongtitudepublic void setLongtitude(double longtitude) Sets the latitude of the viewpoint relative to the prime meridian in degree. The value west of the prime meridian ranges from -180 to 0 degree, and the value east of the prime meridian ranges from 0 degree to 180 degree.- Parameters:
- longtitude- The specified longitude
 
 - 
getAltitudepublic double getAltitude() Gets the altitude of the viewpoint- Returns:
- Gets the altitude of the viewpoint
 
 - 
setAltitudepublic void setAltitude(double atitude) Sets the altitude of the viewpoint- Parameters:
- atitude- the specified altitude
 
 - 
getTiltpublic double getTilt() Gets the angle between LookAt position and the surface normal which ranges from 0 to 90 degree. O degree means checking the viewpoint vertically, while 90 degree means viewing the observation point horizontally.- Returns:
- Gets the angle between LookAt position and the surface normal which ranges from 0 to 90 degree.
 
 - 
setTiltpublic void setTilt(double tilt) Sets the angle between LookAt position and the surface normal which ranges from 0 to 90 degree. O degree means checking the viewpoint vertically, while 90 degree means viewing the observation point horizontally.- Parameters:
- tilt- The specified angle
 
 - 
getHeadingpublic double getHeading() Gets the azimuth of the viewpoint that is the angle between the north and the point in the clockwise direction which ranges from 0 to 360 degree- Returns:
- Gets the azimuth of the viewpoint that is the angle between the north and the point in the clockwise direction which ranges from 0 to 360 degree
 
 - 
setHeadingpublic void setHeading(double heading) Sets the azimuth of the viewpoint that is the angle between the north and the point in the clockwise direction which ranges from 0 to 360 degree- Parameters:
- heading- The specified azimuth
 
 - 
getRangepublic double getRange() Gets the distance between the camera and the viewpoint. Unit: meter.- Returns:
- Gets the distance between the camera and the viewpoint. Unit: meter.
 
 - 
setRangepublic void setRange(double range) Sets the distance between the camera and the viewpoint. Unit: meter.- Parameters:
- range- The specified distance
 
 - 
getAltitudeModepublic AltitudeMode getAltitudeMode() Gets the altitude mode of the viewpoint- Returns:
- Gets the altitude mode of the viewpoint
 
 - 
setAltitudeModepublic void setAltitudeMode(AltitudeMode mode) Sets the altitude mode of the viewpoint.- Parameters:
- mode- The specified altitude mode
 
 - 
isValidpublic boolean isValid() Determines whether it is visible- Returns:
- Determines whether it is visible
 
 - 
equalspublic boolean equals(LookAt lookAt) Determines whether the two camera are the same- Parameters:
- lookAt- The specified target camera LookAt.
- Returns:
- Determines whether the two camera are the same
 
 - 
toStringpublic java.lang.String toString() Returns a string for describing the LookAt object- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-