43 #ifndef vpPolygon3D_HH
44 #define vpPolygon3D_HH
48 #include <visp3/core/vpPoint.h>
49 #include <visp3/core/vpPixelMeterConversion.h>
50 #include <visp3/core/vpMeterPixelConversion.h>
73 } vpPolygon3DClippingType;
92 bool getClippedPointsFovGeneric(
const vpPoint &p1,
const vpPoint &p2,
94 unsigned int &p1ClippedInfo,
unsigned int &p2ClippedInfo,
96 const unsigned int &flag);
98 bool getClippedPointsDistance(
const vpPoint &p1,
const vpPoint &p2,
100 unsigned int &p1ClippedInfo,
unsigned int &p2ClippedInfo,
101 const unsigned int &flag,
const double &distance);
108 void addPoint(
const unsigned int n,
const vpPoint &P) ;
153 vpPoint & getPoint(
const unsigned int _index);
163 void getRoiClipped(
const vpCameraParameters &cam, std::vector<std::pair<vpImagePoint,unsigned int> > &roi);
167 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
172 vp_deprecated
void getRoiClipped(std::vector<vpPoint> &points);
176 void getPolygonClipped(std::vector<std::pair<vpPoint,unsigned int> > &poly);
178 void getPolygonClipped(std::vector<vpPoint> &poly);
189 inline void setClipping(
const unsigned int &flags) { clippingFlag = flags; }
198 virtual void setNbPoint(
const unsigned int nb) ;
208 static void getClippedPolygon(
const std::vector<vpPoint> &ptIn, std::vector<vpPoint> &ptOut,
const vpHomogeneousMatrix &cMo,
210 const double &znear = 0.001,
const double &zfar = 100 );
211 static void getMinMaxRoi(
const std::vector<vpImagePoint> &roi,
int & i_min,
int &i_max,
int &j_min,
int &j_max);
Implements a 3D polygon with render functionnalities like clipping.
unsigned int nbCornersInsidePrev
Number of corners inside the image during the last call to getNbCornerInsideImage.
Implementation of an homogeneous matrix and operations on such kind of matrices.
void setFarClippingDistance(const double &dist)
double getFarClippingDistance() const
vpPoint * p
corners in the object frame
Class that defines what is a point.
double getNearClippingDistance() const
double distFarClip
Distance for near clipping.
double distNearClip
Distance for near clipping.
Generic class defining intrinsic camera parameters.
unsigned int getClipping() const
std::vector< std::pair< vpPoint, unsigned int > > polyClipped
Region of interest clipped.
void setClipping(const unsigned int &flags)
unsigned int nbpt
Number of points used to define the polygon.
Implementation of column vector and the associated operations.
void setNearClippingDistance(const double &dist)
unsigned int getNbPoint() const
unsigned int clippingFlag
Clipping flag.
unsigned int getNbCornerInsidePrevImage() const