Mod: redundant void 2
This commit is contained in:
@@ -94,7 +94,7 @@ Geometry2d::~Geometry2d()
|
||||
{
|
||||
}
|
||||
|
||||
unsigned int Geometry2d::getMemSize (void) const
|
||||
unsigned int Geometry2d::getMemSize () const
|
||||
{
|
||||
return sizeof(Geometry2d);
|
||||
}
|
||||
@@ -148,13 +148,13 @@ const Handle(Geom2d_Geometry)& Geom2dPoint::handle() const
|
||||
return myPoint;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dPoint::clone(void) const
|
||||
Geometry2d *Geom2dPoint::clone() const
|
||||
{
|
||||
Geom2dPoint *newPoint = new Geom2dPoint(myPoint);
|
||||
return newPoint;
|
||||
}
|
||||
|
||||
Base::Vector2d Geom2dPoint::getPoint(void)const
|
||||
Base::Vector2d Geom2dPoint::getPoint()const
|
||||
{
|
||||
return Base::Vector2d(myPoint->X(),myPoint->Y());
|
||||
}
|
||||
@@ -164,7 +164,7 @@ void Geom2dPoint::setPoint(const Base::Vector2d& p)
|
||||
this->myPoint->SetCoord(p.x,p.y);
|
||||
}
|
||||
|
||||
unsigned int Geom2dPoint::getMemSize (void) const
|
||||
unsigned int Geom2dPoint::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_CartesianPoint);
|
||||
}
|
||||
@@ -199,7 +199,7 @@ void Geom2dPoint::Restore(Base::XMLReader &reader)
|
||||
setPoint(Base::Vector2d(X,Y));
|
||||
}
|
||||
|
||||
PyObject *Geom2dPoint::getPyObject(void)
|
||||
PyObject *Geom2dPoint::getPyObject()
|
||||
{
|
||||
Handle(Geom2d_CartesianPoint) c = Handle(Geom2d_CartesianPoint)::DownCast(handle());
|
||||
gp_Pnt2d xy = c->Pnt2d();
|
||||
@@ -361,13 +361,13 @@ const Handle(Geom2d_Geometry)& Geom2dBezierCurve::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dBezierCurve::clone(void) const
|
||||
Geometry2d *Geom2dBezierCurve::clone() const
|
||||
{
|
||||
Geom2dBezierCurve *newCurve = new Geom2dBezierCurve(myCurve);
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
unsigned int Geom2dBezierCurve::getMemSize (void) const
|
||||
unsigned int Geom2dBezierCurve::getMemSize () const
|
||||
{
|
||||
throw Base::NotImplementedError("Geom2dBezierCurve::getMemSize");
|
||||
}
|
||||
@@ -382,7 +382,7 @@ void Geom2dBezierCurve::Restore(Base::XMLReader &/*reader*/)
|
||||
throw Base::NotImplementedError("Geom2dBezierCurve::Restore");
|
||||
}
|
||||
|
||||
PyObject *Geom2dBezierCurve::getPyObject(void)
|
||||
PyObject *Geom2dBezierCurve::getPyObject()
|
||||
{
|
||||
return new BezierCurve2dPy(static_cast<Geom2dBezierCurve*>(this->clone()));
|
||||
}
|
||||
@@ -427,7 +427,7 @@ const Handle(Geom2d_Geometry)& Geom2dBSplineCurve::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dBSplineCurve::clone(void) const
|
||||
Geometry2d *Geom2dBSplineCurve::clone() const
|
||||
{
|
||||
Geom2dBSplineCurve *newCurve = new Geom2dBSplineCurve(myCurve);
|
||||
return newCurve;
|
||||
@@ -571,7 +571,7 @@ std::list<Geometry2d*> Geom2dBSplineCurve::toBiArcs(double /*tolerance*/) const
|
||||
return std::list<Geometry2d*>();
|
||||
}
|
||||
|
||||
unsigned int Geom2dBSplineCurve::getMemSize(void) const
|
||||
unsigned int Geom2dBSplineCurve::getMemSize() const
|
||||
{
|
||||
throw Base::NotImplementedError("Geom2dBSplineCurve::getMemSize");
|
||||
}
|
||||
@@ -586,7 +586,7 @@ void Geom2dBSplineCurve::Restore(Base::XMLReader &/*reader*/)
|
||||
throw Base::NotImplementedError("Geom2dBSplineCurve::Restore");
|
||||
}
|
||||
|
||||
PyObject *Geom2dBSplineCurve::getPyObject(void)
|
||||
PyObject *Geom2dBSplineCurve::getPyObject()
|
||||
{
|
||||
return new BSplineCurve2dPy(static_cast<Geom2dBSplineCurve*>(this->clone()));
|
||||
}
|
||||
@@ -603,7 +603,7 @@ Geom2dConic::~Geom2dConic()
|
||||
{
|
||||
}
|
||||
|
||||
Base::Vector2d Geom2dConic::getLocation(void) const
|
||||
Base::Vector2d Geom2dConic::getLocation() const
|
||||
{
|
||||
Handle(Geom2d_Conic) conic = Handle(Geom2d_Conic)::DownCast(handle());
|
||||
const gp_Pnt2d& loc = conic->Location();
|
||||
@@ -680,7 +680,7 @@ Geom2dArcOfConic::~Geom2dArcOfConic()
|
||||
{
|
||||
}
|
||||
|
||||
Base::Vector2d Geom2dArcOfConic::getLocation(void) const
|
||||
Base::Vector2d Geom2dArcOfConic::getLocation() const
|
||||
{
|
||||
Handle(Geom2d_TrimmedCurve) curve = Handle(Geom2d_TrimmedCurve)::DownCast(handle());
|
||||
Handle(Geom2d_Conic) conic = Handle(Geom2d_Conic)::DownCast(curve->BasisCurve());
|
||||
@@ -826,13 +826,13 @@ const Handle(Geom2d_Geometry)& Geom2dCircle::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dCircle::clone(void) const
|
||||
Geometry2d *Geom2dCircle::clone() const
|
||||
{
|
||||
Geom2dCircle *newCirc = new Geom2dCircle(myCurve);
|
||||
return newCirc;
|
||||
}
|
||||
|
||||
double Geom2dCircle::getRadius(void) const
|
||||
double Geom2dCircle::getRadius() const
|
||||
{
|
||||
Handle(Geom2d_Circle) circle = Handle(Geom2d_Circle)::DownCast(handle());
|
||||
return circle->Radius();
|
||||
@@ -852,7 +852,7 @@ void Geom2dCircle::setRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dCircle::getMemSize (void) const
|
||||
unsigned int Geom2dCircle::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Circle);
|
||||
}
|
||||
@@ -900,7 +900,7 @@ void Geom2dCircle::Restore(Base::XMLReader& reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dCircle::getPyObject(void)
|
||||
PyObject *Geom2dCircle::getPyObject()
|
||||
{
|
||||
return new Circle2dPy(static_cast<Geom2dCircle*>(this->clone()));
|
||||
}
|
||||
@@ -983,14 +983,14 @@ const Handle(Geom2d_Geometry)& Geom2dArcOfCircle::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dArcOfCircle::clone(void) const
|
||||
Geometry2d *Geom2dArcOfCircle::clone() const
|
||||
{
|
||||
Geom2dArcOfCircle* copy = new Geom2dArcOfCircle();
|
||||
copy->setHandle(this->myCurve);
|
||||
return copy;
|
||||
}
|
||||
|
||||
double Geom2dArcOfCircle::getRadius(void) const
|
||||
double Geom2dArcOfCircle::getRadius() const
|
||||
{
|
||||
Handle(Geom2d_Circle) circle = Handle(Geom2d_Circle)::DownCast(myCurve->BasisCurve());
|
||||
return circle->Radius();
|
||||
@@ -1010,7 +1010,7 @@ void Geom2dArcOfCircle::setRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dArcOfCircle::getMemSize (void) const
|
||||
unsigned int Geom2dArcOfCircle::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Circle) + 2 *sizeof(double);
|
||||
}
|
||||
@@ -1069,7 +1069,7 @@ void Geom2dArcOfCircle::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dArcOfCircle::getPyObject(void)
|
||||
PyObject *Geom2dArcOfCircle::getPyObject()
|
||||
{
|
||||
return new ArcOfCircle2dPy(static_cast<Geom2dArcOfCircle*>(this->clone()));
|
||||
}
|
||||
@@ -1098,13 +1098,13 @@ const Handle(Geom2d_Geometry)& Geom2dEllipse::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dEllipse::clone(void) const
|
||||
Geometry2d *Geom2dEllipse::clone() const
|
||||
{
|
||||
Geom2dEllipse *newEllipse = new Geom2dEllipse(myCurve);
|
||||
return newEllipse;
|
||||
}
|
||||
|
||||
double Geom2dEllipse::getMajorRadius(void) const
|
||||
double Geom2dEllipse::getMajorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Ellipse) ellipse = Handle(Geom2d_Ellipse)::DownCast(handle());
|
||||
return ellipse->MajorRadius();
|
||||
@@ -1122,7 +1122,7 @@ void Geom2dEllipse::setMajorRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
double Geom2dEllipse::getMinorRadius(void) const
|
||||
double Geom2dEllipse::getMinorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Ellipse) ellipse = Handle(Geom2d_Ellipse)::DownCast(handle());
|
||||
return ellipse->MinorRadius();
|
||||
@@ -1175,7 +1175,7 @@ void Geom2dEllipse::setMajorAxisDir(Base::Vector2d newdir)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dEllipse::getMemSize (void) const
|
||||
unsigned int Geom2dEllipse::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Ellipse);
|
||||
}
|
||||
@@ -1224,7 +1224,7 @@ void Geom2dEllipse::Restore(Base::XMLReader& reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dEllipse::getPyObject(void)
|
||||
PyObject *Geom2dEllipse::getPyObject()
|
||||
{
|
||||
return new Ellipse2dPy(static_cast<Geom2dEllipse*>(this->clone()));
|
||||
}
|
||||
@@ -1266,14 +1266,14 @@ const Handle(Geom2d_Geometry)& Geom2dArcOfEllipse::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dArcOfEllipse::clone(void) const
|
||||
Geometry2d *Geom2dArcOfEllipse::clone() const
|
||||
{
|
||||
Geom2dArcOfEllipse* copy = new Geom2dArcOfEllipse();
|
||||
copy->setHandle(this->myCurve);
|
||||
return copy;
|
||||
}
|
||||
|
||||
double Geom2dArcOfEllipse::getMajorRadius(void) const
|
||||
double Geom2dArcOfEllipse::getMajorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Ellipse) ellipse = Handle(Geom2d_Ellipse)::DownCast(myCurve->BasisCurve());
|
||||
return ellipse->MajorRadius();
|
||||
@@ -1291,7 +1291,7 @@ void Geom2dArcOfEllipse::setMajorRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
double Geom2dArcOfEllipse::getMinorRadius(void) const
|
||||
double Geom2dArcOfEllipse::getMinorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Ellipse) ellipse = Handle(Geom2d_Ellipse)::DownCast(myCurve->BasisCurve());
|
||||
return ellipse->MinorRadius();
|
||||
@@ -1348,7 +1348,7 @@ void Geom2dArcOfEllipse::setMajorAxisDir(Base::Vector2d newdir)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dArcOfEllipse::getMemSize (void) const
|
||||
unsigned int Geom2dArcOfEllipse::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Ellipse) + 2 *sizeof(double);
|
||||
}
|
||||
@@ -1410,7 +1410,7 @@ void Geom2dArcOfEllipse::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dArcOfEllipse::getPyObject(void)
|
||||
PyObject *Geom2dArcOfEllipse::getPyObject()
|
||||
{
|
||||
return new ArcOfEllipse2dPy(static_cast<Geom2dArcOfEllipse*>(this->clone()));
|
||||
}
|
||||
@@ -1439,13 +1439,13 @@ const Handle(Geom2d_Geometry)& Geom2dHyperbola::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dHyperbola::clone(void) const
|
||||
Geometry2d *Geom2dHyperbola::clone() const
|
||||
{
|
||||
Geom2dHyperbola *newHyp = new Geom2dHyperbola(myCurve);
|
||||
return newHyp;
|
||||
}
|
||||
|
||||
double Geom2dHyperbola::getMajorRadius(void) const
|
||||
double Geom2dHyperbola::getMajorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Hyperbola) h = Handle(Geom2d_Hyperbola)::DownCast(handle());
|
||||
return h->MajorRadius();
|
||||
@@ -1463,7 +1463,7 @@ void Geom2dHyperbola::setMajorRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
double Geom2dHyperbola::getMinorRadius(void) const
|
||||
double Geom2dHyperbola::getMinorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Hyperbola) h = Handle(Geom2d_Hyperbola)::DownCast(handle());
|
||||
return h->MinorRadius();
|
||||
@@ -1481,7 +1481,7 @@ void Geom2dHyperbola::setMinorRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dHyperbola::getMemSize (void) const
|
||||
unsigned int Geom2dHyperbola::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Hyperbola);
|
||||
}
|
||||
@@ -1530,7 +1530,7 @@ void Geom2dHyperbola::Restore(Base::XMLReader& reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dHyperbola::getPyObject(void)
|
||||
PyObject *Geom2dHyperbola::getPyObject()
|
||||
{
|
||||
return new Hyperbola2dPy(static_cast<Geom2dHyperbola*>(this->clone()));
|
||||
}
|
||||
@@ -1567,14 +1567,14 @@ const Handle(Geom2d_Geometry)& Geom2dArcOfHyperbola::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dArcOfHyperbola::clone(void) const
|
||||
Geometry2d *Geom2dArcOfHyperbola::clone() const
|
||||
{
|
||||
Geom2dArcOfHyperbola* copy = new Geom2dArcOfHyperbola();
|
||||
copy->setHandle(this->myCurve);
|
||||
return copy;
|
||||
}
|
||||
|
||||
double Geom2dArcOfHyperbola::getMajorRadius(void) const
|
||||
double Geom2dArcOfHyperbola::getMajorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Hyperbola) h = Handle(Geom2d_Hyperbola)::DownCast(myCurve->BasisCurve());
|
||||
return h->MajorRadius();
|
||||
@@ -1592,7 +1592,7 @@ void Geom2dArcOfHyperbola::setMajorRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
double Geom2dArcOfHyperbola::getMinorRadius(void) const
|
||||
double Geom2dArcOfHyperbola::getMinorRadius() const
|
||||
{
|
||||
Handle(Geom2d_Hyperbola) h = Handle(Geom2d_Hyperbola)::DownCast(myCurve->BasisCurve());
|
||||
return h->MinorRadius();
|
||||
@@ -1610,7 +1610,7 @@ void Geom2dArcOfHyperbola::setMinorRadius(double Radius)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dArcOfHyperbola::getMemSize (void) const
|
||||
unsigned int Geom2dArcOfHyperbola::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Hyperbola) + 2 *sizeof(double);
|
||||
}
|
||||
@@ -1672,7 +1672,7 @@ void Geom2dArcOfHyperbola::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dArcOfHyperbola::getPyObject(void)
|
||||
PyObject *Geom2dArcOfHyperbola::getPyObject()
|
||||
{
|
||||
return new ArcOfHyperbola2dPy(static_cast<Geom2dArcOfHyperbola*>(this->clone()));
|
||||
}
|
||||
@@ -1701,13 +1701,13 @@ const Handle(Geom2d_Geometry)& Geom2dParabola::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dParabola::clone(void) const
|
||||
Geometry2d *Geom2dParabola::clone() const
|
||||
{
|
||||
Geom2dParabola *newPar = new Geom2dParabola(myCurve);
|
||||
return newPar;
|
||||
}
|
||||
|
||||
double Geom2dParabola::getFocal(void) const
|
||||
double Geom2dParabola::getFocal() const
|
||||
{
|
||||
Handle(Geom2d_Parabola) p = Handle(Geom2d_Parabola)::DownCast(handle());
|
||||
return p->Focal();
|
||||
@@ -1725,7 +1725,7 @@ void Geom2dParabola::setFocal(double length)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dParabola::getMemSize (void) const
|
||||
unsigned int Geom2dParabola::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Parabola);
|
||||
}
|
||||
@@ -1773,7 +1773,7 @@ void Geom2dParabola::Restore(Base::XMLReader& reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dParabola::getPyObject(void)
|
||||
PyObject *Geom2dParabola::getPyObject()
|
||||
{
|
||||
return new Parabola2dPy(static_cast<Geom2dParabola*>(this->clone()));
|
||||
}
|
||||
@@ -1810,14 +1810,14 @@ const Handle(Geom2d_Geometry)& Geom2dArcOfParabola::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dArcOfParabola::clone(void) const
|
||||
Geometry2d *Geom2dArcOfParabola::clone() const
|
||||
{
|
||||
Geom2dArcOfParabola* copy = new Geom2dArcOfParabola();
|
||||
copy->setHandle(this->myCurve);
|
||||
return copy;
|
||||
}
|
||||
|
||||
double Geom2dArcOfParabola::getFocal(void) const
|
||||
double Geom2dArcOfParabola::getFocal() const
|
||||
{
|
||||
Handle(Geom2d_Parabola) p = Handle(Geom2d_Parabola)::DownCast(myCurve->BasisCurve());
|
||||
return p->Focal();
|
||||
@@ -1835,7 +1835,7 @@ void Geom2dArcOfParabola::setFocal(double length)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dArcOfParabola::getMemSize (void) const
|
||||
unsigned int Geom2dArcOfParabola::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Parabola) + 2 *sizeof(double);
|
||||
}
|
||||
@@ -1895,7 +1895,7 @@ void Geom2dArcOfParabola::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dArcOfParabola::getPyObject(void)
|
||||
PyObject *Geom2dArcOfParabola::getPyObject()
|
||||
{
|
||||
return new ArcOfParabola2dPy(static_cast<Geom2dArcOfParabola*>(this->clone()));
|
||||
}
|
||||
@@ -1930,13 +1930,13 @@ void Geom2dLine::setLine(const Base::Vector2d& Pos, const Base::Vector2d& Dir)
|
||||
this->myCurve->SetDirection(gp_Dir2d(Dir.x,Dir.y));
|
||||
}
|
||||
|
||||
Base::Vector2d Geom2dLine::getPos(void) const
|
||||
Base::Vector2d Geom2dLine::getPos() const
|
||||
{
|
||||
gp_Pnt2d Pos = this->myCurve->Lin2d().Location();
|
||||
return Base::Vector2d(Pos.X(),Pos.Y());
|
||||
}
|
||||
|
||||
Base::Vector2d Geom2dLine::getDir(void) const
|
||||
Base::Vector2d Geom2dLine::getDir() const
|
||||
{
|
||||
gp_Dir2d Dir = this->myCurve->Lin2d().Direction();
|
||||
return Base::Vector2d(Dir.X(),Dir.Y());
|
||||
@@ -1947,13 +1947,13 @@ const Handle(Geom2d_Geometry)& Geom2dLine::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dLine::clone(void) const
|
||||
Geometry2d *Geom2dLine::clone() const
|
||||
{
|
||||
Geom2dLine *newLine = new Geom2dLine(myCurve);
|
||||
return newLine;
|
||||
}
|
||||
|
||||
unsigned int Geom2dLine::getMemSize (void) const
|
||||
unsigned int Geom2dLine::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_Line);
|
||||
}
|
||||
@@ -2004,7 +2004,7 @@ void Geom2dLine::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dLine::getPyObject(void)
|
||||
PyObject *Geom2dLine::getPyObject()
|
||||
{
|
||||
return new Line2dPy(static_cast<Geom2dLine*>(this->clone()));
|
||||
}
|
||||
@@ -2039,7 +2039,7 @@ const Handle(Geom2d_Geometry)& Geom2dLineSegment::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dLineSegment::clone(void)const
|
||||
Geometry2d *Geom2dLineSegment::clone()const
|
||||
{
|
||||
Geom2dLineSegment *tempCurve = new Geom2dLineSegment();
|
||||
tempCurve->myCurve = Handle(Geom2d_TrimmedCurve)::DownCast(myCurve->Copy());
|
||||
@@ -2087,7 +2087,7 @@ void Geom2dLineSegment::setPoints(const Base::Vector2d& Start, const Base::Vecto
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int Geom2dLineSegment::getMemSize (void) const
|
||||
unsigned int Geom2dLineSegment::getMemSize () const
|
||||
{
|
||||
return sizeof(Geom2d_TrimmedCurve) + sizeof(Geom2d_Line);
|
||||
}
|
||||
@@ -2139,7 +2139,7 @@ void Geom2dLineSegment::Restore(Base::XMLReader &reader)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *Geom2dLineSegment::getPyObject(void)
|
||||
PyObject *Geom2dLineSegment::getPyObject()
|
||||
{
|
||||
return new Line2dSegmentPy(static_cast<Geom2dLineSegment*>(this->clone()));
|
||||
}
|
||||
@@ -2166,7 +2166,7 @@ Geom2dOffsetCurve::~Geom2dOffsetCurve()
|
||||
{
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dOffsetCurve::clone(void) const
|
||||
Geometry2d *Geom2dOffsetCurve::clone() const
|
||||
{
|
||||
Geom2dOffsetCurve *newCurve = new Geom2dOffsetCurve(myCurve);
|
||||
return newCurve;
|
||||
@@ -2182,7 +2182,7 @@ const Handle(Geom2d_Geometry)& Geom2dOffsetCurve::handle() const
|
||||
return this->myCurve;
|
||||
}
|
||||
|
||||
unsigned int Geom2dOffsetCurve::getMemSize (void) const
|
||||
unsigned int Geom2dOffsetCurve::getMemSize () const
|
||||
{
|
||||
throw Base::NotImplementedError("Geom2dOffsetCurve::getMemSize");
|
||||
}
|
||||
@@ -2197,7 +2197,7 @@ void Geom2dOffsetCurve::Restore(Base::XMLReader &/*reader*/)
|
||||
throw Base::NotImplementedError("Geom2dOffsetCurve::Restore");
|
||||
}
|
||||
|
||||
PyObject *Geom2dOffsetCurve::getPyObject(void)
|
||||
PyObject *Geom2dOffsetCurve::getPyObject()
|
||||
{
|
||||
return new OffsetCurve2dPy(static_cast<Geom2dOffsetCurve*>(this->clone()));
|
||||
}
|
||||
@@ -2229,13 +2229,13 @@ const Handle(Geom2d_Geometry)& Geom2dTrimmedCurve::handle() const
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
Geometry2d *Geom2dTrimmedCurve::clone(void) const
|
||||
Geometry2d *Geom2dTrimmedCurve::clone() const
|
||||
{
|
||||
Geom2dTrimmedCurve *newCurve = new Geom2dTrimmedCurve(myCurve);
|
||||
return newCurve;
|
||||
}
|
||||
|
||||
unsigned int Geom2dTrimmedCurve::getMemSize (void) const
|
||||
unsigned int Geom2dTrimmedCurve::getMemSize () const
|
||||
{
|
||||
throw Base::NotImplementedError("Geom2dTrimmedCurve::getMemSize");
|
||||
}
|
||||
@@ -2250,7 +2250,7 @@ void Geom2dTrimmedCurve::Restore(Base::XMLReader &/*reader*/)
|
||||
throw Base::NotImplementedError("Geom2dTrimmedCurve::Restore");
|
||||
}
|
||||
|
||||
PyObject *Geom2dTrimmedCurve::getPyObject(void)
|
||||
PyObject *Geom2dTrimmedCurve::getPyObject()
|
||||
{
|
||||
Handle(Geom2d_Curve) basis = this->myCurve->BasisCurve();
|
||||
if (basis.IsNull())
|
||||
|
||||
Reference in New Issue
Block a user