44 #include <visp3/core/vpMomentObject.h>
45 #include <visp3/core/vpMoment.h>
46 #include <visp3/core/vpMomentDatabase.h>
100 if (strlen(
name() ) >= 255) {
102 "Not enough memory to intialize the moment name"));
105 std::strcpy(_name,
name());
106 this->moments=&data_base;
108 data_base.add(*
this,_name);
117 this->
object=&moment_object;
126 for(std::vector<double>::const_iterator i = m.
values.begin();i!=m.
values.end(); ++i)
138 os <<
" WARNING : Falling back to base class version of printDependencies(). To prevent that, this has to be implemented in the derived classes!" << std::endl;
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.
virtual void printDependencies(std::ostream &os) const
friend std::ostream & operator<<(std::ostream &s, const vpArray2D< Type > &A)
std::vector< double > values