22 #include <dtkCoreSupport/dtkGlobal.h>
23 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
27 class axlPointSetPrivate
30 QList<axlPoint *> points;
44 d->uniqueColor =
true;
77 return d->uniqueColor;
82 d->uniqueColor = uniqueColor;
87 return d->points.size();
93 d->points.push_front(p);
100 d->points.append( p);
106 return d->points.at(n);
112 return d->points.at(n);
119 QList<axlPoint *> *listPoint =
static_cast<QList<axlPoint *> *
>(this->
points());
120 QList<axlPoint *>::iterator itPoints;
121 for(itPoints=listPoint->begin();itPoints!=listPoint->end();itPoints++)
137 return dtkAbstractDataFactory::instance()->registerDataType(
"axlPointSet",
createaxlPointSet);
142 QString result =
"axlPointSet";
143 result.append(
"\nNumber of points : "+QString::number(d->points.size()));
149 return "axlPointSet";
Class axlPoint defines 3D points.
void setPlanar(const bool isPlanar)
static bool registered(void)
QString objectType(void) const
void setUniqueColor(const bool uniqueColor)
virtual QString identifier(void) const
axlPoint * value(int n) const
void push_back(axlPoint *p)
bool isUniqueColor(void) const
void push_front(axlPoint *p)
dtkAbstractData * createaxlPointSet(void)
virtual QString description(void) const
virtual ~axlPointSet(void)
Virtual destructor, enables safe inheritance.
bool isPlanar(void) const
Class axlAbstractData defines an API for all type of axel data.
void * points(void) const
QDebug printAxlAbstractPoints(QDebug dbg)
void printAxlPointSet(void)
int numberOfPoints(void) const