#include <cell.H>
Public Member Functions | |
| cell_t () | |
| ~cell_t () | |
| void | insert_point (const point_3d_t &point_, float depth_) |
| insert point into cell | |
| const point_3d_t & | get_point (unsigned id_) const |
| retrieve single point in cell | |
| point_3d_t & | get_point (unsigned id_) |
| retrieve single point in cell | |
| size_t | num_points () const |
| number of points in cell | |
| size_t | get_point_pos (const point_3d_t &pt_) const |
| void | print_cell () const |
| print point info for every point in cell | |
| void | set_heading (double heading_) |
| double | get_heading () const |
| float | get_cell_size () const |
| void | set_cell_size (float cell_size_) |
| bool | empty () const |
| does cell contain any points | |
| bool | is_used () const |
| is cell used | |
| void | set_used (bool used_) |
| mark cell as used | |
| void | add_marked_pt (point_3d_t &pt_) |
| std::vector< point_3d_t > | get_marked_pts () const |
| bool | is_first_pt (unsigned id_) const |
| size_t | id () const |
| bool | operator== (const cell_t &cell_) const |
Private Member Functions | |
| void | cleanup_cell () |
| erase all points in cell | |
| void | sort_cell () |
| sort cells in order of decreasing distance from bot | |
Private Attributes | |
| std::vector< point_3d_t > | m_points |
| points in cell | |
| std::vector< point_3d_t > | m_marked_pts |
| points in cell | |
| bool | m_used |
| size_t | m_id |
| size_t | m_pt_id_counter |
| double | m_heading |
| float | m_cell_size |
Static Private Attributes | |
| static size_t | m_next_id = 0 |
Friends | |
| class | stripe_t |
| cell_t::cell_t | ( | ) |
| cell_t::~cell_t | ( | ) |
| void cell_t::add_marked_pt | ( | point_3d_t & | pt_ | ) |
References m_marked_pts.
| void cell_t::cleanup_cell | ( | ) | [private] |
erase all points in cell
References m_points.
| bool cell_t::empty | ( | ) | const |
does cell contain any points
References m_points.
Referenced by cajun::mesh_extractor_t::extract(), cajun::wall_t::global_stripe_pos(), and cajun::mesh_extractor_t::triangle_at().
| float cell_t::get_cell_size | ( | ) | const |
References m_cell_size.
Referenced by cajun::mesh_cell_queue_writer_t::write_mesh_cell().
| double cell_t::get_heading | ( | ) | const |
References m_heading.
Referenced by cajun::mesh_cell_queue_writer_t::write_mesh_cell().
| std::vector< point_3d_t > cell_t::get_marked_pts | ( | ) | const |
References m_marked_pts.
Referenced by cajun::mesh_extractor_t::triangle_at().
| point_3d_t & cell_t::get_point | ( | unsigned | id_ | ) |
retrieve single point in cell
| id_ | point number |
References m_points.
| const point_3d_t & cell_t::get_point | ( | unsigned | id_ | ) | const |
retrieve single point in cell
| id_ | point number |
References m_points.
Referenced by cajun::wall_t::global_stripe_pos(), cajun::mesh_extractor_t::match_closest_point(), cajun::mesh_extractor_t::match_first_point(), cajun::mesh_extractor_t::triangle_at(), and cajun::mesh_cell_queue_writer_t::write_mesh_cell().
| size_t cajun::cell_t::get_point_pos | ( | const point_3d_t & | pt_ | ) | const |
| size_t cell_t::id | ( | ) | const |
References m_id.
Referenced by cajun::mesh_split_file_writer_t::write_point().
| void cell_t::insert_point | ( | const point_3d_t & | pt_, | |
| float | depth_ | |||
| ) |
insert point into cell
| point_ | single 3D point |
References m_points, and m_pt_id_counter.
Referenced by cajun::stripe_t::fill_strip().
| bool cell_t::is_first_pt | ( | unsigned | id_ | ) | const |
References m_points.
| bool cell_t::is_used | ( | ) | const |
| size_t cell_t::num_points | ( | ) | const |
number of points in cell
References m_points.
Referenced by cajun::mesh_extractor_t::match_closest_point(), cajun::mesh_extractor_t::match_first_point(), and cajun::mesh_cell_queue_writer_t::write_mesh_cell().
| void cell_t::print_cell | ( | ) | const |
print point info for every point in cell
References m_points.
| void cell_t::set_cell_size | ( | float | cell_size_ | ) |
References m_cell_size.
Referenced by cajun::stripe_t::stripe_t().
| void cell_t::set_heading | ( | double | heading_ | ) |
References m_heading.
Referenced by cajun::stripe_t::stripe_t().
| void cell_t::set_used | ( | bool | used_ | ) |
| void cell_t::sort_cell | ( | ) | [private] |
sort cells in order of decreasing distance from bot
References m_points.
friend class stripe_t [friend] |
float cajun::cell_t::m_cell_size [private] |
Referenced by get_cell_size(), and set_cell_size().
double cajun::cell_t::m_heading [private] |
Referenced by get_heading(), and set_heading().
size_t cajun::cell_t::m_id [private] |
Referenced by id(), and operator==().
std::vector<point_3d_t> cajun::cell_t::m_marked_pts [private] |
points in cell
Referenced by add_marked_pt(), and get_marked_pts().
size_t cell_t::m_next_id = 0 [static, private] |
std::vector<point_3d_t> cajun::cell_t::m_points [private] |
points in cell
Referenced by cleanup_cell(), empty(), get_point(), insert_point(), is_first_pt(), num_points(), print_cell(), and sort_cell().
size_t cajun::cell_t::m_pt_id_counter [private] |
Referenced by insert_point().
bool cajun::cell_t::m_used [private] |
Referenced by is_used(), and set_used().
1.6.1