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

NCPointpoint
 point the camera is looking at Point
 
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 = NCPoint(x: 100.0, y: 200.0)
let newCamera = NCCamera(point: newPoint, zoom: 50.0, rotation: 0.0, tilt: 0.0)
print("Created camera with point (\‍(newPoint.x), \‍(newPoint.y)), zoom 50.0, rotation 0°, tilt 0°")

Objective C code snippet:

// Create camera with constructor
NCPoint *newPoint = [[NCPoint alloc] initWithX:100.0 y: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.x, newPoint.y);

Definition at line 28 of file NCCamera.h.

Method Documentation

◆ cameraWithPoint:zoom:rotation:tilt:

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

Factory method for class NCCamera.

◆ initWithPoint:zoom:rotation:tilt:

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

Default constructor for class NCCamera.

Property Documentation

◆ point

- (NCPoint*) point
readnonatomicassign

point the camera is looking at Point

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: