File indexing completed on 2026-09-21 09:18:56
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 DEFINE_STANDARD_ALLOC
0044
0045 Standard_EXPORT TopOpeBRep_Point2d();
0046
0047 Standard_EXPORT void Dump(const int ie1 = 0, const int ie2 = 0) const;
0048
0049 void SetPint(const IntRes2d_IntersectionPoint& P);
0050
0051 bool HasPint() const;
0052
0053 const IntRes2d_IntersectionPoint& Pint() const;
0054
0055 void SetIsVertex(const int I, const bool B);
0056
0057 bool IsVertex(const int I) const;
0058
0059 void SetVertex(const int I, const TopoDS_Vertex& V);
0060
0061 Standard_EXPORT const TopoDS_Vertex& Vertex(const int I) const;
0062
0063 void SetTransition(const int I, const TopOpeBRepDS_Transition& T);
0064
0065 Standard_EXPORT const TopOpeBRepDS_Transition& Transition(const int I) const;
0066
0067 Standard_EXPORT TopOpeBRepDS_Transition& ChangeTransition(const int I);
0068
0069 void SetParameter(const int I, const double P);
0070
0071 double Parameter(const int I) const;
0072
0073 void SetIsPointOfSegment(const bool B);
0074
0075 bool IsPointOfSegment() const;
0076
0077 void SetSegmentAncestors(const int IP1, const int IP2);
0078
0079 bool SegmentAncestors(int& IP1, int& IP2) const;
0080
0081 void SetStatus(const TopOpeBRep_P2Dstatus S);
0082
0083 TopOpeBRep_P2Dstatus Status() const;
0084
0085 void SetIndex(const int X);
0086
0087 int Index() const;
0088
0089 void SetValue(const gp_Pnt& P);
0090
0091 const gp_Pnt& Value() const;
0092
0093 void SetValue2d(const gp_Pnt2d& P);
0094
0095 const gp_Pnt2d& Value2d() const;
0096
0097 void SetKeep(const bool B);
0098
0099 bool Keep() const;
0100
0101 void SetEdgesConfig(const TopOpeBRepDS_Config C);
0102
0103 TopOpeBRepDS_Config EdgesConfig() const;
0104
0105 void SetTolerance(const double T);
0106
0107 double Tolerance() const;
0108
0109 void SetHctxff2d(const occ::handle<TopOpeBRep_Hctxff2d>& ff2d);
0110
0111 occ::handle<TopOpeBRep_Hctxff2d> Hctxff2d() const;
0112
0113 void SetHctxee2d(const occ::handle<TopOpeBRep_Hctxee2d>& ee2d);
0114
0115 occ::handle<TopOpeBRep_Hctxee2d> Hctxee2d() const;
0116
0117 friend class TopOpeBRep_EdgesIntersector;
0118
0119 private:
0120 IntRes2d_IntersectionPoint mypint;
0121 bool myhaspint;
0122 bool myisvertex1;
0123 TopoDS_Vertex myvertex1;
0124 TopOpeBRepDS_Transition mytransition1;
0125 double myparameter1;
0126 bool myisvertex2;
0127 TopoDS_Vertex myvertex2;
0128 TopOpeBRepDS_Transition mytransition2;
0129 double myparameter2;
0130 bool myispointofsegment;
0131 int myips1;
0132 int myips2;
0133 bool myhasancestors;
0134 TopOpeBRep_P2Dstatus mystatus;
0135 int myindex;
0136 gp_Pnt mypnt;
0137 gp_Pnt2d mypnt2d;
0138 bool mykeep;
0139 TopOpeBRepDS_Config myedgesconfig;
0140 double mytolerance;
0141 occ::handle<TopOpeBRep_Hctxff2d> myctxff2d;
0142 occ::handle<TopOpeBRep_Hctxee2d> myctxee2d;
0143 };
0144
0145 #include <TopOpeBRep_Point2d.lxx>
0146
0147 #endif