LuciadCPillar C# 2023.1.04
Luciad.Cameras.OrthographicCamera Class Reference

A camera that uses an orthographic (or parallel) projection. More...

Inheritance diagram for Luciad.Cameras.OrthographicCamera:
Luciad.Cameras.Camera

Classes

class  Builder
 Factory object that can create new OrthographicCamera instances. More...
 

Public Member Functions

Luciad.Cameras.OrthographicCamera.Builder AsBuilder ()
 
Luciad.Cameras.Camera.Look2D AsLook2D ()
 
- Public Member Functions inherited from Luciad.Cameras.Camera
void Dispose ()
 
virtual Luciad.Cartesian.Coordinate MapToView (Luciad.Cartesian.Coordinate mapPoint)
 Transforms a point in map coordinates to view coordinates. More...
 
virtual Luciad.Cartesian.Coordinate ViewToMap (Luciad.Cartesian.Coordinate viewPoint)
 Transforms a view point to map coordinates. More...
 

Additional Inherited Members

- Properties inherited from Luciad.Cameras.Camera
Luciad.Cartesian.Coordinate Eye [get]
 
double Far [get]
 
Luciad.Cartesian.Coordinate Forward [get]
 
double Height [get]
 
double Near [get]
 
Luciad.Cartesian.Coordinate Up [get]
 
double Width [get]
 

Detailed Description

A camera that uses an orthographic (or parallel) projection.

That the Camera API is a low-level API. For simple map navigation use cases, it's recommended to use the higher-level API. The MapNavigator API works in both 2D and 3D, on all map references. If you use the low-level Camera API, keep in mind that the same camera manipulation implementation might not work for other types of cameras (OrthographicCamera vs PerspectiveCamera) or other (types of) map references (projected vs. geocentric). A camera transforms points from the map reference to the view (device independent pixel coordinates). Orthographic Camera

Cameras in LuciadCPillar are immutable. You can manipulate the map's camera by creating a modified copy using the builder. The new camera can then be set on the map. Currently, the OrthographicCamera is only used in combination with projected (grid) references (aka 2D maps). For now, you cannot use this camera if the map has a geocentric (3D) reference. For projected (grid) references, the camera should be positioned along the positive Z axis, facing the negative Z direction. This way, the camera is positioned facing the XY-plane, where the map is rendered in. To manipulate an orthographic camera on a projected (grid) or cartesian reference, we recommend using look2D. This allows you to reason about the camera in 2D space, instead of a 3D space. It also allows you to easily rotate and zoom the camera around any arbitrary view / map point. Map navigation constraints configured on MapNavigator are not enforced when this camera is updated on the map. Constraints are only respected when using MapNavigator.

2021.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::OrthographicCamera.

Member Function Documentation

◆ AsBuilder()

Luciad.Cameras.OrthographicCamera.Builder Luciad.Cameras.OrthographicCamera.AsBuilder ( )
inline

◆ AsLook2D()

Luciad.Cameras.Camera.Look2D Luciad.Cameras.OrthographicCamera.AsLook2D ( )
inline