Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1993-07-05
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_CurveRepresentation_HeaderFile
0018 #define _BRep_CurveRepresentation_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <TopLoc_Location.hxx>
0023 #include <Standard_Transient.hxx>
0024 #include <GeomAbs_Shape.hxx>
0025 class Geom_Surface;
0026 class Poly_Triangulation;
0027 class Geom_Curve;
0028 class Geom2d_Curve;
0029 class Poly_Polygon3D;
0030 class Poly_Polygon2D;
0031 class Poly_PolygonOnTriangulation;
0032 
0033 
0034 class BRep_CurveRepresentation;
0035 DEFINE_STANDARD_HANDLE(BRep_CurveRepresentation, Standard_Transient)
0036 
0037 //! Root class for the curve representations. Contains
0038 //! a location.
0039 class BRep_CurveRepresentation : public Standard_Transient
0040 {
0041 
0042 public:
0043 
0044   
0045   //! A 3D curve representation.
0046   Standard_EXPORT virtual Standard_Boolean IsCurve3D() const;
0047   
0048   //! A curve in the parametric space of a surface.
0049   Standard_EXPORT virtual Standard_Boolean IsCurveOnSurface() const;
0050   
0051   //! A continuity between two surfaces.
0052   Standard_EXPORT virtual Standard_Boolean IsRegularity() const;
0053   
0054   //! A curve with two parametric   curves  on the  same
0055   //! surface.
0056   Standard_EXPORT virtual Standard_Boolean IsCurveOnClosedSurface() const;
0057   
0058   //! Is it a curve in the parametric space  of <S> with
0059   //! location <L>.
0060   Standard_EXPORT virtual Standard_Boolean IsCurveOnSurface (const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
0061   
0062   //! Is it  a  regularity between  <S1> and   <S2> with
0063   //! location <L1> and <L2>.
0064   Standard_EXPORT virtual Standard_Boolean IsRegularity (const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const TopLoc_Location& L1, const TopLoc_Location& L2) const;
0065   
0066   //! A 3D polygon representation.
0067   Standard_EXPORT virtual Standard_Boolean IsPolygon3D() const;
0068   
0069   //! A representation by an array of nodes on a
0070   //! triangulation.
0071   Standard_EXPORT virtual Standard_Boolean IsPolygonOnTriangulation() const;
0072   
0073   //! Is it a polygon in the definition of <T> with
0074   //! location <L>.
0075   Standard_EXPORT virtual Standard_Boolean IsPolygonOnTriangulation (const Handle(Poly_Triangulation)& T, const TopLoc_Location& L) const;
0076   
0077   //! A representation by two arrays of nodes on a
0078   //! triangulation.
0079   Standard_EXPORT virtual Standard_Boolean IsPolygonOnClosedTriangulation() const;
0080   
0081   //! A polygon in the parametric space of a surface.
0082   Standard_EXPORT virtual Standard_Boolean IsPolygonOnSurface() const;
0083   
0084   //! Is it a polygon in the parametric space  of <S> with
0085   //! location <L>.
0086   Standard_EXPORT virtual Standard_Boolean IsPolygonOnSurface (const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
0087   
0088   //! Two   2D polygon  representations  in the  parametric
0089   //! space of a surface.
0090   Standard_EXPORT virtual Standard_Boolean IsPolygonOnClosedSurface() const;
0091   
0092     const TopLoc_Location& Location() const;
0093   
0094     void Location (const TopLoc_Location& L);
0095   
0096   Standard_EXPORT virtual const Handle(Geom_Curve)& Curve3D() const;
0097   
0098   Standard_EXPORT virtual void Curve3D (const Handle(Geom_Curve)& C);
0099   
0100   Standard_EXPORT virtual const Handle(Geom_Surface)& Surface() const;
0101   
0102   Standard_EXPORT virtual const Handle(Geom2d_Curve)& PCurve() const;
0103   
0104   Standard_EXPORT virtual void PCurve (const Handle(Geom2d_Curve)& C);
0105   
0106   Standard_EXPORT virtual const Handle(Geom2d_Curve)& PCurve2() const;
0107   
0108   Standard_EXPORT virtual void PCurve2 (const Handle(Geom2d_Curve)& C);
0109   
0110   Standard_EXPORT virtual const Handle(Poly_Polygon3D)& Polygon3D() const;
0111   
0112   Standard_EXPORT virtual void Polygon3D (const Handle(Poly_Polygon3D)& P);
0113   
0114   Standard_EXPORT virtual const Handle(Poly_Polygon2D)& Polygon() const;
0115   
0116   Standard_EXPORT virtual void Polygon (const Handle(Poly_Polygon2D)& P);
0117   
0118   Standard_EXPORT virtual const Handle(Poly_Polygon2D)& Polygon2() const;
0119   
0120   Standard_EXPORT virtual void Polygon2 (const Handle(Poly_Polygon2D)& P);
0121   
0122   Standard_EXPORT virtual const Handle(Poly_Triangulation)& Triangulation() const;
0123   
0124   Standard_EXPORT virtual const Handle(Poly_PolygonOnTriangulation)& PolygonOnTriangulation() const;
0125   
0126   Standard_EXPORT virtual void PolygonOnTriangulation (const Handle(Poly_PolygonOnTriangulation)& P);
0127   
0128   Standard_EXPORT virtual const Handle(Poly_PolygonOnTriangulation)& PolygonOnTriangulation2() const;
0129   
0130   Standard_EXPORT virtual void PolygonOnTriangulation2 (const Handle(Poly_PolygonOnTriangulation)& P2);
0131   
0132   Standard_EXPORT virtual const Handle(Geom_Surface)& Surface2() const;
0133   
0134   Standard_EXPORT virtual const TopLoc_Location& Location2() const;
0135   
0136   Standard_EXPORT virtual const GeomAbs_Shape& Continuity() const;
0137   
0138   Standard_EXPORT virtual void Continuity (const GeomAbs_Shape C);
0139   
0140   //! Return a copy of this representation.
0141   Standard_EXPORT virtual Handle(BRep_CurveRepresentation) Copy() const = 0;
0142 
0143   //! Dumps the content of me into the stream
0144   Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
0145 
0146 
0147 
0148 
0149   DEFINE_STANDARD_RTTIEXT(BRep_CurveRepresentation,Standard_Transient)
0150 
0151 protected:
0152 
0153   
0154   Standard_EXPORT BRep_CurveRepresentation(const TopLoc_Location& L);
0155 
0156   TopLoc_Location myLocation;
0157 
0158 
0159 private:
0160 
0161 
0162 
0163 
0164 };
0165 
0166 
0167 #include <BRep_CurveRepresentation.lxx>
0168 
0169 
0170 
0171 
0172 
0173 #endif // _BRep_CurveRepresentation_HeaderFile