|
AGX Dynamics 2.42.3.1
|
A new (as of 2026) extended camera type, allowing for more "cinematic"-like effects. More...
#include <NeoCamera.h>
Inheritance diagram for agxOSG::NeoCamera:Public Member Functions | |
| NeoCamera () | |
| Initializes the camera with a set of default parameters. | |
| ~NeoCamera () | |
| bool | add (NeoCameraOutput *output) |
| Add the given output to the camera. | |
| bool | add (osg::Node *node) |
| Add the given OpenSceneGraph node locally to the camera view. | |
| bool | contains (NeoCameraOutput *output) |
| Checks if the camera contains the given output. | |
| bool | contains (osg::Node *node) |
| Checks if the camera local view contains the given node. | |
| agxSDK::Simulation * | getConnectedSimulation () const |
| NeoCameraLens * | getLens () const |
| agx::Real | getReferenceIlluminance () const |
| NeoCameraSensor * | getSensor () const |
| void | registerToSceneGraph (osg::Group *sceneGraph, osg::Node *sceneNode) |
| Registers this camera to the given scene graph for processing. | |
| bool | remove (NeoCameraOutput *output) |
| Remove the given output from the camera. | |
| bool | remove (osg::Node *node) |
| Remove the given OpenSceneGraph node from the camera local view. | |
| void | setConnectedSimulation (agxSDK::Simulation *simulation) |
| Set the simulation to which this camera is connected and will sample the time from. | |
| void | setReferenceIlluminance (agx::Real illuminance) |
| Set the reference illuminance value that a fully white pixel will correspond to. | |
| void | setViewMatrix (const osg::Matrixd &viewMatrix) |
| Set the view matrix of the camera. | |
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. | |
Static Public Member Functions | |
| static void | addPreviewTo (agxOSG::SceneDecorator *sceneDecorator, NeoCameraColorTextureOutput *output, const agx::Vec2 &position, const agx::Vec2 &size) |
| Add a preview of the given camera output in the given scene decorator. | |
| static void | addPreviewTo (agxOSG::SceneDecorator *sceneDecorator, NeoCameraDepthTextureOutput *output, const agx::Vec2 &position, const agx::Vec2 &size) |
| Add a preview of the given camera output in the given scene decorator. | |
| static bool | isSupported () |
| static void | removePreviewFrom (agxOSG::SceneDecorator *sceneDecorator, NeoCameraColorTextureOutput *output) |
| Removes the preview of the given output from the given scene decorator. | |
| static void | removePreviewFrom (agxOSG::SceneDecorator *sceneDecorator, NeoCameraDepthTextureOutput *output) |
| Removes the preview of the given output from the given scene decorator. | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Additional Inherited Members | |
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 |
A new (as of 2026) extended camera type, allowing for more "cinematic"-like effects.
Definition at line 58 of file NeoCamera.h.
| agxOSG::NeoCamera::NeoCamera | ( | ) |
Initializes the camera with a set of default parameters.
| agxOSG::NeoCamera::~NeoCamera | ( | ) |
| bool agxOSG::NeoCamera::add | ( | NeoCameraOutput * | output | ) |
Add the given output to the camera.
| output | - output to add to the camera |
| bool agxOSG::NeoCamera::add | ( | osg::Node * | node | ) |
Add the given OpenSceneGraph node locally to the camera view.
| node | - node to add |
|
static |
Add a preview of the given camera output in the given scene decorator.
| sceneDecorator | - scene decorator to add the preview to |
| output | - preview output to visualize in the preview |
| position | - position of the preview in unit screen coordinates |
| size | - size of the preview in unit screen coordinates |
|
static |
Add a preview of the given camera output in the given scene decorator.
| sceneDecorator | - scene decorator to add the preview to |
| output | - preview output to visualize in the preview |
| position | - position of the preview in unit screen coordinates |
| size | - size of the preview in unit screen coordinates |
| bool agxOSG::NeoCamera::contains | ( | NeoCameraOutput * | output | ) |
Checks if the camera contains the given output.
| output | - output to look for |
| bool agxOSG::NeoCamera::contains | ( | osg::Node * | node | ) |
Checks if the camera local view contains the given node.
| node | - node to look for |
| agxSDK::Simulation * agxOSG::NeoCamera::getConnectedSimulation | ( | ) | const |
| NeoCameraLens * agxOSG::NeoCamera::getLens | ( | ) | const |
| agx::Real agxOSG::NeoCamera::getReferenceIlluminance | ( | ) | const |
| NeoCameraSensor * agxOSG::NeoCamera::getSensor | ( | ) | const |
|
static |
| void agxOSG::NeoCamera::registerToSceneGraph | ( | osg::Group * | sceneGraph, |
| osg::Node * | sceneNode | ||
| ) |
Registers this camera to the given scene graph for processing.
| sceneGraph | - OpenSceneGraph scene graph group to register this camera to |
| sceneNode | - the node housing the scene that this camera should see |
| bool agxOSG::NeoCamera::remove | ( | NeoCameraOutput * | output | ) |
Remove the given output from the camera.
| output | - output to remove |
| bool agxOSG::NeoCamera::remove | ( | osg::Node * | node | ) |
Remove the given OpenSceneGraph node from the camera local view.
| node | - node to remove |
|
static |
Removes the preview of the given output from the given scene decorator.
| sceneDecorator | - scene decorator to remove the preview from |
| output | - preview output to whose preview to remove from the scene decorator |
|
static |
Removes the preview of the given output from the given scene decorator.
| sceneDecorator | - scene decorator to remove the preview from |
| output | - preview output to whose preview to remove from the scene decorator |
| void agxOSG::NeoCamera::setConnectedSimulation | ( | agxSDK::Simulation * | simulation | ) |
Set the simulation to which this camera is connected and will sample the time from.
| simulation | - simulation to connect this camera to (nullptr to detach) |
| void agxOSG::NeoCamera::setReferenceIlluminance | ( | agx::Real | illuminance | ) |
Set the reference illuminance value that a fully white pixel will correspond to.
This value allows the OpenSceneGraph rendered linear RGB to be interpreted as brightness values, stemming from the sensor illuminance, and which can be used for the exposure calculation.
| illuminance | - illuminance value of a fully white pixel |
| void agxOSG::NeoCamera::setViewMatrix | ( | const osg::Matrixd & | viewMatrix | ) |
Set the view matrix of the camera.
| viewMatrix | - view matrix |