Implementation of operator of type casting to resulting object simplified in classes of GC and GCE2d packages
---Purpose: Returns the constructed arc of circle.
-- Exceptions StdFail_NotDone if no arc of circle is constructed.
---C++: return const&
-
-Operator(me) returns TrimmedCurve from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-//=======================================================================
-//function : Operator
-//purpose :
-//=======================================================================
-const Handle(Geom_TrimmedCurve)& GC_MakeArcOfCircle::Operator() const
-{
- return Value();
-}
-//=======================================================================
-//function : operator
-//purpose :
-//=======================================================================
-GC_MakeArcOfCircle::operator Handle(Geom_TrimmedCurve) () const
-{
- return Value();
-}
-
is static;
---C++: return const&
---Purpose: Returns the constructed arc of ellipse.
-
-Operator(me) returns TrimmedCurve from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-
-const Handle(Geom_TrimmedCurve)& GC_MakeArcOfEllipse::Operator() const
-{
- return Value();
-}
-
-GC_MakeArcOfEllipse::operator Handle(Geom_TrimmedCurve) () const
-{
- return Value();
-}
-
-
-
-
is static;
--- Purpose: Returns the constructed arc of hyperbola.
---C++: return const&
-
-Operator(me) returns TrimmedCurve from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-
-const Handle(Geom_TrimmedCurve)& GC_MakeArcOfHyperbola::Operator() const
-{
- return Value();
-}
-
-GC_MakeArcOfHyperbola::operator Handle(Geom_TrimmedCurve) () const
-{
- return Value();
-}
-
is static;
---Purpose: Returns the constructed arc of parabola.
---C++: return const&
-
-Operator(me) returns TrimmedCurve from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-
-const Handle(Geom_TrimmedCurve)& GC_MakeArcOfParabola::Operator() const
-{
- return Value();
-}
-
-GC_MakeArcOfParabola::operator Handle(Geom_TrimmedCurve) () const
-{
- return Value();
-}
-
-- Exceptions
-- StdFail_NotDone if no circle is constructed.
---C++: return const&
-
-Operator(me) returns Circle from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Circle() const;"
+ ---C++: alias "operator const Handle(Geom_Circle)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCircle;
}
-
-const Handle(Geom_Circle)& GC_MakeCircle::Operator() const
-{
- return Value();
-}
-
-GC_MakeCircle::operator Handle(Geom_Circle) () const
-{
- return Value();
-}
-
-- Exceptions
-- StdFail_NotDone if no cone is constructed.
---C++: return const&
-
-Operator(me) returns ConicalSurface from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_ConicalSurface() const;"
+ ---C++: alias "operator const Handle(Geom_ConicalSurface)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCone;
}
-
-const Handle(Geom_ConicalSurface)& GC_MakeConicalSurface::Operator() const
-{
- return Value();
-}
-
-GC_MakeConicalSurface::operator Handle(Geom_ConicalSurface) () const
-{
- return Value();
-}
-
---Purpose: Returns the constructed cylinder.
-- Exceptions StdFail_NotDone if no cylinder is constructed.
---C++: return const&
-
-Operator(me) returns CylindricalSurface from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_CylindricalSurface() const;"
+ ---C++: alias "operator const Handle(Geom_CylindricalSurface)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCylinder;
}
-
-const Handle(Geom_CylindricalSurface)& GC_MakeCylindricalSurface::Operator() const
-{
- return Value();
-}
-
-GC_MakeCylindricalSurface::operator Handle(Geom_CylindricalSurface) () const
-{
- return Value();
-}
---Purpose: Returns the constructed ellipse.
-- Exceptions StdFail_NotDone if no ellipse is constructed.
---C++: return const&
-
-Operator(me) returns Ellipse from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Ellipse() const;"
+ ---C++: alias "operator const Handle(Geom_Ellipse)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheEllipse;
}
-
-const Handle(Geom_Ellipse)& GC_MakeEllipse::Operator() const
-{
- return Value();
-}
-
-GC_MakeEllipse::operator Handle(Geom_Ellipse) () const
-{
- return Value();
-}
-
---Purpose: Returns the constructed hyperbola.
-- Exceptions StdFail_NotDone if no hyperbola is constructed.
---C++: return const&
-
-Operator(me) returns Hyperbola from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Hyperbola() const;"
+ ---C++: alias "operator const Handle(Geom_Hyperbola)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheHyperbola;
}
-
-const Handle(Geom_Hyperbola)& GC_MakeHyperbola::Operator() const
-{
- return Value();
-}
-
-GC_MakeHyperbola::operator Handle(Geom_Hyperbola) () const
-{
- return Value();
-}
-
---Purpose: Returns the constructed line.
-- Exceptions StdFail_NotDone if no line is constructed.
---C++: return const&
-
-Operator(me) returns Line from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Line() const;"
+ ---C++: alias "operator const Handle(Geom_Line)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheLine;
}
-
-const Handle(Geom_Line)& GC_MakeLine::Operator() const
-{
- return Value();
-}
-
-GC_MakeLine::operator Handle(Geom_Line) () const
-{
- return Value();
-}
-
is static;
---Purpose: Returns the constructed transformation.
---C++: return const&
-
-Operator(me) returns Transformation from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom_Transformation)& () const { return Value(); }"
fields
{
return TheMirror;
}
-
-const Handle(Geom_Transformation)& GC_MakeMirror::Operator() const
-{
- return TheMirror;
-}
-
-GC_MakeMirror::operator Handle(Geom_Transformation) () const
-{
- return TheMirror;
-}
-
---Purpose: Returns the constructed plane.
-- Exceptions StdFail_NotDone if no plane is constructed.
---C++: return const&
-
-Operator(me) returns Plane from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Plane() const;"
+ ---C++: alias "operator const Handle(Geom_Plane)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return ThePlane;
}
-
-const Handle(Geom_Plane)& GC_MakePlane::Operator() const
-{
- return Value();
-}
-
-GC_MakePlane::operator Handle(Geom_Plane) () const
-{
- return Value();
-}
-
is static;
---Purpose: Returns the constructed transformation.
---C++: return const&
-
-Operator(me) returns Transformation from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom_Transformation)& () const { return Value(); }"
fields
{
return TheRotation;
}
-
-const Handle(Geom_Transformation)& GC_MakeRotation::Operator() const
-{
- return TheRotation;
-}
-
-GC_MakeRotation::operator Handle(Geom_Transformation) () const
-{
- return TheRotation;
-}
-
-
-
-
is static;
---Purpose: Returns the constructed transformation.
---C++: return const&
-
-Operator(me) returns Transformation from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom_Transformation)& () const { return Value(); }"
fields
{
return TheScale;
}
-
-const Handle(Geom_Transformation)& GC_MakeScale::Operator() const
-{
- return TheScale;
-}
-
-GC_MakeScale::operator Handle(Geom_Transformation) () const
-{
- return TheScale;
-}
-
is static;
---Purpose: Returns the constructed line segment.
---C++: return const&
-
-Operator(me) returns TrimmedCurve from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheSegment;
}
-
-const Handle(Geom_TrimmedCurve)& GC_MakeSegment::Operator() const
-{
- return Value();
-}
-
-GC_MakeSegment::operator Handle(Geom_TrimmedCurve) () const
-{
- return Value();
-}
-
is static;
---Purpose: Returns the constructed transformation.
---C++: return const&
-
-Operator(me) returns Transformation from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom_Transformation)& () const { return Value(); }"
fields
{
return TheTranslation;
}
-
-const Handle(Geom_Transformation)& GC_MakeTranslation::Operator() const
-{
- return TheTranslation;
-}
-
-GC_MakeTranslation::operator Handle(Geom_Transformation) () const
-{
- return TheTranslation;
-}
-
---Purpose: Returns the constructed trimmed cone.
-- StdFail_NotDone if no trimmed cone is constructed.
---C++: return const&
-
-Operator(me) returns RectangularTrimmedSurface from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_RectangularTrimmedSurface() const;"
+ ---C++: alias "operator const Handle(Geom_RectangularTrimmedSurface)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCone;
}
-
-const Handle(Geom_RectangularTrimmedSurface)& GC_MakeTrimmedCone::
- Operator() const
-{
- return Value();
-}
-
-GC_MakeTrimmedCone::
- operator Handle(Geom_RectangularTrimmedSurface) () const
-{
- return Value();
-}
-
-- Exceptions
-- StdFail_NotDone if no trimmed cylinder is constructed.
---C++: return const&
-
-Operator(me) returns RectangularTrimmedSurface from Geom
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom_RectangularTrimmedSurface() const;"
+ ---C++: alias "operator const Handle(Geom_RectangularTrimmedSurface)& () const { return Value(); }"
fields
#include <GC_MakeCylindricalSurface.hxx>
#include <StdFail_NotDone.hxx>
#include <Standard_NotImplemented.hxx>
+#include <Geom_CylindricalSurface.hxx>
//=========================================================================
// Creation of a cylinder limited by three points <P1>, <P2> and <P3>. +
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCyl;
}
-
-const Handle(Geom_RectangularTrimmedSurface)& GC_MakeTrimmedCylinder::
- Operator() const
-{
- return Value();
-}
-
-GC_MakeTrimmedCylinder::
- operator Handle(Geom_RectangularTrimmedSurface) () const
-{
- return Value();
-}
-
---C++: return const&
---Purpose: Returns the constructed arc of circle.
-- Exceptions StdFail_NotDone if no arc of circle is constructed.
-
-Operator(me) returns TrimmedCurve from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-
-const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfCircle::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeArcOfCircle::operator Handle(Geom2d_TrimmedCurve) () const
-{
- return Value();
-}
-
is static;
---C++: return const&
---Purpose: Returns the constructed arc of ellipse.
-
-Operator(me) returns TrimmedCurve from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-
-const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfEllipse::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeArcOfEllipse::operator Handle(Geom2d_TrimmedCurve) () const
-{
- return Value();
-}
-
-
-
-
is static;
---C++: return const&
---Purpose: Returns the constructed arc of hyperbola.
-
-Operator(me) returns TrimmedCurve from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-
-const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfHyperbola::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeArcOfHyperbola::operator Handle(Geom2d_TrimmedCurve) () const
-{
- return Value();
-}
-
is static;
---C++: return const&
---Purpose: Returns the constructed arc of parabola.
-
-Operator(me) returns TrimmedCurve from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheArc;
}
-
-const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfParabola::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeArcOfParabola::operator Handle(Geom2d_TrimmedCurve) () const
-{
- return Value();
-}
-
---C++: return const&
---Purpose: Returns the constructed circle.
-- Exceptions StdFail_NotDone if no circle is constructed.
-
-Operator(me) returns Circle from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Circle() const;"
+ ---C++: alias "operator const Handle(Geom2d_Circle)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheCircle;
}
-
-const Handle(Geom2d_Circle)& GCE2d_MakeCircle::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeCircle::operator Handle(Geom2d_Circle) () const
-{
- return Value();
-}
-
---C++: return const&
---Purpose: Returns the constructed ellipse.
-- Exceptions StdFail_NotDone if no ellipse is constructed.
-
-Operator(me) returns Ellipse from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Ellipse() const;"
+ ---C++: alias "operator const Handle(Geom2d_Ellipse)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheEllipse;
}
-
-const Handle(Geom2d_Ellipse)& GCE2d_MakeEllipse::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeEllipse::operator Handle(Geom2d_Ellipse) () const
-{
- return Value();
-}
-
---C++: return const&
---Purpose: Returns the constructed hyperbola.
-- Exceptions: StdFail_NotDone if no hyperbola is constructed.
-
-Operator(me) returns Hyperbola from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Hyperbola() const;"
+ ---C++: alias "operator const Handle(Geom2d_Hyperbola)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheHyperbola;
}
-
-const Handle(Geom2d_Hyperbola)& GCE2d_MakeHyperbola::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeHyperbola::operator Handle(Geom2d_Hyperbola) () const
-{
- return Value();
-}
-
---C++: return const&
---Purpose: Returns the constructed line.
-- Exceptions StdFail_NotDone if no line is constructed.
-
-Operator(me) returns Line from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Line() const;"
+ ---C++: alias "operator const Handle(Geom2d_Line)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheLine;
}
-
-const Handle(Geom2d_Line) & GCE2d_MakeLine::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeLine::operator Handle(Geom2d_Line) () const
-{
- return Value();
-}
-
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
-
-Operator(me) returns Transformation from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields
{
return TheMirror;
}
-
-const Handle(Geom2d_Transformation)& GCE2d_MakeMirror::Operator() const
-{
- return TheMirror;
-}
-
-GCE2d_MakeMirror::operator Handle(Geom2d_Transformation) () const
-{
- return TheMirror;
-}
-
---C++: return const&
---Purpose: Returns the constructed parabola.
-- Exceptions StdFail_NotDone if no parabola is constructed.
-
-Operator(me) returns Parabola from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Parabola() const;"
+ ---C++: alias "operator const Handle(Geom2d_Parabola)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheParabola;
}
-
-const Handle(Geom2d_Parabola)& GCE2d_MakeParabola::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeParabola::operator Handle(Geom2d_Parabola) () const
-{
- return Value();
-}
-
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
-
-Operator(me) returns Transformation from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields
{
return TheRotation;
}
-
-const Handle(Geom2d_Transformation)& GCE2d_MakeRotation::Operator() const
-{
- return TheRotation;
-}
-
-GCE2d_MakeRotation::operator Handle(Geom2d_Transformation) () const
-{
- return TheRotation;
-}
-
-
-
-
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
-
-Operator(me) returns Transformation from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields
{
return TheScale;
}
-
-const Handle(Geom2d_Transformation)& GCE2d_MakeScale::Operator() const
-{
- return TheScale;
-}
-
-GCE2d_MakeScale::operator Handle(Geom2d_Transformation) () const
-{
- return TheScale;
-}
-
---C++: return const&
---Purpose: Returns the constructed line segment.
-- Exceptions StdFail_NotDone if no line segment is constructed.
-
-Operator(me) returns TrimmedCurve from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
+ ---C++: alias "operator const Handle(Geom2d_TrimmedCurve)& () const { return Value(); }"
fields
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
return TheSegment;
}
-
-const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeSegment::operator Handle(Geom2d_TrimmedCurve) () const
-{
- return Value();
-}
-
is static;
---C++: return const&
---Purpose: Returns the constructed transformation.
-
-Operator(me) returns Transformation from Geom2d
- is static;
- ---C++: return const&
- ---C++: alias "Standard_EXPORT operator Handle_Geom2d_Transformation() const;"
+ ---C++: alias "operator const Handle(Geom2d_Transformation)& () const { return Value(); }"
fields
{
return TheTranslation;
}
-
-const Handle(Geom2d_Transformation)& GCE2d_MakeTranslation::Operator() const
-{
- return TheTranslation;
-}
-
-GCE2d_MakeTranslation::operator Handle(Geom2d_Transformation) () const
-{
- return TheTranslation;
-}
-