|
| virtual void | resize (uint32_t width, uint32_t height)=0 |
| |
| virtual void | buildRenderTechnique (const Ra::Engine::Rendering::RenderObject *, Ra::Engine::Rendering::RenderTechnique &) const |
| |
| virtual bool | hasRenderTechnique () |
| | Indicate if the nod needs to setup a rendertechnique on RenderObjects.
|
| |
| void | setShaderProgramManager (Ra::Engine::Data::ShaderProgramManager *shaderMngr) |
| | Sets the shader program manager.
|
| |
|
virtual | ~Node ()=default |
| | make Node a base abstract class
|
| |
| bool | operator== (const Node &node) |
| | Two nodes are considered equal if there model and instance names are the same.
|
| |
| void | add_metadata (const nlohmann::json &data) |
| | Add a metadata to the node to store application specific information.
|
| |
| const nlohmann::json & | metadata () |
| | Give access to extra json data stored on the node.
|
| |
| bool | is_initialized () const |
| |
| Ra::Core::VariableSet & | parameters () |
| | Return node's parameters.
|
| |
| Ra::Core::VariableSet & | input_variables () |
| | Return a variable set of input ports default value reference, if any.
|
| |
| bool | is_output () |
| | Node is output if none of the output ports is linked.
|
| |
| bool | is_input () |
| | Node is input if all input ports have default values and not linked.
|
| |
|
| Node (const Node &)=delete |
| |
|
Node & | operator= (const Node &)=delete |
| |
| virtual void | init () |
| | Initializes the node content.
|
| |
| virtual bool | compile () |
| | Compile the node to check its validity.
|
| |
| virtual bool | execute ()=0 |
| | Executes the node.
|
| |
| virtual void | destroy () |
| | Delete the node's content.
|
| |
| auto | port_by_name (const std::string &type, const std::string &name) const -> IndexAndPort< PortBaseRawPtr > |
| | Get a port by its name.
|
| |
| auto | input_by_name (const std::string &name) const -> IndexAndPort< PortBaseInRawPtr > |
| | Convenience alias to port_by_name("in", name)
|
| |
| auto | output_by_name (const std::string &name) const -> IndexAndPort< PortBaseOutRawPtr > |
| | Convenience alias to port_by_name("out", name)
|
| |
| PortBaseRawPtr | port_by_index (const std::string &type, PortIndex index) const |
| | Get a port by its index.
|
| |
| auto | input_by_index (PortIndex index) const |
| | Convenience alias to port_by_index("in", index)
|
| |
| auto | output_by_index (PortIndex index) const |
| | Convenience alias to port_by_index("out", index)
|
| |
| template<typename T > |
| auto | input_by_index (PortIndex index) const |
| | Convenience alias with typed port.
|
| |
| template<typename T > |
| auto | output_by_index (PortIndex index) const |
| | Convenience alias with typed port.
|
| |
| const PortBaseInCollection & | inputs () const |
| | Gets the in ports of the node.
|
| |
| const PortBaseOutCollection & | outputs () const |
| | Gets the out ports of the node.
|
| |
| const std::string & | model_name () const |
| | Gets the model (type/class) name of the node.
|
| |
| const std::string & | display_name () const |
| | Gets the display name of the node (e.g. for gui), no need to be unique in a graph.
|
| |
| void | set_display_name (const std::string &name) |
| | Set the display name.
|
| |
| const std::string & | instance_name () const |
| | Gets the instance name of the node.
|
| |
| void | set_instance_name (const std::string &name) |
| | Sets the instance name the node (unused?) instance name must be unique in a graph.
|
| |
| void | toJson (nlohmann::json &data) const |
| | Serialize the content of the node.
|
| |
| bool | fromJson (const nlohmann::json &data) |
| | Unserialized the content of the node.
|
| |
| | IndexedObject (Index idx=Index::Invalid()) |
| | CONSTRUCTOR.
|
| |
|
| IndexedObject (const IndexedObject &id_obj)=default |
| |
| void | setIndex (const Index &idx) |
| |
| const Index & | getIndex () const |
| |
|
| void | toJsonInternal (nlohmann::json &) const override |
| | Internal json representation of the Node.
|
| |
| void | fromJsonInternal (const nlohmann::json &) override |
| | Internal json representation of the Node.
|
| |
| | Node (const std::string &instance, const std::string &typeName) |
| | Construct the base node given its name and type.
|
| |
| template<typename PortType > |
| auto | port_by_name (const PortCollection< PortPtr< PortType > > &ports, const std::string &name) const -> IndexAndPort< PortRawPtr< PortType > > |
| | Gets the Port By Name.
|
| |
| template<typename PortType > |
| auto | port_base (const PortCollection< PortPtr< PortType > > &ports, PortIndex idx) const -> PortRawPtr< PortType > |
| | Gets the PortBase In or Out by its index.
|
| |
| template<typename T , typename PortType > |
| auto | port (const PortCollection< PortPtr< PortType > > &ports, PortIndex index) const |
| | Gets a port in a collection by its index.
|
| |
| template<typename PortType > |
| PortIndex | add_port (PortCollection< PortPtr< PortType > > &, PortPtr< PortType > port) |
| | Adds a port to port collection.
|
| |
| PortIndex | add_input (PortBaseInPtr in) |
| | Convenience alias to add_port(inputs(), in)
|
| |
| PortIndex | add_output (PortBaseOutPtr out) |
| | Convenience alias to add_port(outputs(), out)
|
| |
| template<typename T , typename... U> |
| auto | add_input (U &&... u) |
| | Adds a typed input port.
|
| |
| template<typename T , typename... U> |
| auto | add_output (U &&... u) |
| | Adds a typed output port.
|
| |
| template<typename T > |
| auto | input_port (PortIndex index) |
| | Gets a typed (input/output) port.
|
| |
| template<typename T > |
| auto | output_port (PortIndex index) |
| | Gets a typed (input/output) port.
|
| |
| void | remove_input (PortIndex index) |
| | Remove the given port from the managed (input/output) ports.
|
| |
| void | remove_output (PortIndex index) |
| | Remove the given port from the managed (input/output) ports.
|
| |
| template<typename T > |
| auto | add_parameter (const std::string &name, const T &value) |
| |
| template<typename T > |
| bool | remove_parameter (const std::string &name) |
| |
| template<typename T > |
| bool | remove_parameter (ParamHandle< T > &handle) |
| |
Base class for Rendering nodes. Rendering nodes are nodes with some interface needed to render the scene.
Definition at line 36 of file RenderingNode.hpp.