#include <bugl_curve_3d.h>
Public Member Functions | |
int | get_num_points () const |
total number of points in the curve. | |
int | get_num_fragments () const |
how many fragments in the curve. | |
void | add_curve (vcl_vector< bugl_normal_point_3d_sptr > &pts) |
add a vector of point as a curve. | |
bugl_curve_3d (unsigned int neighbors=2) | |
~bugl_curve_3d () | |
bugl_normal_point_3d_sptr | get_point (unsigned int index) const |
get the point. | |
vcl_vector < bugl_normal_point_3d_sptr > | get_neighbors (unsigned int index) const |
get a point with neighbors. | |
bugl_normal_point_3d_sptr | get_neighbor (unsigned int self, int offset) const |
get a neighbor point. | |
int | get_global_pos (unsigned int frag_index, unsigned int loc_pos) |
get the global position of a point in a fragment. 0-based indices are used. | |
unsigned int | get_fragment_size (unsigned int i) const |
get the i-th fragment size. | |
Private Attributes | |
unsigned int | num_neighbors_ |
number of neighbors. | |
vcl_vector< vcl_vector < bugl_normal_point_3d_sptr > > | data_ |
data. | |
vcl_vector< int > | index_ |
starting position index for each fragment. |
Definition at line 33 of file bugl_curve_3d.h.
bugl_curve_3d::bugl_curve_3d | ( | unsigned int | neighbors = 2 | ) | [inline] |
Definition at line 55 of file bugl_curve_3d.h.
bugl_curve_3d::~bugl_curve_3d | ( | ) | [inline] |
Definition at line 57 of file bugl_curve_3d.h.
void bugl_curve_3d::add_curve | ( | vcl_vector< bugl_normal_point_3d_sptr > & | pts | ) |
add a vector of point as a curve.
Definition at line 23 of file bugl_curve_3d.cxx.
unsigned int bugl_curve_3d::get_fragment_size | ( | unsigned int | i | ) | const |
get the i-th fragment size.
Definition at line 53 of file bugl_curve_3d.cxx.
int bugl_curve_3d::get_global_pos | ( | unsigned int | frag_index, |
unsigned int | loc_pos | ||
) | [inline] |
get the global position of a point in a fragment. 0-based indices are used.
Returns -1 if the arguments are invalid.
Definition at line 70 of file bugl_curve_3d.h.
bugl_normal_point_3d_sptr bugl_curve_3d::get_neighbor | ( | unsigned int | self, |
int | offset | ||
) | const |
get a neighbor point.
Definition at line 17 of file bugl_curve_3d.cxx.
vcl_vector< bugl_normal_point_3d_sptr > bugl_curve_3d::get_neighbors | ( | unsigned int | index | ) | const |
get a point with neighbors.
Definition at line 11 of file bugl_curve_3d.cxx.
int bugl_curve_3d::get_num_fragments | ( | ) | const [inline] |
how many fragments in the curve.
Definition at line 50 of file bugl_curve_3d.h.
int bugl_curve_3d::get_num_points | ( | ) | const [inline] |
total number of points in the curve.
Definition at line 47 of file bugl_curve_3d.h.
bugl_normal_point_3d_sptr bugl_curve_3d::get_point | ( | unsigned int | index | ) | const |
get the point.
Definition at line 5 of file bugl_curve_3d.cxx.
vcl_vector<vcl_vector<bugl_normal_point_3d_sptr > > bugl_curve_3d::data_ [private] |
data.
Definition at line 39 of file bugl_curve_3d.h.
vcl_vector<int> bugl_curve_3d::index_ [private] |
starting position index for each fragment.
Definition at line 42 of file bugl_curve_3d.h.
unsigned int bugl_curve_3d::num_neighbors_ [private] |
number of neighbors.
Definition at line 36 of file bugl_curve_3d.h.