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!"
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
error that can be emitted by ViSP classes.
@ memoryAllocationError
Memory allocation error.
This class allows to register all vpMoments so they can access each other according to their dependen...
Class for generic objects.
This class defines shared methods/attributes for 2D moments.
std::vector< double > values
void linkTo(vpMomentDatabase &moments)
void update(vpMomentObject &object)
virtual const char * name() const =0
virtual void printDependencies(std::ostream &os) const