Loading...
Searching...
No Matches

Class describing position of the camera. More...

#include <com/navigine/idl/objc/NCCamera.h>

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithPoint:zoom:rotation:tilt:
 Default constructor for class NCCamera.
 

Class Methods

(nonnull instancetype) + cameraWithPoint:zoom:rotation:tilt:
 Factory method for class NCCamera.
 

Properties

NCGlobalPointpoint
 Point the camera is looking at, WGS84 GlobalPoint.
 
float zoom
 zoom level.
 
float rotation
 Map azimuth in degrees: angle between Location North (top of the image) and the direction of interest on the view plane, in the range [0, 360).
 
float tilt
 Camera tilt in degrees. 0 means vertical downward (map seen from above). Positive values tilt the eye toward the horizon; the renderer clamps tilt to device limits when applying.
 

Detailed Description

Class describing position of the camera.

Referenced from LocationWindow.

Swift code snippet:

// Create camera with constructor
let newPoint = NCGlobalPoint(latitude: 100.0, longitude: 200.0)
let newCamera = NCCamera(point: newPoint, zoom: 50.0, rotation: 0.0, tilt: 0.0)
print("Created camera with point (\‍(newPoint.latitude), \‍(newPoint.longitude)), zoom 50.0, rotation 0°, tilt 0°")

Objective C code snippet:

// Create camera with constructor
NCGlobalPoint *newPoint = [[NCGlobalPoint alloc] initWithLatitude:100.0 longitude:200.0];
NCCamera *newCamera = [[NCCamera alloc] initWithPoint:newPoint zoom:50.0 rotation:0.0 tilt:0.0];
NSLog(@"Created camera with point (%.2f, %.2f), zoom 50.0, rotation 0°, tilt 0°", newPoint.latitude, newPoint.longitude);

Definition at line 28 of file NCCamera.h.

Method Documentation

◆ cameraWithPoint:zoom:rotation:tilt:

+ (nonnull instancetype) cameraWithPoint: (nonnull NCGlobalPoint *) point
zoom: (float) zoom
rotation: (float) rotation
tilt: (float) tilt 

Factory method for class NCCamera.

◆ initWithPoint:zoom:rotation:tilt:

- (nonnull instancetype) initWithPoint: (nonnull NCGlobalPoint *) point
zoom: (float) zoom
rotation: (float) rotation
tilt: (float) tilt 

Default constructor for class NCCamera.

Property Documentation

◆ point

- (NCGlobalPoint*) point
readnonatomicassign

Point the camera is looking at, WGS84 GlobalPoint.

Definition at line 49 of file NCCamera.h.

◆ rotation

- (float) rotation
readnonatomicassign

Map azimuth in degrees: angle between Location North (top of the image) and the direction of interest on the view plane, in the range [0, 360).

Definition at line 60 of file NCCamera.h.

◆ tilt

- (float) tilt
readnonatomicassign

Camera tilt in degrees. 0 means vertical downward (map seen from above). Positive values tilt the eye toward the horizon; the renderer clamps tilt to device limits when applying.

Definition at line 66 of file NCCamera.h.

◆ zoom

- (float) zoom
readnonatomicassign

zoom level.

Definition at line 54 of file NCCamera.h.


The documentation for this class was generated from the following file: