47 #ifndef vpMbtDistanceCylinder_HH
48 #define vpMbtDistanceCylinder_HH
50 #include <visp3/core/vpCircle.h>
51 #include <visp3/core/vpCylinder.h>
52 #include <visp3/core/vpHomogeneousMatrix.h>
53 #include <visp3/core/vpLine.h>
54 #include <visp3/core/vpPoint.h>
55 #include <visp3/mbt/vpMbHiddenFaces.h>
56 #include <visp3/mbt/vpMbtMeLine.h>
57 #include <visp3/visual_features/vpFeatureLine.h>
77 bool isTrackedCylinder;
103 unsigned int nbFeature;
105 unsigned int nbFeaturel1;
107 unsigned int nbFeaturel2;
143 void buildFrom(
const vpPoint &_p1,
const vpPoint &_p2,
const double r);
148 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
150 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
165 inline unsigned int getIndex() {
return index; }
174 inline double getMeanWeight1()
const {
return wmean1; }
183 inline double getMeanWeight2()
const {
return wmean2; }
190 inline std::string getName()
const {
return name; }
192 void initInteractionMatrixError();
202 inline bool isTracked()
const {
return isTrackedCylinder; }
209 inline bool isVisible()
const {
return isvisible; }
218 inline void setCameraParameters(
const vpCameraParameters &camera) { this->cam = camera; }
225 inline void setTracked(
const bool &track) { this->isTrackedCylinder = track; }
232 inline void setIndex(
const unsigned int i) { index = i; }
239 inline void setMeanWeight1(
const double wmean) { this->wmean1 = wmean; }
246 inline void setMeanWeight2(
const double wmean) { this->wmean2 = wmean; }
248 void setMovingEdge(
vpMe *Me);
255 inline void setName(
const std::string &cyl_name) { this->name = cyl_name; }
262 inline void setName(
const char *cyl_name) { this->name = std::string(cyl_name); }
270 inline void setVisible(
bool _isvisible) { isvisible = _isvisible; }