20 #include <dtkCoreSupport/dtkGlobal.h>
26 class axlPlaneParametricPrivate {
39 d(new axlPlaneParametricPrivate) {
52 d(new axlPlaneParametricPrivate) {
65 d(new axlPlaneParametricPrivate) {
78 d(new axlPlaneParametricPrivate) {
81 this->setParent(other.parent());
83 d->plane =
new axlPlane(other.d->plane);
103 QString result =
"axlPlaneParametric";
104 result.append(
"\nPlane : " + d->plane->description()
105 +
"\nu : " + d->i->description()
106 +
"\nv : " + d->j->description());
111 return "axlPlaneParametric";
132 *(d->plane) = *(other.d->plane);
133 *(d->i) = *(other.d->i);
134 *(d->j) = *(other.d->j);
140 d->i->coordinates()[0] = i[0];
141 d->i->coordinates()[1] = i[1];
142 d->i->coordinates()[2] = i[2];
146 d->j->coordinates()[0] = j[0];
147 d->j->coordinates()[1] = j[1];
148 d->j->coordinates()[2] = j[2];
165 return *(d->plane->point()) + *(d->i)*u + *(d->j)*v;
169 axlPoint p = *(d->plane->point()) + *(d->i)*u + *(d->j)*v;
174 axlPoint p = *(d->plane->point()) + *(d->i)*u + *(d->j)*v;
181 *(
normal) = *(d->plane->normal());
197 *(d->plane) = *plane;
Class axlPoint defines 3D points.
axlPlane * getPlane(void) const
void setPlane(const axlPlane &plane)
virtual void normal(axlPoint *normal, double, double)
Class axlPlane defines 3D planes.
virtual QString identifier(void) const
axlPlaneParametric & operator=(const axlPlaneParametric &other)
axlPoint * getJ(void) const
virtual void parameterOf(const axlPoint &point, double &u, double &v)
static double dotProduct(const axlPoint &lhs, const axlPoint &rhs)
virtual QString description(void) const
virtual ~axlPlaneParametric(void)
axlPlaneParametric(axlAbstractSurfaceParametric *parent=0)
void onJChanged(axlPoint *j)
axlPoint * getI(void) const
static axlPoint crossProduct(const axlPoint &lhs, const axlPoint &rhs)
Returns the cross product between lhs (coords) and rhs (coords).
void setCoordinates(double x, double y, double z)
Change coordinates of this point.
void onPlaneChanged(axlPlane *plane)
void onIChanged(axlPoint *i)
virtual axlPoint eval(double u, double v)