48 #include <visp/vpMomentObject.h>
49 #include <visp/vpMoment.h>
50 #include <visp/vpMomentDatabase.h>
104 if (strlen(
name() ) >= 255) {
106 "Not enough memory to intialize the moment name"));
109 std::strcpy(_name,
name());
110 this->moments=&data_base;
112 data_base.add(*
this,_name);
121 this->
object=&moment_object;
129 VISP_EXPORT std::ostream & operator<<(std::ostream & os,
const vpMoment& m){
130 for(std::vector<double>::const_iterator i = m.
values.begin();i!=m.
values.end();i++)
142 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
std::vector< double > values