Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:05

0001 // Created on: 1993-08-10
0002 // Created by: Remi LEQUETTE
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _BRep_PointRepresentation_HeaderFile
0018 #define _BRep_PointRepresentation_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <TopLoc_Location.hxx>
0023 #include <Standard_Real.hxx>
0024 #include <Standard_Transient.hxx>
0025 class Geom_Curve;
0026 class Geom2d_Curve;
0027 class Geom_Surface;
0028 
0029 
0030 class BRep_PointRepresentation;
0031 DEFINE_STANDARD_HANDLE(BRep_PointRepresentation, Standard_Transient)
0032 
0033 //! Root  class     for   the points  representations.
0034 //! Contains a location and a parameter.
0035 class BRep_PointRepresentation : public Standard_Transient
0036 {
0037 
0038 public:
0039 
0040   
0041   //! A point on a 3d curve.
0042   Standard_EXPORT virtual Standard_Boolean IsPointOnCurve() const;
0043   
0044   //! A point on a 2d curve on a surface.
0045   Standard_EXPORT virtual Standard_Boolean IsPointOnCurveOnSurface() const;
0046   
0047   //! A point on a surface.
0048   Standard_EXPORT virtual Standard_Boolean IsPointOnSurface() const;
0049   
0050   //! A point on the curve <C>.
0051   Standard_EXPORT virtual Standard_Boolean IsPointOnCurve (const Handle(Geom_Curve)& C, const TopLoc_Location& L) const;
0052   
0053   //! A point on the 2d curve <PC> on the surface <S>.
0054   Standard_EXPORT virtual Standard_Boolean IsPointOnCurveOnSurface (const Handle(Geom2d_Curve)& PC, const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
0055   
0056   //! A point on the surface <S>.
0057   Standard_EXPORT virtual Standard_Boolean IsPointOnSurface (const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
0058   
0059     const TopLoc_Location& Location() const;
0060   
0061     void Location (const TopLoc_Location& L);
0062   
0063     Standard_Real Parameter() const;
0064   
0065     void Parameter (const Standard_Real P);
0066   
0067   Standard_EXPORT virtual Standard_Real Parameter2() const;
0068   
0069   Standard_EXPORT virtual void Parameter2 (const Standard_Real P);
0070   
0071   Standard_EXPORT virtual const Handle(Geom_Curve)& Curve() const;
0072   
0073   Standard_EXPORT virtual void Curve (const Handle(Geom_Curve)& C);
0074   
0075   Standard_EXPORT virtual const Handle(Geom2d_Curve)& PCurve() const;
0076   
0077   Standard_EXPORT virtual void PCurve (const Handle(Geom2d_Curve)& C);
0078   
0079   Standard_EXPORT virtual const Handle(Geom_Surface)& Surface() const;
0080   
0081   Standard_EXPORT virtual void Surface (const Handle(Geom_Surface)& S);
0082 
0083   //! Dumps the content of me into the stream
0084   Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
0085 
0086 
0087 
0088 
0089   DEFINE_STANDARD_RTTIEXT(BRep_PointRepresentation,Standard_Transient)
0090 
0091 protected:
0092 
0093   
0094   Standard_EXPORT BRep_PointRepresentation(const Standard_Real P, const TopLoc_Location& L);
0095 
0096 
0097 
0098 private:
0099 
0100 
0101   TopLoc_Location myLocation;
0102   Standard_Real myParameter;
0103 
0104 
0105 };
0106 
0107 
0108 #include <BRep_PointRepresentation.lxx>
0109 
0110 
0111 
0112 
0113 
0114 #endif // _BRep_PointRepresentation_HeaderFile