cajun::cell_t Class Reference

#include <cell.H>

List of all members.

Public Member Functions

 cell_t ()
 ~cell_t ()
void insert_point (const point_3d_t &point_, float depth_)
 insert point into cell
const point_3d_tget_point (unsigned id_) const
 retrieve single point in cell
point_3d_tget_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_tget_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_tm_points
 points in cell
std::vector< point_3d_tm_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

Constructor & Destructor Documentation

cell_t::cell_t (  ) 
cell_t::~cell_t (  ) 

Member Function Documentation

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

Returns:
is cell empty

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
double cell_t::get_heading (  )  const
std::vector< point_3d_t > cell_t::get_marked_pts (  )  const
point_3d_t & cell_t::get_point ( unsigned  id_  ) 

retrieve single point in cell

Parameters:
id_ point number
Returns:
const reference to single point in cell

References m_points.

const point_3d_t & cell_t::get_point ( unsigned  id_  )  const

retrieve single point in cell

Parameters:
id_ point number
Returns:
const reference to single point in cell

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
void cell_t::insert_point ( const point_3d_t pt_,
float  depth_ 
)

insert point into cell

Parameters:
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

is cell used

Returns:
cell status

References m_used.

size_t cell_t::num_points (  )  const
bool cajun::cell_t::operator== ( const cell_t cell_  )  const [inline]

References m_id.

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_  ) 

mark cell as used

Parameters:
used_ cell status

References m_used.

void cell_t::sort_cell (  )  [private]

sort cells in order of decreasing distance from bot

References m_points.


Friends And Related Function Documentation

friend class stripe_t [friend]

Member Data Documentation

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]

Referenced by insert_point().

bool cajun::cell_t::m_used [private]

Referenced by is_used(), and set_used().


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

Generated on Fri Apr 9 10:45:10 2010 for CBMesh by  doxygen 1.6.1