50 #ifndef vpMbtPolygon_HH
51 #define vpMbtPolygon_HH
53 #include <visp/vpPoint.h>
54 #include <visp/vpMeterPixelConversion.h>
55 #include <visp/vpPixelMeterConversion.h>
81 } vpMbtPolygonClippingType;
108 unsigned int &p1ClippedInfo,
unsigned int &p2ClippedInfo,
110 const unsigned int &flag);
114 unsigned int &p1ClippedInfo,
unsigned int &p2ClippedInfo,
122 void addPoint(
const unsigned int n,
const vpPoint &P) ;
174 vpPoint & getPoint(
const unsigned int _index);
184 void getRoiClipped(
const vpCameraParameters &cam, std::vector<std::pair<vpImagePoint,unsigned int> > &roi);
189 virtual bool isVisible(
const vpHomogeneousMatrix &cMo,
const double alpha,
const bool &modulo =
false) ;
201 inline void setClipping(
const unsigned int &flags) { clippingFlag = flags; }
215 virtual inline void setIndex(
const int i ) { index = i ; }
216 virtual void setNbPoint(
const unsigned int nb) ;
226 static void getMinMaxRoi(
const std::vector<vpImagePoint> &roi,
int & i_min,
int &i_max,
int &j_min,
int &j_max);
229 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
void setFarClippingDistance(const double &dist)
void setClipping(const unsigned int &flags)
unsigned int getClipping() const
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
unsigned int clippingFlag
Clipping flag.
double getNearClippingDistance() const
int index
Index of the polygon. Cannot be unsigned int because default value is -1.
unsigned int nbpt
Number of points used to define the polygon.
void setNearClippingDistance(const double &dist)
unsigned int nbCornersInsidePrev
Number of corners inside the image during the last call to getNbCornerInsideImage.
Class that defines what is a point.
std::vector< std::pair< vpPoint, unsigned int > > roiPointsClip
Region of interest clipped.
double distFarClip
Distance for near clipping.
Implementation of a polygon of the model used by the model-based tracker.
unsigned int getNbCornerInsidePrevImage() const
Generic class defining intrinsic camera parameters.
bool isappearing
flag to specify whether the face is appearing or not
Class that provides a data structure for the column vectors as well as a set of operations on these v...
double getFarClippingDistance() const
unsigned int getNbPoint() const
bool isvisible
flag to specify whether the face is visible or not
double distNearClip
Distance for near clipping.
virtual void setIndex(const int i)
vpPoint * p
corners in the object frame