AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
CameraActiveIllumination.h
Go to the documentation of this file.
1/*
2Copyright 2007-2026. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16#pragma once
18
19#include <agx/Frame.h>
20
21#include <limits>
22
23namespace agxSensor
24{
25 class Camera;
26 struct CameraBackend;
27
32
37 {
38 public:
43
51 virtual void setFlashDuration(agx::Real flash = std::numeric_limits<agx::Real>::infinity()) = 0;
52
56 virtual agx::Real getFlashDuration() const = 0;
57
61 virtual const agx::AffineMatrix4x4& getTransform() const = 0;
62
67
69
70 public:
71 virtual SystemNodeProxyRef createProxy() override final;
72
73 virtual void synchronizeParameters(
74 Camera* camera, CameraActiveIllumination* illumination, const CameraBackend& backend) = 0;
75 virtual void resetSynchronizationState() = 0;
76
78
80 };
81
86 {
87 public:
93
99 void setFrame(agx::Frame* frame);
100
105
107
108 public:
110
111 virtual void result(const CallbackData& data) override;
112 virtual void synchronizeGraphics(const agxRender::RenderManager& renderManager) override;
113 virtual void cleanup() override;
114
116
118
119 private:
120 agx::FrameRef m_frame;
121 };
122}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Definition: Serializable.h:221
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
#define AGXSENSOR_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: agx/Vector.h:34
Instantiated active illumination source.
CameraActiveIllumination(ICameraActiveIllumination *implementation)
Construct a camera active illumination instance with the given implementation.
void setFrame(agx::Frame *frame)
Assign a new parent frame to attach this camera to.
Camera instance class defined by a frame/transform and a model.
Base type for active illumination sources synchronized with a camera.
virtual const agx::AffineMatrix4x4 & getTransform() const =0
virtual void setFlashDuration(agx::Real flash=std::numeric_limits< agx::Real >::infinity())=0
Set the duration of the active illumination flash.
ICameraActiveIllumination()=default
Default constructor.
virtual CameraActiveIlluminationRef createCameraActiveIlluminationProxy()=0
virtual agx::Real getFlashDuration() const =0
Interface for system node behavioral implementations intended to have multiple states/instances (Syst...
Proxy system node, representing an instance of an ISystemNodeProxy in the system graph.
The object defining a frame of reference and providing transformations operations.
Definition: agx/Frame.h:68
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:30
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
Namespace containing classes for handling debug rendering of collision geometries,...
Definition: Constraint.h:36
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real
Definition: Real.h:41