#include <StelProjector.hpp>
Inherited by StelProjector2d, StelProjectorCylinder, StelProjectorEqualArea, StelProjectorFisheye, StelProjectorMercator, StelProjectorOrthographic, StelProjectorPerspective, and StelProjectorStereographic.
The StelProjector also defines the viewport size and position. All methods from this class are threadsafe. The usual usage is to create local instances of StelProjectorP using the getProjection() method from StelCore where needed. For performing drawing using a particular projection, refer to the StelPainter class.
Define viewport mask types.
Destructor.
Private constructor. Only StelCore can create instances of StelProjector.
Get a human-readable name for this projection type.
Get a human-readable short description for this projection type.
Get a HTML version of the short description for this projection type.
Get the maximum FOV apperture in degree.
Apply?
Apply the transformation in the backward projection in place.
Return the small zoom increment to use at the given FOV for nice movements.
Convert a Field Of View radius value in radians in ViewScalingFactor (used internally).
Convert a ViewScalingFactor value (used internally) in Field Of View radius in radians.
Get the current state of the flag which decides whether to arrage labels so that they are aligned with the bottom of a 2d screen, or a 3d dome.
Get the lower left corner of the viewport and the width, height.
Get the center of the viewport relative to the lower left corner of the screen.
Get the horizontal viewport offset in pixels.
Get the vertical viewport offset in pixels.
Get the viewport width in pixels.
Get the viewport height in pixels.
Return a convex polygon on the sphere which includes the viewport in the current frame.
Un-project the entire viewport depending on mapping, maskType, viewportFovDiameter, viewportCenter, and viewport dimensions.
Should be unified with getViewportConvexPolygon
Return a Halfspace containing the whole viewport.
Get size of a radian in pixels at the center of the viewport disk.
Get the current FOV diameter in degree.
Get whether front faces need to be oriented in the clockwise direction.
Check to see if a 2d position is inside the viewport.
TODO Optimize by storing viewportXywh[1] + viewportXywh[3] and viewportXywh[0] + viewportXywh[2] already computed
Return the position where the 2 2D point p1 and p2 cross the viewport edge P1 must be inside the viewport and P2 outside (check with checkInViewport() before calling this method).
Project the vector v from the current frame into the viewport.
Project the vector v from the current frame into the viewport.
Project the vector v from the viewport frame into the current frame.
Project the vectors v1 and v2 from the current frame into the viewport.
Get the current model view matrix.
Get a string description of a StelProjectorMaskType.
Get a StelProjectorMaskType from a string description.
Get the current type of the mask if any.