Part: Geometry refactoring copy/clone
This commit is contained in:
@@ -238,6 +238,13 @@ void Geometry::assignTag(const Part::Geometry * geo)
|
||||
throw Base::TypeError("Geometry tag can not be assigned as geometry types do not match.");
|
||||
}
|
||||
|
||||
Geometry *Geometry::clone(void) const
|
||||
{
|
||||
Geometry* cpy = this->copy();
|
||||
cpy->tag = this->tag;
|
||||
return cpy;
|
||||
}
|
||||
|
||||
// -------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Part::GeomPoint,Part::Geometry)
|
||||
@@ -279,14 +286,6 @@ Geometry *GeomPoint::copy(void) const
|
||||
return newPoint;
|
||||
}
|
||||
|
||||
Geometry *GeomPoint::clone(void) const
|
||||
{
|
||||
GeomPoint *newPoint = new GeomPoint(myPoint);
|
||||
newPoint->Construction = this->Construction;
|
||||
newPoint->tag = this->tag;
|
||||
return newPoint;
|
||||
}
|
||||
|
||||
TopoDS_Shape GeomPoint::toShape() const
|
||||
{
|
||||
return BRepBuilderAPI_MakeVertex(myPoint->Pnt());
|
||||
@@ -629,14 +628,6 @@ Geometry *GeomBezierCurve::copy(void) const
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomBezierCurve::clone(void) const
|
||||
{
|
||||
GeomBezierCurve *newCurve = new GeomBezierCurve(myCurve);
|
||||
newCurve->Construction = this->Construction;
|
||||
newCurve->tag = this->tag;
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomBezierCurve::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomBezierCurve::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -724,14 +715,6 @@ Geometry *GeomBSplineCurve::copy(void) const
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomBSplineCurve::clone(void) const
|
||||
{
|
||||
GeomBSplineCurve *newCurve = new GeomBSplineCurve(myCurve);
|
||||
newCurve->Construction = this->Construction;
|
||||
newCurve->tag = this->tag;
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
int GeomBSplineCurve::countPoles() const
|
||||
{
|
||||
return myCurve->NbPoles();
|
||||
@@ -1521,14 +1504,6 @@ Geometry *GeomCircle::copy(void) const
|
||||
return newCirc;
|
||||
}
|
||||
|
||||
Geometry *GeomCircle::clone(void) const
|
||||
{
|
||||
GeomCircle *newCirc = new GeomCircle(myCurve);
|
||||
newCirc->Construction = this->Construction;
|
||||
newCirc->tag = this->tag;
|
||||
return newCirc;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomCircle::toNurbs(double first, double last) const
|
||||
{
|
||||
double radius = getRadius();
|
||||
@@ -1708,15 +1683,6 @@ Geometry *GeomArcOfCircle::copy(void) const
|
||||
return copy;
|
||||
}
|
||||
|
||||
Geometry *GeomArcOfCircle::clone(void) const
|
||||
{
|
||||
GeomArcOfCircle* copy = new GeomArcOfCircle();
|
||||
copy->setHandle(this->myCurve);
|
||||
copy->Construction = this->Construction;
|
||||
copy->tag = this->tag;
|
||||
return copy;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomArcOfCircle::toNurbs(double first, double last) const
|
||||
{
|
||||
Handle_Geom_TrimmedCurve curve = Handle_Geom_TrimmedCurve::DownCast(handle());
|
||||
@@ -1933,14 +1899,6 @@ Geometry *GeomEllipse::copy(void) const
|
||||
return newEllipse;
|
||||
}
|
||||
|
||||
Geometry *GeomEllipse::clone(void) const
|
||||
{
|
||||
GeomEllipse *newEllipse = new GeomEllipse(myCurve);
|
||||
newEllipse->Construction = this->Construction;
|
||||
newEllipse->tag = this->tag;
|
||||
return newEllipse;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomEllipse::toNurbs(double first, double last) const
|
||||
{
|
||||
// for an arc of ellipse use the generic method
|
||||
@@ -2197,15 +2155,6 @@ Geometry *GeomArcOfEllipse::copy(void) const
|
||||
return copy;
|
||||
}
|
||||
|
||||
Geometry *GeomArcOfEllipse::clone(void) const
|
||||
{
|
||||
GeomArcOfEllipse* copy = new GeomArcOfEllipse();
|
||||
copy->setHandle(this->myCurve);
|
||||
copy->Construction = this->Construction;
|
||||
copy->tag = this->tag;
|
||||
return copy;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomArcOfEllipse::toNurbs(double first, double last) const
|
||||
{
|
||||
Handle_Geom_TrimmedCurve curve = Handle_Geom_TrimmedCurve::DownCast(handle());
|
||||
@@ -2475,14 +2424,6 @@ Geometry *GeomHyperbola::copy(void) const
|
||||
return newHyp;
|
||||
}
|
||||
|
||||
Geometry *GeomHyperbola::clone(void) const
|
||||
{
|
||||
GeomHyperbola *newHyp = new GeomHyperbola(myCurve);
|
||||
newHyp->Construction = this->Construction;
|
||||
newHyp->tag = this->tag;
|
||||
return newHyp;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomHyperbola::toNurbs(double first, double last) const
|
||||
{
|
||||
return GeomCurve::toNurbs(first, last);
|
||||
@@ -2652,15 +2593,6 @@ Geometry *GeomArcOfHyperbola::copy(void) const
|
||||
return copy;
|
||||
}
|
||||
|
||||
Geometry *GeomArcOfHyperbola::clone(void) const
|
||||
{
|
||||
GeomArcOfHyperbola* copy = new GeomArcOfHyperbola();
|
||||
copy->setHandle(this->myCurve);
|
||||
copy->Construction = this->Construction;
|
||||
copy->tag = this->tag;
|
||||
return copy;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomArcOfHyperbola::toNurbs(double first, double last) const
|
||||
{
|
||||
Handle_Geom_TrimmedCurve curve = Handle_Geom_TrimmedCurve::DownCast(handle());
|
||||
@@ -2920,14 +2852,6 @@ Geometry *GeomParabola::copy(void) const
|
||||
return newPar;
|
||||
}
|
||||
|
||||
Geometry *GeomParabola::clone(void) const
|
||||
{
|
||||
GeomParabola *newPar = new GeomParabola(myCurve);
|
||||
newPar->Construction = this->Construction;
|
||||
newPar->tag = this->tag;
|
||||
return newPar;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomParabola::toNurbs(double first, double last) const
|
||||
{
|
||||
// the default implementation suffices because a non-rational B-spline with
|
||||
@@ -3078,15 +3002,6 @@ Geometry *GeomArcOfParabola::copy(void) const
|
||||
return copy;
|
||||
}
|
||||
|
||||
Geometry *GeomArcOfParabola::clone(void) const
|
||||
{
|
||||
GeomArcOfParabola* copy = new GeomArcOfParabola();
|
||||
copy->setHandle(this->myCurve);
|
||||
copy->Construction = this->Construction;
|
||||
copy->tag = this->tag;
|
||||
return copy;
|
||||
}
|
||||
|
||||
GeomBSplineCurve* GeomArcOfParabola::toNurbs(double first, double last) const
|
||||
{
|
||||
Handle_Geom_TrimmedCurve curve = Handle_Geom_TrimmedCurve::DownCast(handle());
|
||||
@@ -3315,14 +3230,6 @@ Geometry *GeomLine::copy(void) const
|
||||
return newLine;
|
||||
}
|
||||
|
||||
Geometry *GeomLine::clone(void) const
|
||||
{
|
||||
GeomLine *newLine = new GeomLine(myCurve);
|
||||
newLine->Construction = this->Construction;
|
||||
newLine->tag = this->tag;
|
||||
return newLine;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomLine::getMemSize (void) const
|
||||
{
|
||||
@@ -3421,15 +3328,6 @@ Geometry *GeomLineSegment::copy(void)const
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomLineSegment::clone(void)const
|
||||
{
|
||||
GeomLineSegment *tempCurve = new GeomLineSegment();
|
||||
tempCurve->myCurve = Handle_Geom_TrimmedCurve::DownCast(myCurve->Copy());
|
||||
tempCurve->Construction = this->Construction;
|
||||
tempCurve->tag = this->tag;
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
Base::Vector3d GeomLineSegment::getStartPoint() const
|
||||
{
|
||||
Handle_Geom_TrimmedCurve this_curve = Handle_Geom_TrimmedCurve::DownCast(handle());
|
||||
@@ -3552,14 +3450,6 @@ Geometry *GeomOffsetCurve::copy(void) const
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomOffsetCurve::clone(void) const
|
||||
{
|
||||
GeomOffsetCurve *newCurve = new GeomOffsetCurve(myCurve);
|
||||
newCurve->Construction = this->Construction;
|
||||
newCurve->tag = this->tag;
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
void GeomOffsetCurve::setHandle(const Handle_Geom_OffsetCurve& c)
|
||||
{
|
||||
this->myCurve = Handle_Geom_OffsetCurve::DownCast(c->Copy());
|
||||
@@ -3614,14 +3504,6 @@ Geometry *GeomTrimmedCurve::copy(void) const
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomTrimmedCurve::clone(void) const
|
||||
{
|
||||
GeomTrimmedCurve *newCurve = new GeomTrimmedCurve(myCurve);
|
||||
newCurve->Construction = this->Construction;
|
||||
newCurve->tag = this->tag;
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomTrimmedCurve::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomTrimmedCurve::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -3721,14 +3603,6 @@ Geometry *GeomBezierSurface::copy(void) const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
Geometry *GeomBezierSurface::clone(void) const
|
||||
{
|
||||
GeomBezierSurface *newSurf = new GeomBezierSurface(mySurface);
|
||||
newSurf->Construction = this->Construction;
|
||||
newSurf->tag = this->tag;
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomBezierSurface::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomBezierSurface::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -3788,14 +3662,6 @@ Geometry *GeomBSplineSurface::copy(void) const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
Geometry *GeomBSplineSurface::clone(void) const
|
||||
{
|
||||
GeomBSplineSurface *newSurf = new GeomBSplineSurface(mySurface);
|
||||
newSurf->Construction = this->Construction;
|
||||
newSurf->tag = this->tag;
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomBSplineSurface::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomBSplineSurface::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -3843,15 +3709,6 @@ Geometry *GeomCylinder::copy(void) const
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomCylinder::clone(void) const
|
||||
{
|
||||
GeomCylinder *tempCurve = new GeomCylinder();
|
||||
tempCurve->mySurface = Handle_Geom_CylindricalSurface::DownCast(mySurface->Copy());
|
||||
tempCurve->Construction = this->Construction;
|
||||
tempCurve->tag = this->tag;
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomCylinder::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomCylinder::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -3899,15 +3756,6 @@ Geometry *GeomCone::copy(void) const
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomCone::clone(void) const
|
||||
{
|
||||
GeomCone *tempCurve = new GeomCone();
|
||||
tempCurve->mySurface = Handle_Geom_ConicalSurface::DownCast(mySurface->Copy());
|
||||
tempCurve->Construction = this->Construction;
|
||||
tempCurve->tag = this->tag;
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomCone::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomCone::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -3955,15 +3803,6 @@ Geometry *GeomToroid::copy(void) const
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomToroid::clone(void) const
|
||||
{
|
||||
GeomToroid *tempCurve = new GeomToroid();
|
||||
tempCurve->mySurface = Handle_Geom_ToroidalSurface::DownCast(mySurface->Copy());
|
||||
tempCurve->Construction = this->Construction;
|
||||
tempCurve->tag = this->tag;
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomToroid::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomToroid::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -4011,15 +3850,6 @@ Geometry *GeomSphere::copy(void) const
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomSphere::clone(void) const
|
||||
{
|
||||
GeomSphere *tempCurve = new GeomSphere();
|
||||
tempCurve->mySurface = Handle_Geom_SphericalSurface::DownCast(mySurface->Copy());
|
||||
tempCurve->Construction = this->Construction;
|
||||
tempCurve->tag = this->tag;
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomSphere::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomSphere::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -4067,15 +3897,6 @@ Geometry *GeomPlane::copy(void) const
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
Geometry *GeomPlane::clone(void) const
|
||||
{
|
||||
GeomPlane *tempCurve = new GeomPlane();
|
||||
tempCurve->mySurface = Handle_Geom_Plane::DownCast(mySurface->Copy());
|
||||
tempCurve->Construction = this->Construction;
|
||||
tempCurve->tag = this->tag;
|
||||
return tempCurve;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomPlane::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomPlane::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -4125,14 +3946,6 @@ Geometry *GeomOffsetSurface::copy(void) const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
Geometry *GeomOffsetSurface::clone(void) const
|
||||
{
|
||||
GeomOffsetSurface *newSurf = new GeomOffsetSurface(mySurface);
|
||||
newSurf->Construction = this->Construction;
|
||||
newSurf->tag = this->tag;
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomOffsetSurface::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomOffsetSurface::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -4188,14 +4001,6 @@ Geometry *GeomPlateSurface::copy(void) const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
Geometry *GeomPlateSurface::clone(void) const
|
||||
{
|
||||
GeomPlateSurface *newSurf = new GeomPlateSurface(mySurface);
|
||||
newSurf->Construction = this->Construction;
|
||||
newSurf->tag = this->tag;
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomPlateSurface::getMemSize (void) const
|
||||
{
|
||||
@@ -4251,14 +4056,6 @@ Geometry *GeomTrimmedSurface::copy(void) const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
Geometry *GeomTrimmedSurface::clone(void) const
|
||||
{
|
||||
GeomTrimmedSurface *newSurf = new GeomTrimmedSurface(mySurface);
|
||||
newSurf->Construction = this->Construction;
|
||||
newSurf->tag = this->tag;
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomTrimmedSurface::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomTrimmedSurface::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -4308,14 +4105,6 @@ Geometry *GeomSurfaceOfRevolution::copy(void) const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
Geometry *GeomSurfaceOfRevolution::clone(void) const
|
||||
{
|
||||
GeomSurfaceOfRevolution *newSurf = new GeomSurfaceOfRevolution(mySurface);
|
||||
newSurf->Construction = this->Construction;
|
||||
newSurf->tag = this->tag;
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomSurfaceOfRevolution::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomSurfaceOfRevolution::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
@@ -4365,14 +4154,6 @@ Geometry *GeomSurfaceOfExtrusion::copy(void) const
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
Geometry *GeomSurfaceOfExtrusion::clone(void) const
|
||||
{
|
||||
GeomSurfaceOfExtrusion *newSurf = new GeomSurfaceOfExtrusion(mySurface);
|
||||
newSurf->Construction = this->Construction;
|
||||
newSurf->tag = this->tag;
|
||||
return newSurf;
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomSurfaceOfExtrusion::getMemSize (void) const {assert(0); return 0;/* not implemented yet */}
|
||||
void GeomSurfaceOfExtrusion::Save (Base::Writer &/*writer*/) const {assert(0); /* not implemented yet */}
|
||||
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
/// via constructor and use assignTag to assign the tag of the other geometry.
|
||||
/// If you do not desire to have the same tag, then a copy can be performed by using a constructor (which will generate another tag)
|
||||
/// and then, if necessary (e.g. if the constructor did not take a handle as a parameter), set a new handle.
|
||||
virtual Geometry *clone(void) const = 0;
|
||||
Geometry *clone(void) const;
|
||||
/// construction geometry (means no impact on a later built topo)
|
||||
/// Note: In the Sketcher and only for the specific case of a point, it has a special meaning:
|
||||
/// a construction point has fixed coordinates for the solver (it has fixed parameters)
|
||||
@@ -118,7 +118,6 @@ public:
|
||||
GeomPoint(const Base::Vector3d&);
|
||||
virtual ~GeomPoint();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
virtual TopoDS_Shape toShape() const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
@@ -195,7 +194,6 @@ public:
|
||||
GeomBezierCurve(const Handle_Geom_BezierCurve&);
|
||||
virtual ~GeomBezierCurve();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize (void) const;
|
||||
@@ -224,7 +222,6 @@ public:
|
||||
|
||||
virtual ~GeomBSplineCurve();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
/*!
|
||||
* Set the poles and tangents for the cubic Hermite spline
|
||||
@@ -301,7 +298,6 @@ protected:
|
||||
public:
|
||||
virtual ~GeomConic();
|
||||
virtual Geometry *copy(void) const = 0;
|
||||
virtual Geometry *clone(void) const = 0;
|
||||
|
||||
/*!
|
||||
* \deprecated use getLocation
|
||||
@@ -335,7 +331,6 @@ protected:
|
||||
public:
|
||||
virtual ~GeomArcOfConic();
|
||||
virtual Geometry *copy(void) const = 0;
|
||||
virtual Geometry *clone(void) const = 0;
|
||||
|
||||
Base::Vector3d getStartPoint(bool emulateCCWXY=false) const;
|
||||
Base::Vector3d getEndPoint(bool emulateCCWXY=false) const;
|
||||
@@ -377,7 +372,6 @@ public:
|
||||
GeomCircle(const Handle_Geom_Circle&);
|
||||
virtual ~GeomCircle();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getRadius(void) const;
|
||||
void setRadius(double Radius);
|
||||
@@ -406,7 +400,6 @@ public:
|
||||
GeomArcOfCircle(const Handle_Geom_Circle&);
|
||||
virtual ~GeomArcOfCircle();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getRadius(void) const;
|
||||
void setRadius(double Radius);
|
||||
@@ -438,7 +431,6 @@ public:
|
||||
GeomEllipse(const Handle_Geom_Ellipse&);
|
||||
virtual ~GeomEllipse();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getMajorRadius(void) const;
|
||||
void setMajorRadius(double Radius);
|
||||
@@ -470,7 +462,6 @@ public:
|
||||
GeomArcOfEllipse(const Handle_Geom_Ellipse&);
|
||||
virtual ~GeomArcOfEllipse();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getMajorRadius(void) const;
|
||||
void setMajorRadius(double Radius);
|
||||
@@ -507,7 +498,6 @@ public:
|
||||
GeomHyperbola(const Handle_Geom_Hyperbola&);
|
||||
virtual ~GeomHyperbola();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getMajorRadius(void) const;
|
||||
void setMajorRadius(double Radius);
|
||||
@@ -537,7 +527,6 @@ public:
|
||||
GeomArcOfHyperbola(const Handle_Geom_Hyperbola&);
|
||||
virtual ~GeomArcOfHyperbola();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getMajorRadius(void) const;
|
||||
void setMajorRadius(double Radius);
|
||||
@@ -573,7 +562,6 @@ public:
|
||||
GeomParabola(const Handle_Geom_Parabola&);
|
||||
virtual ~GeomParabola();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getFocal(void) const;
|
||||
void setFocal(double length);
|
||||
@@ -601,7 +589,6 @@ public:
|
||||
GeomArcOfParabola(const Handle_Geom_Parabola&);
|
||||
virtual ~GeomArcOfParabola();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
double getFocal(void) const;
|
||||
void setFocal(double length);
|
||||
@@ -636,7 +623,6 @@ public:
|
||||
GeomLine(const Base::Vector3d& Pos, const Base::Vector3d& Dir);
|
||||
virtual ~GeomLine();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
void setLine(const Base::Vector3d& Pos, const Base::Vector3d& Dir);
|
||||
Base::Vector3d getPos(void) const;
|
||||
@@ -664,7 +650,6 @@ public:
|
||||
GeomLineSegment(const Handle_Geom_Line& l);
|
||||
virtual ~GeomLineSegment();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
Base::Vector3d getStartPoint() const;
|
||||
Base::Vector3d getEndPoint() const;
|
||||
@@ -696,7 +681,6 @@ public:
|
||||
GeomOffsetCurve(const Handle_Geom_OffsetCurve&);
|
||||
virtual ~GeomOffsetCurve();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -720,7 +704,6 @@ public:
|
||||
GeomTrimmedCurve(const Handle_Geom_TrimmedCurve&);
|
||||
virtual ~GeomTrimmedCurve();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -756,7 +739,6 @@ public:
|
||||
GeomBezierSurface(const Handle_Geom_BezierSurface&);
|
||||
virtual ~GeomBezierSurface();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -780,7 +762,6 @@ public:
|
||||
GeomBSplineSurface(const Handle_Geom_BSplineSurface&);
|
||||
virtual ~GeomBSplineSurface();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -804,7 +785,6 @@ public:
|
||||
GeomCylinder(const Handle_Geom_CylindricalSurface&);
|
||||
virtual ~GeomCylinder();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -828,7 +808,6 @@ public:
|
||||
GeomCone(const Handle_Geom_ConicalSurface&);
|
||||
virtual ~GeomCone();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -852,7 +831,6 @@ public:
|
||||
GeomSphere(const Handle_Geom_SphericalSurface&);
|
||||
virtual ~GeomSphere();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -876,7 +854,6 @@ public:
|
||||
GeomToroid(const Handle_Geom_ToroidalSurface&);
|
||||
virtual ~GeomToroid();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -900,7 +877,6 @@ public:
|
||||
GeomPlane(const Handle_Geom_Plane&);
|
||||
virtual ~GeomPlane();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -925,7 +901,6 @@ public:
|
||||
GeomOffsetSurface(const Handle_Geom_OffsetSurface&);
|
||||
virtual ~GeomOffsetSurface();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -951,7 +926,6 @@ public:
|
||||
GeomPlateSurface(const Handle_GeomPlate_Surface&);
|
||||
virtual ~GeomPlateSurface();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -975,7 +949,6 @@ public:
|
||||
GeomTrimmedSurface(const Handle_Geom_RectangularTrimmedSurface&);
|
||||
virtual ~GeomTrimmedSurface();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -1000,7 +973,6 @@ public:
|
||||
GeomSurfaceOfRevolution(const Handle_Geom_SurfaceOfRevolution&);
|
||||
virtual ~GeomSurfaceOfRevolution();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
@@ -1025,7 +997,6 @@ public:
|
||||
GeomSurfaceOfExtrusion(const Handle_Geom_SurfaceOfLinearExtrusion&);
|
||||
virtual ~GeomSurfaceOfExtrusion();
|
||||
virtual Geometry *copy(void) const;
|
||||
virtual Geometry *clone(void) const;
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
|
||||
Reference in New Issue
Block a user