Fawkes API
Fawkes Development Version
|
RCSoft map node representation. More...
#include <>>
Public Member Functions | |
RCSoftMapNode () | |
Constructor for invalid node. More... | |
RCSoftMapNode (std::string name, float x, float y, std::vector< std::string > children, std::vector< std::string > properties, std::vector< std::string > aliases) | |
Constructor. More... | |
const std::string & | name () const |
Get node name. More... | |
float | x () const |
Get node X coordinate. More... | |
float | y () const |
Get node Y coordinate. More... | |
std::vector< std::string > & | properties () |
Get properties of node. More... | |
std::vector< std::string > & | aliases () |
Get aliases. More... | |
std::vector< std::string > & | children () |
Get children of node. More... | |
bool | has_property (std::string property) |
Check if node has a specific property. More... | |
bool | has_alias (std::string property) |
Check if node has a specific alias. More... | |
bool | is_valid () const |
Check if the node is valid. More... | |
RCSoft map node representation.
Definition at line 37 of file rcsoft_map_node.h.
fawkes::RCSoftMapNode::RCSoftMapNode | ( | ) |
Constructor for invalid node.
Definition at line 41 of file rcsoft_map_node.cpp.
fawkes::RCSoftMapNode::RCSoftMapNode | ( | std::string | name, |
float | x, | ||
float | y, | ||
std::vector< std::string > | children, | ||
std::vector< std::string > | properties, | ||
std::vector< std::string > | aliases | ||
) |
Constructor.
name | name of the node |
x | World X coordinate of the node |
y | World Y position of the node |
children | vector of child nodes |
properties | vector of properties |
aliases | vector of aliases |
Definition at line 60 of file rcsoft_map_node.cpp.
std::vector< std::string > & fawkes::RCSoftMapNode::aliases | ( | ) |
Get aliases.
Definition at line 128 of file rcsoft_map_node.cpp.
std::vector< std::string > & fawkes::RCSoftMapNode::children | ( | ) |
Get children of node.
Definition at line 108 of file rcsoft_map_node.cpp.
bool fawkes::RCSoftMapNode::has_alias | ( | std::string | alias | ) |
Check if node has a specific alias.
alias | alias to check for |
Definition at line 150 of file rcsoft_map_node.cpp.
bool fawkes::RCSoftMapNode::has_property | ( | std::string | property | ) |
Check if node has a specific property.
property | property to check for |
Definition at line 139 of file rcsoft_map_node.cpp.
bool fawkes::RCSoftMapNode::is_valid | ( | ) | const |
Check if the node is valid.
Definition at line 160 of file rcsoft_map_node.cpp.
const std::string & fawkes::RCSoftMapNode::name | ( | ) | const |
std::vector< std::string > & fawkes::RCSoftMapNode::properties | ( | ) |
Get properties of node.
Definition at line 118 of file rcsoft_map_node.cpp.
float fawkes::RCSoftMapNode::x | ( | ) | const |
float fawkes::RCSoftMapNode::y | ( | ) | const |