AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
RaytraceSystemNode.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. 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
19namespace agxSensor
20{
21 struct RtNode;
22 class RtSystemNodeProxy;
23
25
34 {
35 public:
39 RtNode* getNode() const;
40
49
50 template<typename T>
52
53 public:
54 virtual ~RtSystemNode() = default;
55
61 virtual void onParentConnect( RtSystemNode& parent );
62
68 virtual void onParentDisconnect( RtSystemNode& parent );
69
70 virtual bool addNotification() override;
71
72 virtual void onChildAdded( SystemNode& child ) override;
73 virtual void onChildRemoved( SystemNode& child ) override;
74 virtual void cleanup() override;
75
77
78 public:
80
81 protected:
82 virtual RtNode* createNode() = 0;
83
84 virtual void store( agxStream::OutputArchive& out ) const override;
85 virtual void restore( agxStream::InputArchive& in ) override;
86
88
89 protected:
90 RtNode* m_node{ nullptr };
91 };
92}
#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 AGXSENSOR_EXPORT
A system node focused on raytracing.
virtual void onChildRemoved(SystemNode &child) override
Called when child has been removed from this parent.
virtual void onParentConnect(RtSystemNode &parent)
Called when getOrCreateNode() returns nullptr when this node is being added as child to parent.
virtual void cleanup() override
The sensor environment is being put down, clean everything.
virtual void onChildAdded(SystemNode &child) override
Called when child has been added to this parent.
virtual ~RtSystemNode()=default
RtNode * getOrCreateNode()
Called when the node is required.
virtual void onParentDisconnect(RtSystemNode &parent)
Called when getNode() returns nullptr when this node is being removed from its parent.
RtNode * getNode() const
virtual bool addNotification() override
Called when this system node has been added to a sensor environment.
System node is a separate step/operation in an execution tree representing a sensor (or such) in a se...
Definition: SystemNode.h:44
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
RtSystemNode * findChildProxyFor(const SystemNode *root)
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
A node performs a single operation, e.g., raycast, gaussian blur, merging etc.