|
LuciadCPillar 2026.1.02
|
Factory object that can create new PerspectiveCamera instances. More...
#include <luciad/cameras/PerspectiveCamera.h>
Public Member Functions | |
| Builder (Builder &&other) noexcept | |
| Builder (const Builder &other) | |
| Copy constructor. | |
| ~Builder () | |
| std::shared_ptr< PerspectiveCamera > | build () const |
| Returns a new perspective camera. | |
| Builder & | eye (Coordinate eye) |
| Sets the eye the position of the new camera. | |
| Builder & | fovY (Angle fovY) |
| Sets the vertical field of view. | |
| Builder & | look (const Look &look) |
| Sets the position and orientation of the new camera. | |
| Builder & | lookAt (const LookAt &lookAt) |
| Sets the description of what the camera is looking at and the orientation of the camera. | |
| Builder & | lookFrom (const LookFrom &lookFrom) |
| Sets the description of the position and orientation of the new camera. | |
| Builder & | nearFar (double nearPlane, double farPlane) |
| Sets the near and far clipping distances of the new camera. | |
| Builder & | operator= (Builder other) noexcept |
| Builder & | orientation (Coordinate forward, Coordinate up) |
| Sets the forward the viewing direction of the new camera and the camera's up direction. | |
Factory object that can create new PerspectiveCamera instances.
| luciad::PerspectiveCamera::Builder::Builder | ( | const Builder & | other | ) |
Copy constructor.
| other | the builder to copy. |
|
noexcept |
| luciad::PerspectiveCamera::Builder::~Builder | ( | ) |
| std::shared_ptr< PerspectiveCamera > luciad::PerspectiveCamera::Builder::build | ( | ) | const |
Returns a new perspective camera.
| Builder & luciad::PerspectiveCamera::Builder::eye | ( | Coordinate | eye | ) |
Sets the eye the position of the new camera.
| eye | the position of the new camera. |
Sets the vertical field of view.
| fovY | the new vertical field of view. |
Sets the position and orientation of the new camera.
| look | the position and orientation of the new camera. |
Sets the description of what the camera is looking at and the orientation of the camera.
| lookAt | the description of what the camera is looking at and the orientation of the camera. |
Sets the description of the position and orientation of the new camera.
| lookFrom | the description of the position and orientation of the new camera. |
| Builder & luciad::PerspectiveCamera::Builder::nearFar | ( | double | nearPlane, |
| double | farPlane ) |
Sets the near and far clipping distances of the new camera.
These values only take effect when the map's automatic near/far adjustment is turned off (see Map::setAutoAdjustDepthRangeEnabled).
Note that choosing a range that is too wide can introduce depth artifacts. Choosing a range that is too narrow can clip parts of the visible object, or even clip it away completely.
Both distances are in the units of the map reference (meters for a geocentric reference). The near plane must be positive and smaller than the far plane.
Guidelines for choosing a range:
Example ranges for a geocentric (meters) map, with an earth radius of about 6.378e6:
| nearPlane | the distance from the eye to the near clipping plane. |
| farPlane | the distance from the eye to the far clipping plane. |
| Builder & luciad::PerspectiveCamera::Builder::orientation | ( | Coordinate | forward, |
| Coordinate | up ) |
Sets the forward the viewing direction of the new camera and the camera's up direction.
| forward | the viewing direction of the new camera |
| up | the camera's up direction |