LuciadCPillar C# 2024.1.05
Luciad.Cameras.Camera.Look2D Struct Reference

Structure describing the position of the camera for an orthographic top-down view. More...

Public Member Functions

 Look2D (Luciad.Cartesian.Coordinate mapOrigin, Luciad.Cartesian.Coordinate viewOrigin, double scaleX, double scaleY, Luciad.Cartesian.Azimuth rotation)
 Constructs the Look2D. More...
 

Properties

Luciad.Cartesian.Coordinate MapOrigin [get]
 The origin, defined in the map reference. More...
 
Luciad.Cartesian.Azimuth Rotation [get]
 The rotation of the camera. More...
 
double ScaleX [get]
 The scale on the horizontal axis in device independent pixels per map unit. More...
 
double ScaleY [get]
 The scale on the vertical axis in device independent pixels per map unit. More...
 
Luciad.Cartesian.Coordinate ViewOrigin [get]
 The view origin, defined in view coordinates (device independent pixels, (0, 0) at the bottom left of the screen). More...
 

Detailed Description

Structure describing the position of the camera for an orthographic top-down view.

This following picture shows:

  • the relation between the map and view origins
  • how scaleX and scaleY map the map units (meters) onto pixels
Camera Look2D

Constructor & Destructor Documentation

◆ Look2D()

Luciad.Cameras.Camera.Look2D.Look2D ( Luciad.Cartesian.Coordinate  mapOrigin,
Luciad.Cartesian.Coordinate  viewOrigin,
double  scaleX,
double  scaleY,
Luciad.Cartesian.Azimuth  rotation 
)
inline

Constructs the Look2D.

Parameters
mapOriginThe origin, defined in the map reference.
viewOriginThe view origin, defined in view coordinates (device independent pixels, (0, 0) at the bottom left of the screen).
scaleXThe scale on the horizontal axis in device independent pixels per map unit.
scaleYThe scale on the vertical axis in device independent pixels per map unit.
rotationThe rotation of the camera.

Property Documentation

◆ MapOrigin

Luciad.Cartesian.Coordinate Luciad.Cameras.Camera.Look2D.MapOrigin
get

The origin, defined in the map reference.

[get]

The origin, defined in the map reference. The origin is mapped to viewOrigin.

◆ Rotation

Luciad.Cartesian.Azimuth Luciad.Cameras.Camera.Look2D.Rotation
get

The rotation of the camera.

[get]

The rotation of the camera. See Azimuth to see how the rotation is defined.

◆ ScaleX

double Luciad.Cameras.Camera.Look2D.ScaleX
get

The scale on the horizontal axis in device independent pixels per map unit.

[get]

The scale on the horizontal axis in device independent pixels per map unit.

◆ ScaleY

double Luciad.Cameras.Camera.Look2D.ScaleY
get

The scale on the vertical axis in device independent pixels per map unit.

[get]

The scale on the vertical axis in device independent pixels per map unit.

◆ ViewOrigin

Luciad.Cartesian.Coordinate Luciad.Cameras.Camera.Look2D.ViewOrigin
get

The view origin, defined in view coordinates (device independent pixels, (0, 0) at the bottom left of the screen).

[get]

The view origin, defined in view coordinates (device independent pixels, (0, 0) at the bottom left of the screen). The view origin is mapped to mapOrigin. It is usually the center of the host component. A typical use case for changing the viewOrigin is to zoom in on a specific point, e.g. at the current mouse position.