File indexing completed on 2025-01-18 10:03:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
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
0038
0039 class BRep_CurveRepresentation : public Standard_Transient
0040 {
0041
0042 public:
0043
0044
0045
0046 Standard_EXPORT virtual Standard_Boolean IsCurve3D() const;
0047
0048
0049 Standard_EXPORT virtual Standard_Boolean IsCurveOnSurface() const;
0050
0051
0052 Standard_EXPORT virtual Standard_Boolean IsRegularity() const;
0053
0054
0055
0056 Standard_EXPORT virtual Standard_Boolean IsCurveOnClosedSurface() const;
0057
0058
0059
0060 Standard_EXPORT virtual Standard_Boolean IsCurveOnSurface (const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
0061
0062
0063
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
0067 Standard_EXPORT virtual Standard_Boolean IsPolygon3D() const;
0068
0069
0070
0071 Standard_EXPORT virtual Standard_Boolean IsPolygonOnTriangulation() const;
0072
0073
0074
0075 Standard_EXPORT virtual Standard_Boolean IsPolygonOnTriangulation (const Handle(Poly_Triangulation)& T, const TopLoc_Location& L) const;
0076
0077
0078
0079 Standard_EXPORT virtual Standard_Boolean IsPolygonOnClosedTriangulation() const;
0080
0081
0082 Standard_EXPORT virtual Standard_Boolean IsPolygonOnSurface() const;
0083
0084
0085
0086 Standard_EXPORT virtual Standard_Boolean IsPolygonOnSurface (const Handle(Geom_Surface)& S, const TopLoc_Location& L) const;
0087
0088
0089
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
0141 Standard_EXPORT virtual Handle(BRep_CurveRepresentation) Copy() const = 0;
0142
0143
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