GCNGraph, basic input for the GCN. More...
#include <GCNGraph.h>
Public Member Functions | |
GCNGraph () | |
Default constructor. More... | |
GCNGraph (std::vector< std::vector< float >> positions, std::vector< std::vector< float >> features) | |
Constructor with position and feature vectors. More... | |
GCNGraph (std::vector< GCNGraphNode > nodes) | |
Construct graph from a vector of GCNGraphNodes. More... | |
~GCNGraph () | |
Destructor. More... | |
void | AddNode (std::vector< float > position, std::vector< float > features) |
Add a new node. More... | |
void | AddNode (std::vector< float > position, std::vector< float > features, std::vector< float > groundTruth) |
void | AddNode (GCNGraphNode node) |
const unsigned int | GetNumberOfNodes () const |
Get the number of nodes. More... | |
const GCNGraphNode & | GetNode (const unsigned int index) const |
Access nodes. More... | |
GCNGraphNode & | GetNodeEditable (const unsigned int index) |
const std::vector< std::pair< float, float > > | GetMinMaxPositions () const |
Return minimum and maximum position coordinate values. More... | |
const std::pair< float, float > | GetCoordinateMinMax (unsigned int index) const |
const std::vector< float > | GetSpacialExtent () const |
Get the extent in each dimension. More... | |
const float | GetCoordinateSpacialExtent (unsigned int index) const |
const std::vector< float > | ConvertGraphToVector () const |
Function to linearise the graph to a vector for zlib file creation. More... | |
const unsigned int | GetNumberOfNodeCoordinates () const |
Return the number of coordinates for each node. More... | |
const unsigned int | GetNumberOfNodeFeatures () const |
Return the number of features for each node. More... | |
Private Attributes | |
std::vector< GCNGraphNode > | fNodes |
Store the nodes. More... | |
GCNGraph, basic input for the GCN.
Definition at line 18 of file GCNGraph.h.
cvn::GCNGraph::GCNGraph | ( | ) |
cvn::GCNGraph::GCNGraph | ( | std::vector< std::vector< float >> | positions, |
std::vector< std::vector< float >> | features | ||
) |
Constructor with position and feature vectors.
Definition at line 25 of file GCNGraph.cxx.
cvn::GCNGraph::GCNGraph | ( | std::vector< GCNGraphNode > | nodes | ) |
|
inline |
void cvn::GCNGraph::AddNode | ( | std::vector< float > | position, |
std::vector< float > | features | ||
) |
Add a new node.
Definition at line 37 of file GCNGraph.cxx.
void cvn::GCNGraph::AddNode | ( | std::vector< float > | position, |
std::vector< float > | features, | ||
std::vector< float > | groundTruth | ||
) |
Definition at line 43 of file GCNGraph.cxx.
void cvn::GCNGraph::AddNode | ( | cvn::GCNGraphNode | node | ) |
Definition at line 49 of file GCNGraph.cxx.
const std::vector< float > cvn::GCNGraph::ConvertGraphToVector | ( | ) | const |
Function to linearise the graph to a vector for zlib file creation.
Definition at line 138 of file GCNGraph.cxx.
const std::pair< float, float > cvn::GCNGraph::GetCoordinateMinMax | ( | unsigned int | index | ) | const |
Definition at line 105 of file GCNGraph.cxx.
const float cvn::GCNGraph::GetCoordinateSpacialExtent | ( | unsigned int | index | ) | const |
Definition at line 126 of file GCNGraph.cxx.
const std::vector< std::pair< float, float > > cvn::GCNGraph::GetMinMaxPositions | ( | ) | const |
Return minimum and maximum position coordinate values.
Definition at line 78 of file GCNGraph.cxx.
const GCNGraphNode & cvn::GCNGraph::GetNode | ( | const unsigned int | index | ) | const |
Access nodes.
Definition at line 59 of file GCNGraph.cxx.
GCNGraphNode & cvn::GCNGraph::GetNodeEditable | ( | const unsigned int | index | ) |
Definition at line 68 of file GCNGraph.cxx.
const unsigned int cvn::GCNGraph::GetNumberOfNodeCoordinates | ( | ) | const |
const unsigned int cvn::GCNGraph::GetNumberOfNodeFeatures | ( | ) | const |
const unsigned int cvn::GCNGraph::GetNumberOfNodes | ( | ) | const |
const std::vector< float > cvn::GCNGraph::GetSpacialExtent | ( | ) | const |
Get the extent in each dimension.
Definition at line 114 of file GCNGraph.cxx.
|
private |
Store the nodes.
Definition at line 64 of file GCNGraph.h.