46 #ifndef vpMbtDistanceLine_HH 47 #define vpMbtDistanceLine_HH 49 #include <visp3/core/vpHomogeneousMatrix.h> 50 #include <visp3/core/vpLine.h> 51 #include <visp3/core/vpPoint.h> 52 #include <visp3/mbt/vpMbHiddenFaces.h> 53 #include <visp3/mbt/vpMbtMeLine.h> 54 #include <visp3/visual_features/vpFeatureLine.h> 74 bool isTrackedLineWithVisibility;
136 void addPolygon(
const int &index);
144 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
146 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
161 inline unsigned int getIndex()
const {
return index; }
177 inline std::string
getName()
const {
return name; }
186 void initInteractionMatrixError();
196 inline bool isTracked()
const {
return isTrackedLineWithVisibility; }
219 inline void setIndex(
const unsigned int i) { index = i; }
228 void setMovingEdge(
vpMe *Me);
235 inline void setName(
const std::string &line_name) { this->name = line_name; }
242 inline void setName(
const char *line_name) { this->name = std::string(line_name); }
244 void setTracked(
const std::string &name,
const bool &track);
258 void updateTracked();
Implementation of a matrix and operations on matrices.
void getCameraParameters(vpCameraParameters &camera) const
unsigned int nbFeatureTotal
The number of moving edges.
void setVisible(bool _isvisible)
vpLine * line
The 3D line.
std::string getName() const
bool Reinit
Indicates if the line has to be reinitialized.
Implementation of an homogeneous matrix and operations on such kind of matrices.
std::list< int > Lindex_polygon
Index of the faces which contain the line.
void setName(const char *line_name)
Class to define colors available for display functionnalities.
std::vector< bool > Lindex_polygon_tracked
vpPoint * p1
The first extremity.
unsigned int getIndex() const
Manage the line of a polygon used in the model-based tracker.
vpMbtPolygon & getPolygon()
bool isvisible
Indicates if the line is visible or not.
Class that defines what is a point.
Class that defines a line in the object frame, the camera frame and the image plane. All the parameters must be set in meter.
Implementation of a polygon of the model used by the model-based tracker.
vpPoint * p2
The second extremity.
vpColVector error
The error vector.
Generic class defining intrinsic camera parameters.
Class that defines a 2D line visual feature which is composed by two parameters that are and ...
void setIndex(const unsigned int i)
void setName(const std::string &line_name)
void setCameraParameters(const vpCameraParameters &camera)
Implementation of column vector and the associated operations.
double getMeanWeight() const
vpMbHiddenFaces< vpMbtPolygon > * hiddenface
Pointer to the list of faces.
void setMeanWeight(const double w_mean)
std::vector< vpMbtMeLine * > meline
The moving edge container.
vpMatrix L
The interaction matrix.
std::vector< unsigned int > nbFeature
The number of moving edges.
bool useScanLine
Use scanline rendering.