139 virtual
void resetSynchronizationState() override;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
A standard (non-anamorphic) camera lens (system) approximated as a single lens element.
bool isAutofocusEnabled() const
CameraLensSingleElement(CameraLensSingleElementManualFocusFlag, agx::Real focalLength=1.88e-3, agx::Real fStop=2.0, agx::Real focusDistance=1.5, LensDistortionRef distortion=nullptr)
Constructs a single element camera lens (system) with manual focus control based on the given paramet...
CameraLensSingleElement(agx::Real focalLength=1.88e-3, agx::Real fStop=2.0, agx::Real minimumFocusDistance=0.1, LensDistortionRef distortion=nullptr)
Constructs a single element camera lens (system) with autofocus based on the given parameters.
agx::Real getFocalLength() const
agx::Real getFStop() const
void setFStop(agx::Real fStop)
Set the lens-aperture f-stop value.
virtual agx::Real getFieldOfView(const agx::Vec2 &sensorExtents, const agx::Vec2 &point) const override
Calculate the (full) field of view angle in the specified point, given the extents of the capturing s...
void setLensDistortion(LensDistortionRef distortion)
Set the distortion model for the lens.
void setAutofocus(agx::Real minimumFocusDistance)
Set the minimum focus distance for lens autofocus.
OptionalFocusDistance getFocusDistance() const
void setFocalLength(agx::Real focalLength)
Set the lens focal length.
void setFocusDistance(agx::Real focusDistance)
Set the focus distance for manual focus control.
OptionalFocusMinimumDistance getMinimumFocusDistance() const
LensDistortion * getDistortion() const
Base type for a camera lens systems attached to a camera.
Camera instance class defined by a frame/transform and a model.
Type for triggering effects at a later point in time.
Base type for a lens distortion model specification.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
std::optional< agx::Real > OptionalFocusMinimumDistance
std::optional< agx::Real > OptionalFocusDistance