196 virtual
void cleanup() override;
199 virtual
void resetSynchronizationState() override;
206 void ensureOutputBufferSize();
211 size_t m_activeOutput;
#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...
Buffer used for sensor output of a wide range of output element types.
Color image, or frame-by-frame video, output specification for a camera.
agx::Real getGamma() const
ChannelType getChannelType() const
static agx::Matrix4x4 makeBGRColorMappnigMatrix()
static size_t sizeOf(ChannelType type)
static agx::Matrix4x4 makeRGBColorMappingMatrix()
static agx::Matrix4x4 makeLuminanceColorMappingMatrix()
virtual size_t getElementSize() const override
Element size is the data size of one pixel of the camera output frame.
void setChannelType(ChannelType type)
Set the type for the output channel elements.
virtual void setManualCapture() override
Set the output to use manual capture.
CameraColorOutput()
Default constructor.
ChannelType
Allowed output type of each channel element.
void setColorMappingMatrix(const agx::Matrix4x4 &matrix)
Set the matrix for remapping color channels from linear RGB to the output linear space.
virtual bool isConstantlyCapturing() const override
virtual void setConstantCapture(agx::Real framerate) override
Set the output to constantly capture at the specified framerate.
agx::Matrix4x4 getColorMappingMatrix() const
size_t getChannelCount() const
virtual void capture() override
Tell the output to capture a frame.
void setGamma(agx::Real gamma)
Set the output gamma correction value.
virtual void setResolution(const agx::Vec2i &resolution) override
Set the horizontal and vertical resolution of the camera output.
virtual const BinaryOutputBuffer & getData() override
Returns access to the sensor output data.
static agx::Matrix4x4 makeBayerRGBWColorMappingMatrix()
static agx::Matrix4x4 makeBayerRGGBColorMappingMatrix()
virtual OptionalFramerate getFramerate() const override
void setChannelCount(size_t channels)
Set the number of active output channels.
virtual bool hasUnreadData(bool markAsRead=true) override
virtual agx::Vec2i getResolution() const override
Camera instance class defined by a frame/transform and a model.
Common interface for camera outputs containing the basics that can be assumed about a frame-based cam...
Type for triggering effects at a later point in time.
#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 > OptionalFramerate