cajun::stripe_t Class Reference

#include <stripe.H>

List of all members.

Public Member Functions

 stripe_t (float cell_len, double ground_z, double heading)
 ~stripe_t ()
void sort ()
size_t num_cells () const
 number of cells within stripe
size_t num_points () const
 total number of points in all cells of stripe
void print_stripe () const
 call print_cell for every cell in stripe
unsigned get_counter () const
double get_ground_z () const
void flush ()
 call cell cleanup functino for all cells in stripe
void fill_strip (const point_3d_t &pt, const point_3d_t &start_pt, unsigned counter)
 take single scan_gp scan and fill cells with points
const cell_tget_cell (unsigned id_) const
 retrieve single cell in stripe
cell_tget_cell (unsigned id_)
 retrieve single cell in stripe

Private Attributes

cell_t m_cells [MAX_CELLS]
double m_cell_len
double m_ground_z
unsigned m_last_counter
double m_heading

Constructor & Destructor Documentation

cajun::stripe_t::stripe_t ( float  cell_len,
double  ground_z,
double  heading 
) [inline]
cajun::stripe_t::~stripe_t (  )  [inline]

Member Function Documentation

void stripe_t::fill_strip ( const point_3d_t pt,
const point_3d_t start_pt,
unsigned  counter 
)

take single scan_gp scan and fill cells with points

Parameters:
scan_gp_ single scan_gp_data_t scan

References cajun::cell_t::insert_point(), m_cell_len, m_cells, m_ground_z, m_last_counter, MAX_CELLS, cajun::point_3d_t::x, cajun::point_3d_t::y, and cajun::point_3d_t::z.

void stripe_t::flush (  ) 

call cell cleanup functino for all cells in stripe

References m_cells, and MAX_CELLS.

cell_t & stripe_t::get_cell ( unsigned  id_  ) 

retrieve single cell in stripe

Parameters:
id_ cell id
Returns:
const reference to single cell in stripe

References m_cells, and MAX_CELLS.

const cell_t & stripe_t::get_cell ( unsigned  id_  )  const

retrieve single cell in stripe

Parameters:
id_ cell id
Returns:
const reference to single cell in stripe

References m_cells, and MAX_CELLS.

Referenced by cajun::wall_t::global_stripe_pos(), and cajun::mesh_extractor_t::publish_stripe().

unsigned stripe_t::get_counter (  )  const

References m_last_counter.

double stripe_t::get_ground_z (  )  const
size_t stripe_t::num_cells (  )  const

number of cells within stripe

Returns:
number of cells within stripe

References MAX_CELLS.

Referenced by cajun::mesh_extractor_t::publish_stripe().

size_t stripe_t::num_points (  )  const

total number of points in all cells of stripe

Returns:
number of points within stripe

References m_cells, and MAX_CELLS.

void stripe_t::print_stripe (  )  const

call print_cell for every cell in stripe

References m_cells, and MAX_CELLS.

void stripe_t::sort (  ) 

References m_cells, and MAX_CELLS.


Member Data Documentation

double cajun::stripe_t::m_cell_len [private]

Referenced by fill_strip(), and stripe_t().

cell_t cajun::stripe_t::m_cells[MAX_CELLS] [private]
double cajun::stripe_t::m_ground_z [private]

Referenced by fill_strip(), get_ground_z(), and stripe_t().

double cajun::stripe_t::m_heading [private]

Referenced by stripe_t().

unsigned cajun::stripe_t::m_last_counter [private]

Referenced by fill_strip(), get_counter(), and stripe_t().


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