Public Member Functions | Static Public Member Functions | Public Attributes
vtol_extract_topology_vertex_node Struct Reference

A node in the graph of vertices. More...

#include <vtol_extract_topology.h>

List of all members.

Public Member Functions

 vtol_extract_topology_vertex_node (unsigned i, unsigned j)
 Create a node for vertex at (i,j).

Static Public Member Functions

static const unsigned null_index VCL_STATIC_CONST_INIT_INT_DECL (unsigned(-2))
 Null index value.
static const unsigned done_index VCL_STATIC_CONST_INIT_INT_DECL (unsigned(-1))
 "Processed" index value.

Public Attributes

unsigned i
 Location.
unsigned j
vtol_vertex_2d_sptr vertex
 vtol vertex in pixel coordinates.
unsigned link [4]
 Neighbouring vertices in the graph.
unsigned back_dir [4]
 Direction in which we exit the neighbouring node to get back to this node.
vbl_smart_ptr
< vtol_extract_topology_edgel_chain
edgel_chain [4]
 Edgel chains leading to neighbouring vertices.

Detailed Description

A node in the graph of vertices.

The links correspond to edges between the vertices. Each vertex is located at the corner of the pixel.

Definition at line 131 of file vtol_extract_topology.h.


Constructor & Destructor Documentation

vtol_extract_topology_vertex_node::vtol_extract_topology_vertex_node ( unsigned  i,
unsigned  j 
)

Create a node for vertex at (i,j).

Definition at line 37 of file vtol_extract_topology.cxx.


Member Function Documentation

static const unsigned null_index vtol_extract_topology_vertex_node::VCL_STATIC_CONST_INIT_INT_DECL ( unsigned(-2)  ) [static]

Null index value.

A vertex with an index value >= this value does not correspond to a node in the graph.

static const unsigned done_index vtol_extract_topology_vertex_node::VCL_STATIC_CONST_INIT_INT_DECL ( unsigned(-1)  ) [static]

"Processed" index value.

This is used to indicate that the boundary edge following went through a vertex.


Member Data Documentation

Direction in which we exit the neighbouring node to get back to this node.

That is, (this->link)[n].link[ this->back_dir[n] ] == indexof(this).

Definition at line 149 of file vtol_extract_topology.h.

Edgel chains leading to neighbouring vertices.

Definition at line 152 of file vtol_extract_topology.h.

Location.

Definition at line 137 of file vtol_extract_topology.h.

Definition at line 137 of file vtol_extract_topology.h.

Neighbouring vertices in the graph.

Definition at line 143 of file vtol_extract_topology.h.

vtol vertex in pixel coordinates.

Definition at line 140 of file vtol_extract_topology.h.


The documentation for this struct was generated from the following files: