NTViewState


@interface NTViewState : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A class containing various view parameters for a view state.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Return Value

    The hash value of this object.

  • Returns the camera tilt angle.

    Declaration

    Objective-C

    - (float)getTilt;

    Return Value

    The camera tilt angle in degrees.

  • Returns the camera zoom level.

    Declaration

    Objective-C

    - (float)getZoom;

    Return Value

    The camera zoom level.

  • Returns the state of the camera changed flag.

    Declaration

    Objective-C

    - (BOOL)isCameraChanged;

    Return Value

    True if camera has changed since the last frame.

  • Returns the camera rotation angle.

    Declaration

    Objective-C

    - (float)getRotation;

    Return Value

    The camera rotation angle in degrees.

  • Returns the distance between the focus and the camera position, when the zoom level is set to 0. This parameter depends on the screen size, DPI, tile draw size and field of view settings.

    Declaration

    Objective-C

    - (float)getZoom0Distance;

    Return Value

    The distance between focus to camera position, when zoom level = 0.

  • Returns the width of the map screen.

    Declaration

    Objective-C

    - (int)getWidth;

    Return Value

    The map screen width.

  • Returns the height of the map screen.

    Declaration

    Objective-C

    - (int)getHeight;

    Return Value

    The map screen height.

  • Returns the aspect ratio of the map screen. Equal to width / height.

    Declaration

    Objective-C

    - (float)getAspectRatio;

    Return Value

    The aspect ratio of the map screen.

  • Returns the near plane distance.

    Declaration

    Objective-C

    - (float)getNear;

    Return Value

    The new plane distance.

  • Returns the far plane distance.

    Declaration

    Objective-C

    - (float)getFar;

    Return Value

    The far plane distance.

  • Returns the vertical field of view angle.

    Declaration

    Objective-C

    - (int)getFOVY;

    Return Value

    The vertical field of view angle in degrees.

  • Returns a value that is used for converting display independent pixels (dp) to pixels (px). This values depends on the screen density.

    Declaration

    Objective-C

    - (float)getDPToPX;

    Return Value

    The dp to px value.

  • Returns the dots per inch parameter of the screen.

    Declaration

    Objective-C

    - (float)getDPI;

    Return Value

    The screen DPI parameter.

  • Returns the conversion ratio between internal map units and screen pixels. This parameter is dependent on the zoom level and other screen parameters.

    Declaration

    Objective-C

    - (float)getUnitToPXCoef;

    Return Value

    The conversion ratio between internal map units and screen pixels.

  • Returns the conversion ratio between internal map units and screen density independent pixels (DP or DIP). This parameter is dependent on the zoom level, DPI and other screen parameters.

    Declaration

    Objective-C

    - (float)getUnitToDPCoef;

    Return Value

    The conversion ratio between internal map units and screen density independent pixels.

  • Returns the screen width.

    Declaration

    Objective-C

    - (int)getScreenWidth;

    Return Value

    The current screen width.

  • Returns the screen height.

    Declaration

    Objective-C

    - (int)getScreenHeight;

    Return Value

    The current screen height.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;