24 #ifndef __FIREVISION_SCANLINE_GRID_H_ 25 #define __FIREVISION_SCANLINE_GRID_H_ 27 #include <fvmodels/scanlines/scanlinemodel.h> 28 #include <fvutils/base/roi.h> 29 #include <fvutils/base/types.h> 42 unsigned int offset_x,
unsigned int offset_y,
43 ROI* roi = NULL,
bool horizontal_grid =
true);
60 void setDimensions(
unsigned int width,
unsigned int height,
ROI* roi = NULL);
61 void setOffset(
unsigned int offset_x,
unsigned int offset_y);
63 unsigned int offset_x,
unsigned int offset_y,
64 ROI* roi = NULL,
bool horizontal_grid =
true);
69 unsigned int offset_x;
70 unsigned int offset_y;
80 void calc_next_coord();
virtual void set_pan_tilt(float pan, float tilt)
Set camera's pan/tilt values.
virtual ~ScanlineGrid()
Destructor.
fawkes::upoint_t * operator++()
Postfix ++ operator.
Scanline model interface.
virtual void set_roi(ROI *roi=NULL)
Set the region-of-interest.
virtual void set_robot_pose(float x, float y, float ori)
Set the robot's pose.
const char * get_name()
Get name of scanline model.
unsigned int get_margin()
Get margin around points.
void setOffset(unsigned int offset_x, unsigned int offset_y)
Set offset.
Point with cartesian coordinates as unsigned integers.
bool finished()
Check if all desired points have been processed.
fawkes::upoint_t operator*()
Get the current coordinate.
ScanlineGrid(unsigned int width, unsigned int height, unsigned int offset_x, unsigned int offset_y, ROI *roi=NULL, bool horizontal_grid=true)
Constructor.
void setDimensions(unsigned int width, unsigned int height, ROI *roi=NULL)
Set dimensions.
fawkes::upoint_t * operator->()
Get pointer to current point.
void setGridParams(unsigned int width, unsigned int height, unsigned int offset_x, unsigned int offset_y, ROI *roi=NULL, bool horizontal_grid=true)
Set all grid parameters.