45 #include <visp3/core/vpMoment.h> 46 #include <visp3/core/vpMomentDatabase.h> 47 #include <visp3/core/vpMomentObject.h> 100 if (strlen(
name()) >= 255) {
104 std::strcpy(_name,
name());
105 this->moments = &data_base;
107 data_base.add(*
this, _name);
124 for (std::vector<double>::const_iterator i = m.
values.begin(); i != m.
values.end(); ++i)
137 os <<
" WARNING : Falling back to base class version of " 138 "printDependencies(). To prevent that, this has to be implemented in " 139 "the derived classes!" void linkTo(vpMomentDatabase &moments)
error that can be emited by ViSP classes.
Class for generic objects.
void update(vpMomentObject &object)
virtual const char * name() const =0
This class allows to register all vpMoments so they can access each other according to their dependen...
This class defines shared methods/attributes for 2D moments.
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpMoment &m)
std::vector< double > values
virtual void printDependencies(std::ostream &os) const