File indexing completed on 2025-01-18 10:05:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopOpeBRep_Point2d_HeaderFile
0018 #define _TopOpeBRep_Point2d_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <IntRes2d_IntersectionPoint.hxx>
0025 #include <TopoDS_Vertex.hxx>
0026 #include <TopOpeBRepDS_Transition.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TopOpeBRep_P2Dstatus.hxx>
0029 #include <gp_Pnt.hxx>
0030 #include <gp_Pnt2d.hxx>
0031 #include <TopOpeBRepDS_Config.hxx>
0032 class TopOpeBRep_Hctxff2d;
0033 class TopOpeBRep_Hctxee2d;
0034
0035
0036 #ifdef Status
0037 #undef Status
0038 #endif
0039
0040 class TopOpeBRep_Point2d
0041 {
0042 public:
0043
0044 DEFINE_STANDARD_ALLOC
0045
0046
0047 Standard_EXPORT TopOpeBRep_Point2d();
0048
0049 Standard_EXPORT void Dump (const Standard_Integer ie1 = 0, const Standard_Integer ie2 = 0) const;
0050
0051 void SetPint (const IntRes2d_IntersectionPoint& P);
0052
0053 Standard_Boolean HasPint() const;
0054
0055 const IntRes2d_IntersectionPoint& Pint() const;
0056
0057 void SetIsVertex (const Standard_Integer I, const Standard_Boolean B);
0058
0059 Standard_Boolean IsVertex (const Standard_Integer I) const;
0060
0061 void SetVertex (const Standard_Integer I, const TopoDS_Vertex& V);
0062
0063 Standard_EXPORT const TopoDS_Vertex& Vertex (const Standard_Integer I) const;
0064
0065 void SetTransition (const Standard_Integer I, const TopOpeBRepDS_Transition& T);
0066
0067 Standard_EXPORT const TopOpeBRepDS_Transition& Transition (const Standard_Integer I) const;
0068
0069 Standard_EXPORT TopOpeBRepDS_Transition& ChangeTransition (const Standard_Integer I);
0070
0071 void SetParameter (const Standard_Integer I, const Standard_Real P);
0072
0073 Standard_Real Parameter (const Standard_Integer I) const;
0074
0075 void SetIsPointOfSegment (const Standard_Boolean B);
0076
0077 Standard_Boolean IsPointOfSegment() const;
0078
0079 void SetSegmentAncestors (const Standard_Integer IP1, const Standard_Integer IP2);
0080
0081 Standard_Boolean SegmentAncestors (Standard_Integer& IP1, Standard_Integer& IP2) const;
0082
0083 void SetStatus (const TopOpeBRep_P2Dstatus S);
0084
0085 TopOpeBRep_P2Dstatus Status() const;
0086
0087 void SetIndex (const Standard_Integer X);
0088
0089 Standard_Integer Index() const;
0090
0091 void SetValue (const gp_Pnt& P);
0092
0093 const gp_Pnt& Value() const;
0094
0095 void SetValue2d (const gp_Pnt2d& P);
0096
0097 const gp_Pnt2d& Value2d() const;
0098
0099 void SetKeep (const Standard_Boolean B);
0100
0101 Standard_Boolean Keep() const;
0102
0103 void SetEdgesConfig (const TopOpeBRepDS_Config C);
0104
0105 TopOpeBRepDS_Config EdgesConfig() const;
0106
0107 void SetTolerance (const Standard_Real T);
0108
0109 Standard_Real Tolerance() const;
0110
0111 void SetHctxff2d (const Handle(TopOpeBRep_Hctxff2d)& ff2d);
0112
0113 Handle(TopOpeBRep_Hctxff2d) Hctxff2d() const;
0114
0115 void SetHctxee2d (const Handle(TopOpeBRep_Hctxee2d)& ee2d);
0116
0117 Handle(TopOpeBRep_Hctxee2d) Hctxee2d() const;
0118
0119
0120 friend class TopOpeBRep_EdgesIntersector;
0121
0122
0123 protected:
0124
0125
0126
0127
0128
0129 private:
0130
0131
0132
0133 IntRes2d_IntersectionPoint mypint;
0134 Standard_Boolean myhaspint;
0135 Standard_Boolean myisvertex1;
0136 TopoDS_Vertex myvertex1;
0137 TopOpeBRepDS_Transition mytransition1;
0138 Standard_Real myparameter1;
0139 Standard_Boolean myisvertex2;
0140 TopoDS_Vertex myvertex2;
0141 TopOpeBRepDS_Transition mytransition2;
0142 Standard_Real myparameter2;
0143 Standard_Boolean myispointofsegment;
0144 Standard_Integer myips1;
0145 Standard_Integer myips2;
0146 Standard_Boolean myhasancestors;
0147 TopOpeBRep_P2Dstatus mystatus;
0148 Standard_Integer myindex;
0149 gp_Pnt mypnt;
0150 gp_Pnt2d mypnt2d;
0151 Standard_Boolean mykeep;
0152 TopOpeBRepDS_Config myedgesconfig;
0153 Standard_Real mytolerance;
0154 Handle(TopOpeBRep_Hctxff2d) myctxff2d;
0155 Handle(TopOpeBRep_Hctxee2d) myctxee2d;
0156
0157
0158 };
0159
0160
0161 #include <TopOpeBRep_Point2d.lxx>
0162
0163
0164
0165
0166
0167 #endif