49 #ifndef vpMbtDistanceCylinder_HH
50 #define vpMbtDistanceCylinder_HH
52 #include <visp/vpPoint.h>
53 #include <visp/vpMbtMeLine.h>
54 #include <visp/vpLine.h>
55 #include <visp/vpHomogeneousMatrix.h>
56 #include <visp/vpFeatureLine.h>
57 #include <visp/vpCylinder.h>
58 #include <visp/vpCircle.h>
59 #include <visp/vpMbHiddenFaces.h>
126 void buildFrom(
const vpPoint &_p1,
const vpPoint &_p2,
const double r);
169 inline std::string
getName()
const {
return name;}
171 void initInteractionMatrixError();
195 inline void setIndex(
const unsigned int i) {index = i;}
211 void setMovingEdge(
vpMe *Me);
218 inline void setName(
const std::string& cyl_name) {this->name = cyl_name;}
225 inline void setName(
const char* cyl_name) {this->name = std::string(cyl_name);}
232 inline void setVisible(
bool _isvisible) {isvisible = _isvisible ;}
239 void getCylinderLineExtremity(
double &i,
double &j,
double rho,
double theta,
vpCircle *circle);
Definition of the vpMatrix class.
vpCylinder * c
The cylinder.
vpMbHiddenFaces< vpMbtPolygon > * hiddenface
Pointer to the list of faces.
void setName(const char *cyl_name)
bool isvisible
Indicates if the cylinder is visible or not.
void setMeanWeight2(const double wmean)
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
void setCameraParameters(const vpCameraParameters &camera)
Class to define colors available for display functionnalities.
Manage a cylinder used in the model-based tracker.
Contains predetermined masks for sites and holds moving edges tracking parameters.
unsigned int nbFeature
The number of moving edges.
void setIndex(const unsigned int i)
vpPoint * p1
The first extremity on the axe.
Class that defines what is a point.
vpMatrix L
The interaction matrix.
unsigned int nbFeaturel1
The number of moving edges on line 1.
int index_polygon
Index of the face which contains the cylinder.
double getMeanWeight2() const
vpCircle * cercle2
The lower circle limiting the cylinder.
Generic class defining intrinsic camera parameters.
Class that defines a 2D line visual feature which is composed by two parameters that are and ...
vpMbtMeLine * meline1
The moving edge containers (first line of the cylinder)
void setMeanWeight1(const double wmean)
void setVisible(bool _isvisible)
vpPoint * p2
The second extremity on the axe.
Class that defines what is a cylinder.
Class that provides a data structure for the column vectors as well as a set of operations on these v...
vpColVector error
The error vector.
vpCircle * cercle1
The upper circle limiting the cylinder.
bool Reinit
Indicates if the line has to be reinitialized.
double radius
The radius of the cylinder.
double getMeanWeight1() const
unsigned int nbFeaturel2
The number of moving edges on line 2.
void setName(const std::string &cyl_name)
Class that defines what is a circle.
vpMbtMeLine * meline2
The moving edge containers (second line of the cylinder)
std::string getName() const
void getCameraParameters(vpCameraParameters &camera)