Developer documentation | Axl-2.5.1

axlTabulatedCylinder.cpp
Go to the documentation of this file.
1 #include "axlTabulatedCylinder.h"
3 
4 
5 #include <dtkCoreSupport/dtkGlobal.h>
6 
7 class axlTabulatedCylinderPrivate
8 {
9 public:
10  axlPoint *generatrix;
11  axlAbstractCurve *directrix;
12 };
13 axlTabulatedCylinder::axlTabulatedCylinder(QObject *parent) : axlAbstractSurface(), d(new axlTabulatedCylinderPrivate)
14 {
15 
16 };
17 
19 {
20  delete d;
21  d = NULL;
22 };
23 
25 {
26  return *(d->directrix);
27 }
28 
30 {
31  return d->directrix;
32 }
33 
35 {
36  return *(d->generatrix);
37 }
38 
40 {
41  return d->generatrix;
42 }
43 
45 {
46  d->generatrix = new axlPoint(vector);
47 }
48 
50 {
51  d->generatrix = vector;
52 }
53 
55 {
56  d->directrix = curve; // * = *
57 }
58 
60 {
61  d->directrix = new axlAbstractCurve(curve);
62 }
63 
65 {
66  QString s = "axlTabulatedCylinder \n Generatrix: \n" + d->generatrix->description() + "\n Directrix: " + d->directrix->description();
67  return s;
68 }
69 
71 {
72  return "axlTabulatedCylinder";
73 }
74 
76 {
77  d->directrix = other.d->directrix;
78  d->generatrix = other.d->generatrix;
79  return (*this);
80 }
81 
82 dtkAbstractData *createaxlTabulatedCylinder(void)
83 {
84  return new axlTabulatedCylinder;
85 }
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
axlTabulatedCylinder & operator=(const axlTabulatedCylinder &other)
axlPoint & get_ref_generatrix() const
virtual QString identifier(void) const
axlTabulatedCylinder(QObject *parent=0)
axlAbstractCurve get_directrix() const
virtual QString description(void) const
void set_generatrix(const axlPoint &vector)
axlAbstractCurve * get_pt_directrix() const
dtkAbstractData * createaxlTabulatedCylinder(void)
void set_directrix(axlAbstractCurve *curve)