AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxOSG::NeoCameraSensor Class Reference

Sensor parameter specification for the NeoCamera. More...

#include <NeoCamera.h>

+ Inheritance diagram for agxOSG::NeoCameraSensor:

Public Member Functions

 NeoCameraSensor (NeoCamera *camera)
 Initializes a camera sensor with a set of default parameters.
 
agx::Real getCircleOfConfusion () const
 
OptionalDynamicRange getDynamicRange () const
 
OptionalExposureCompensation getExposureCompensation () const
 
agx::Real getISO () const
 
agx::Vec2i getResolution () const
 
agx::Real getShutterSpeed () const
 
agx::Vec2 getSize () const
 
bool hasAutoExposureEnabled () const
 
void setAutoExposure (agx::Real dynamicRange)
 Set the sensor to use automatic exposure control.
 
void setCircleOfConfusion (agx::Real circleOfConfusion)
 Set the acceptable circle of confusion for the sensor.
 
void setISO (agx::Real iso)
 Set the amplifier ISO value for the sensor.
 
void setManualExposureCompensation (agx::Real exposureCompensation)
 Set the exposure compensation value for manual exposure control.
 
void setResolution (const agx::Vec2i &resolution)
 Set the sensor resolution.
 
void setShutterSpeed (agx::Real shutterSpeed)
 Set the shutter speed of the sensor electronic shutter.
 
void setSize (const agx::Vec2 &size)
 Set the sensor rectangular (physical) size.
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Sensor parameter specification for the NeoCamera.

Definition at line 346 of file NeoCamera.h.

Constructor & Destructor Documentation

◆ NeoCameraSensor()

agxOSG::NeoCameraSensor::NeoCameraSensor ( NeoCamera *  camera)

Initializes a camera sensor with a set of default parameters.

Parameters
camera- the camera to which the lens is attached

Member Function Documentation

◆ getCircleOfConfusion()

agx::Real agxOSG::NeoCameraSensor::getCircleOfConfusion ( ) const
Returns
diameter of the acceptable circle of confusion

◆ getDynamicRange()

OptionalDynamicRange agxOSG::NeoCameraSensor::getDynamicRange ( ) const
Returns
the maximum exposure value (dynamic range) used by auto-exposure, if auto-exposure is enabled

◆ getExposureCompensation()

OptionalExposureCompensation agxOSG::NeoCameraSensor::getExposureCompensation ( ) const
Returns
the manual exposure compensation value, if auto-exposure is disabled

◆ getISO()

agx::Real agxOSG::NeoCameraSensor::getISO ( ) const
Returns
sensor amplifier ISO value

◆ getResolution()

agx::Vec2i agxOSG::NeoCameraSensor::getResolution ( ) const
Returns
sensor resolution in pixels

◆ getShutterSpeed()

agx::Real agxOSG::NeoCameraSensor::getShutterSpeed ( ) const
Returns
the shutter speed of the sensor electronic shutter

◆ getSize()

agx::Vec2 agxOSG::NeoCameraSensor::getSize ( ) const
Returns
the sensor rectangular (physical) size in the camera XY-plane.

◆ hasAutoExposureEnabled()

bool agxOSG::NeoCameraSensor::hasAutoExposureEnabled ( ) const
Returns
true if the sensor has automatic exposure control enabled

◆ setAutoExposure()

void agxOSG::NeoCameraSensor::setAutoExposure ( agx::Real  dynamicRange)

Set the sensor to use automatic exposure control.

Note
This will enable auto-exposure.
Parameters
dynamicRange- maximum exposure value (dynamic range)

◆ setCircleOfConfusion()

void agxOSG::NeoCameraSensor::setCircleOfConfusion ( agx::Real  circleOfConfusion)

Set the acceptable circle of confusion for the sensor.

Parameters
circleOfConfusion- circle of confusion diameter

◆ setISO()

void agxOSG::NeoCameraSensor::setISO ( agx::Real  iso)

Set the amplifier ISO value for the sensor.

Parameters
iso- amplifier ISO value

◆ setManualExposureCompensation()

void agxOSG::NeoCameraSensor::setManualExposureCompensation ( agx::Real  exposureCompensation)

Set the exposure compensation value for manual exposure control.

Note
This will disable auto-exposure.
Parameters
exposureCompensation- exposure compensation value

◆ setResolution()

void agxOSG::NeoCameraSensor::setResolution ( const agx::Vec2i &  resolution)

Set the sensor resolution.

Parameters
resolution- the pixel resolution

◆ setShutterSpeed()

void agxOSG::NeoCameraSensor::setShutterSpeed ( agx::Real  shutterSpeed)

Set the shutter speed of the sensor electronic shutter.

Parameters
shutterSpeed- shutter speed for the sensor

◆ setSize()

void agxOSG::NeoCameraSensor::setSize ( const agx::Vec2 &  size)

Set the sensor rectangular (physical) size.

Parameters
size- the rectangular size in the camera XY-plane

Member Data Documentation

◆ compensation

agx::Real agxOSG::NeoCameraSensor::compensation

Definition at line 450 of file NeoCamera.h.

◆ dynamicRange

agx::Real agxOSG::NeoCameraSensor::dynamicRange

Definition at line 451 of file NeoCamera.h.


The documentation for this class was generated from the following file: