Developer documentation | Axl-2.5.1

axlTrimmedParametricSurface.cpp
Go to the documentation of this file.
2 
3 class axlTrimmedParametricSurfacePrivate
4 {
5 public:
6  axlAbstractSurface *surface;
8  bool OuterIsBoundary;
9  QList<axlCurveOnParamSurface *> inner;
10 };
11 
12 axlTrimmedParametricSurface::axlTrimmedParametricSurface(QObject *parent) : axlAbstractSurface(), d(new axlTrimmedParametricSurfacePrivate)
13 {
14 
15 }
16 
17 //axlTrimmedParametricSurface::axlTrimmedParametricSurface() : axlAbstractSurface(), d(new axlTrimmedParametricSurfacePrivate)
18 //{
19 //
20 //}
21 
22 axlTrimmedParametricSurface::axlTrimmedParametricSurface(axlCurveOnParamSurface *outer, QList<axlCurveOnParamSurface *> inner) : axlAbstractSurface(), d(new axlTrimmedParametricSurfacePrivate)
23 {
24  d->outer = outer;
25  d->inner = inner;
26 }
27 
29 {
30  delete d;
31  d = NULL;
32 }
33 
35 {
36  QString s = "axlTrimmedParametricSurface "; //update
37  return s;
38 }
39 
41 {
42  return "axlTrimmedParametricSurface";
43 }
45 {
46  d->surface = surf;
47 }
48 
50 {
51  d->outer = outer;
52 }
53 
54 void axlTrimmedParametricSurface::setOuterIsBoundary(bool outerIsBoundaryOrNot)
55 {
56  d->OuterIsBoundary = outerIsBoundaryOrNot;
57 }
58 
59 void axlTrimmedParametricSurface::setInner(QList<axlCurveOnParamSurface *> list_inner)
60 {
61  if(!d->inner.isEmpty())
62  {
63  qDeleteAll(d->inner);
64  }
65  d->inner.append(list_inner);
66 }
67 
69 {
70  d->inner.append(inner);
71 }
72 
73 void axlTrimmedParametricSurface::addListInner(QList<axlCurveOnParamSurface *> list_inner)
74 {
75  d->inner.append(list_inner);
76 }
77 
79 {
80  return *(d->outer);
81 }
82 
84 {
85  return d->outer;
86 }
87 
89 {
90  return d->outer->get_main_surface();
91 }
92 
94 {
95  return d->surface;
96 }
97 
98 QList<axlCurveOnParamSurface *>& axlTrimmedParametricSurface::getInner() const
99 {
100  return d->inner;
101 }
102 
104 {
105  return d->OuterIsBoundary;
106 }
108 {
109  return d->inner.value(id);
110 }
111 
113 {
114  d->inner = other.d->inner;
115  d->outer = other.d->outer;
116 
117  return *this;
118 }
119 
120 dtkAbstractData *createaxlTrimmedParametricSurface(void)
121 {
122  return new axlTrimmedParametricSurface();
123 }
124 
void addListInner(QList< axlCurveOnParamSurface * > list_inner)
void setOuterIsBoundary(bool outerIsBoundaryOrNot)
dtkAbstractData * createaxlTrimmedParametricSurface(void)
virtual QString description(void) const
void setOuter(axlCurveOnParamSurface *outer)
QList< axlCurveOnParamSurface * > & getInner() const
axlAbstractSurfaceParametric & getSurface() const
void setSurfaceBeTrimmed(axlAbstractSurface *surf)
void setInner(QList< axlCurveOnParamSurface * > list_inner)
void addInner(axlCurveOnParamSurface *inner)
axlCurveOnParamSurface & getOuter() const
virtual QString identifier(void) const
axlTrimmedParametricSurface & operator=(const axlTrimmedParametricSurface &other)