// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
+#include <TopOpeBRepDS_Surface.hxx>
#include <Geom_Surface.hxx>
-#include <TopOpeBRepDS_Surface.hxx>
//=======================================================================
//function : TopOpeBRepDS_Surface
//purpose :
//=======================================================================
TopOpeBRepDS_Surface::TopOpeBRepDS_Surface()
+: myTolerance (0.0),
+ myKeep (Standard_False)
{
}
//purpose :
//=======================================================================
-TopOpeBRepDS_Surface::TopOpeBRepDS_Surface
- (const Handle(Geom_Surface)& P,
- const Standard_Real T) :
- mySurface(P),
- myTolerance(T)
+TopOpeBRepDS_Surface::TopOpeBRepDS_Surface (const Handle(Geom_Surface)& theSurface,
+ const Standard_Real theTolerance)
+: mySurface (theSurface),
+ myTolerance (theTolerance),
+ myKeep (Standard_False)
{
}
-//
-//modified by NIZNHY-PKV Tue Oct 30 09:28:33 2001 f
//=======================================================================
//function : TopOpeBRepDS_Surface::TopOpeBRepDS_Surface
//purpose :
//=======================================================================
-TopOpeBRepDS_Surface::TopOpeBRepDS_Surface (const TopOpeBRepDS_Surface& Other)
+TopOpeBRepDS_Surface::TopOpeBRepDS_Surface (const TopOpeBRepDS_Surface& theOther)
+: mySurface (theOther.mySurface),
+ myTolerance (theOther.myTolerance),
+ myKeep (theOther.myKeep)
{
- Assign(Other);
+ //
}
+
//=======================================================================
//function : Assign
//purpose :
myTolerance=Other.myTolerance;
myKeep=Other.myKeep;
}
-//modified by NIZNHY-PKV Tue Oct 30 09:28:20 2001 t
-//
-
-//=======================================================================
-//function : Surface
-//purpose :
-//=======================================================================
-
-const Handle(Geom_Surface)& TopOpeBRepDS_Surface::Surface()const
-{
- return mySurface;
-}
-
-
-//=======================================================================
-//function : Tolerance
-//purpose :
-//=======================================================================
-
-Standard_Real TopOpeBRepDS_Surface::Tolerance()const
-{
- return myTolerance;
-}
-
-//=======================================================================
-//function : Tolerance
-//purpose :
-//=======================================================================
-
-void TopOpeBRepDS_Surface::Tolerance(const Standard_Real T)
-{
- myTolerance = T;
-}
-
-//=======================================================================
-//function : Keep
-//purpose :
-//=======================================================================
-
-Standard_Boolean TopOpeBRepDS_Surface::Keep() const
-{
- return myKeep;
-}
-//=======================================================================
-//function : ChangeKeep
-//purpose :
-//=======================================================================
-
-void TopOpeBRepDS_Surface::ChangeKeep(const Standard_Boolean b)
-{
- myKeep = b;
-}
#include <Standard_Boolean.hxx>
class Geom_Surface;
-
//! A Geom surface and a tolerance.
class TopOpeBRepDS_Surface
{
DEFINE_STANDARD_ALLOC
-
Standard_EXPORT TopOpeBRepDS_Surface();
Standard_EXPORT TopOpeBRepDS_Surface(const Handle(Geom_Surface)& P, const Standard_Real T);
{
Assign(Other);
}
-
- Standard_EXPORT const Handle(Geom_Surface)& Surface() const;
-
- Standard_EXPORT Standard_Real Tolerance() const;
-
- //! Update the tolerance
- Standard_EXPORT void Tolerance (const Standard_Real tol);
-
- Standard_EXPORT Standard_Boolean Keep() const;
-
- Standard_EXPORT void ChangeKeep (const Standard_Boolean B);
-
-
-
-protected:
+ const Handle(Geom_Surface)& Surface() const { return mySurface; }
+ Standard_Real Tolerance() const { return myTolerance; }
+ //! Update the tolerance
+ void Tolerance (Standard_Real theTol) { myTolerance = theTol; }
+ Standard_Boolean Keep() const { return myKeep; }
+ void ChangeKeep (Standard_Boolean theToKeep) { myKeep = theToKeep; }
private:
-
-
Handle(Geom_Surface) mySurface;
Standard_Real myTolerance;
Standard_Boolean myKeep;
-
};
-
-
-
-
-
-
#endif // _TopOpeBRepDS_Surface_HeaderFile