Spatial coordinate system transformation graph. More...
#include <vcsl_graph.h>
Public Member Functions | |
vcsl_graph () | |
vcsl_graph (vcsl_graph const &x) | |
~vcsl_graph () | |
unsigned int | count () const |
Number of coordinate systems. | |
bool | has (const vcsl_spatial_sptr &cs) const |
Has `this' `cs' as node ?. | |
bool | valid_index (unsigned int index) const |
Is `index' valid in the list of the spatial coordinate systems ?. | |
vcsl_spatial_sptr | item (unsigned int index) const |
Spatial coordinate system number `index'. | |
void | put (const vcsl_spatial_sptr &cs) |
Add `cs' in `this'. | |
void | remove (const vcsl_spatial_sptr &cs) |
Remove `cs' from `this'. | |
void | init_vertices () const |
Set the flag `reached' to false for each spatial coordinate system. | |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
Protected Attributes | |
vcl_vector< vcsl_spatial_sptr > | vertices_ |
Vertices of the graph: all the spatial coordinate systems. |
Spatial coordinate system transformation graph.
Graph where nodes are spatial coordinate systems and arrows are transformations. Only the nodes are in the graph class. The transformations are in the spatial coordinates systems
Definition at line 27 of file vcsl_graph.h.
vcsl_graph::vcsl_graph | ( | ) | [inline] |
Definition at line 36 of file vcsl_graph.h.
vcsl_graph::vcsl_graph | ( | vcsl_graph const & | x | ) | [inline] |
Definition at line 39 of file vcsl_graph.h.
vcsl_graph::~vcsl_graph | ( | ) | [inline] |
Definition at line 42 of file vcsl_graph.h.
unsigned int vcsl_graph::count | ( | ) | const [inline] |
Number of coordinate systems.
Definition at line 49 of file vcsl_graph.h.
bool vcsl_graph::has | ( | const vcsl_spatial_sptr & | cs | ) | const |
Has `this' `cs' as node ?.
Definition at line 9 of file vcsl_graph.cxx.
void vcsl_graph::init_vertices | ( | ) | const |
Set the flag `reached' to false for each spatial coordinate system.
Used by the search path algorithm
Definition at line 64 of file vcsl_graph.cxx.
vcsl_spatial_sptr vcsl_graph::item | ( | unsigned int | index | ) | const |
Spatial coordinate system number `index'.
REQUIRE: valid_index(index)
Definition at line 26 of file vcsl_graph.cxx.
void vcsl_graph::put | ( | const vcsl_spatial_sptr & | cs | ) |
void vcsl_graph::remove | ( | const vcsl_spatial_sptr & | cs | ) |
bool vcsl_graph::valid_index | ( | unsigned int | index | ) | const [inline] |
Is `index' valid in the list of the spatial coordinate systems ?.
Definition at line 59 of file vcsl_graph.h.
vcl_vector<vcsl_spatial_sptr> vcsl_graph::vertices_ [protected] |
Vertices of the graph: all the spatial coordinate systems.
Definition at line 88 of file vcsl_graph.h.