|
| virtual PlotCamera * | clone () const override |
| virtual void | configureProperties (CameraProperty &cp, bool attach) override |
| virtual void | deserialize (Deserializer &d) override |
| virtual std::string_view | getClassIdentifier () const override |
| virtual dvec4 | getClipPosFromNormalizedDeviceCoords (const dvec3 &ndcCoords) const override |
| | Convert from normalized device coordinates (xyz in [-1 1]) to clip coordinates, where z value of -1 correspond to the near plane and 1 to the far plane. Coordinates outside of the [-1 1]^3 range will be clipped.
|
|
dvec2 | getSize () const |
|
PlotCamera & | operator= (const PlotCamera &other) |
|
PlotCamera & | operator= (PlotCamera &&other) noexcept |
|
| PlotCamera (const PlotCamera &other) |
|
| PlotCamera (dvec3 lookFrom=cameradefaults::lookFrom, dvec3 lookTo=cameradefaults::lookTo, dvec3 lookUp=cameradefaults::lookUp, double nearPlane=cameradefaults::nearPlane, double farPlane=cameradefaults::farPlane, double aspectRatio=cameradefaults::aspectRatio, dvec2 size=dvec2{300, 300}) |
|
| PlotCamera (PlotCamera &&other) noexcept |
| virtual void | serialize (Serializer &s) const override |
|
void | setSize (dvec2 size) |
| virtual void | updateFrom (const Camera &source) override |
| virtual void | zoom (const ZoomOptions &opts) override |
|
| Camera (Camera &&other) noexcept=default |
|
| Camera (const Camera &other)=default |
| | Camera (dvec3 lookFrom, dvec3 lookTo, dvec3 lookUp, double nearPlane, double farPlane, double aspectRatio) |
| | Create a camera.
|
|
virtual double | getAspectRatio () const |
|
dvec3 | getDirection () const |
| | Get unnormalized direction of camera: lookTo - lookFrom.
|
|
double | getFarPlaneDist () const |
|
const dmat4 & | getInverseProjectionMatrix () const |
|
const dmat4 & | getInverseViewMatrix () const |
|
const dvec3 & | getLookFrom () const |
|
dvec3 | getLookRight () const |
|
const dvec3 & | getLookTo () const |
|
const dvec3 & | getLookUp () const |
|
double | getNearPlaneDist () const |
|
dvec3 | getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth (const dvec2 &normalizedScreenCoord) const |
|
const dmat4 & | getProjectionMatrix () const |
|
const dmat4 & | getViewMatrix () const |
| dvec3 | getWorldPosFromNormalizedDeviceCoords (const dvec3 &ndcCoords) const |
| | Convert from normalized device coordinates (xyz in [-1 1]) to world coordinates.
|
|
Camera & | operator= (Camera &&other) noexcept=default |
|
Camera & | operator= (const Camera &other)=default |
|
virtual void | setAspectRatio (double val) |
|
virtual void | setFarPlaneDist (double distance) |
| | Set distance to the far plane from lookFrom.
|
|
void | setLook (dvec3 lookFrom, dvec3 lookTo, dvec3 lookUp) |
|
virtual void | setLookFrom (dvec3 val) |
|
virtual void | setLookTo (dvec3 val) |
|
virtual void | setLookUp (dvec3 val) |
|
virtual void | setNearPlaneDist (double distance) |
| | Set distance to the near plane from lookFrom.
|
Orthographic camera for plotting that does not preserve aspect ratios.
The PlotCamera is a specialized orthographic camera designed for plotting and visualization tasks where maintaining the original aspect ratio of the view is not required. Unlike standard orthographic cameras, PlotCamera allows independent scaling of the view along each axis, enabling flexible and non-uniform projections suitable for data visualization.