ViewProperties
#include <bb/cascades/maps/ViewProperties>
To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesmaps
The properties of the current view.
BlackBerry 10.0.0
Public Functions Index
| ViewProperties () | |
| ~ViewProperties () | |
| ViewProperties (const ViewProperties &src) | |
| ViewProperties & | operator= (const ViewProperties &src) |
| double | altitude () const |
| bool | setAltitude (double alt) |
| bb::platform::geo::AltitudeMode::Type | altitudeMode () const |
| bool | setAltitudeMode (bb::platform::geo::AltitudeMode::Type mode) |
| double | heading () const |
| bool | setHeading (double heading) |
| double | latitude () const |
| bool | setLatitude (double newLat) |
| double | longitude () const |
| bool | setLongitude (double newLon) |
| bb::platform::geo::Point | center () const |
| int | tilt () const |
| bool | setTilt (int newTilt) |
| QSize | windowSize () const |
| void | setWindow (const QRect &newDimensions) |
| QPoint | windowMidpoint () const |
| bb::platform::geo::BoundingBox | boundingBox () const |
| void | setBoundingBox (const bb::platform::geo::BoundingBox &box) |
Public Functions
Basic constructor.
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
Copy constructor.
| Parameters | |
|---|---|
| src |
The object from which to copy information. |
BlackBerry 10.0.0
ViewProperties &
Assignment operator.
| Parameters | |
|---|---|
| src |
The object from which to copy information. |
BlackBerry 10.0.0
double
Indicates from what height, in meters, that the map is viewed at.
bool
Sets the height the map is viewed at, in meters.
| Parameters | |
|---|---|
| alt |
The new altitude. |
true if a change occurred, false otherwise
BlackBerry 10.0.0
bb::platform::geo::AltitudeMode::Type
Captures how the altitude attribute should be interpreted.
The altitude's mode.
BlackBerry 10.0.0
bool
Sets the altitude mode.
AltitudeMode
| Parameters | |
|---|---|
| mode |
The new altitude mode. |
true if the attribute changed.
BlackBerry 10.0.0
double
Gets the direction of the view in degrees.
The view's heading, or direction.
BlackBerry 10.0.0
bool
Sets the orientation of the view.
Heading is the angle of the view based on a compass reading. Units are degrees. Thus, a value of 90 indicates that the view is facing east.
| Parameters | |
|---|---|
| heading |
The new heading. Before this value is applied, it is normalized to be within the range of 0 to 360. |
true if a change occurred, false otherwise
BlackBerry 10.0.0
double
Gets the latitude of the view.
The latitude of the center of the view.
BlackBerry 10.0.0
bool
Sets the latitude of the view.
| Parameters | |
|---|---|
| newLat |
The new latitude coordinate. The value is normalized (between -90 and +90) before being applied. |
true if the attribute was changed.
BlackBerry 10.0.0
double
Gets the longitude of the view.
The longitude of the center of the view.
BlackBerry 10.0.0
bool
Sets the longitude of the view.
| Parameters | |
|---|---|
| newLon |
The new longitude coordinate. The value is normalized (between -180 and +180) before being applied. |
true if the attribute was changed.
BlackBerry 10.0.0
bb::platform::geo::Point
Gets the center of the viewport's coordinates in the form of a Point.
The center coordinate.
BlackBerry 10.0.0
int
Gets the current view's tilt in degrees, where a value of 0 is pointing straight down.
The view's tilt value.
BlackBerry 10.0.0
bool
Sets the view's tilt in degrees.
| Parameters | |
|---|---|
| newTilt |
The view's new tilt value. |
true if the attribute was changed.
BlackBerry 10.0.0
void
Sets the properties of the window.
| Parameters | |
|---|---|
| newDimensions |
The new dimensions of the window. |
BlackBerry 10.0.0
QPoint
Gets the coordinates of the middle of the window.
The midpoint of the view in screen coordinates.
BlackBerry 10.0.0
bb::platform::geo::BoundingBox
Retrieves the bounding box that this view encapsulates.
The bounding box of the view.
BlackBerry 10.0.0
void
Sets the bounding box for this view.
| Parameters | |
|---|---|
| box |
The new bounding box for this view. |
BlackBerry 10.0.0