File indexing completed on 2026-10-05 09:22:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _HLRAlgo_EdgeStatus_HeaderFile
0018 #define _HLRAlgo_EdgeStatus_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Intrv_Intervals.hxx>
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 class HLRAlgo_EdgeStatus
0035 {
0036 public:
0037 DEFINE_STANDARD_ALLOC
0038
0039 Standard_EXPORT HLRAlgo_EdgeStatus();
0040
0041
0042
0043
0044 Standard_EXPORT HLRAlgo_EdgeStatus(const double Start,
0045 const float TolStart,
0046 const double End,
0047 const float TolEnd);
0048
0049
0050
0051
0052 Standard_EXPORT void Initialize(const double Start,
0053 const float TolStart,
0054 const double End,
0055 const float TolEnd);
0056
0057 void Bounds(double& theStart, float& theTolStart, double& theEnd, float& theTolEnd) const
0058 {
0059 theStart = myStart;
0060 theTolStart = myTolStart;
0061 theEnd = myEnd;
0062 theTolEnd = myTolEnd;
0063 }
0064
0065 Standard_EXPORT int NbVisiblePart() const;
0066
0067 Standard_EXPORT void VisiblePart(const int Index,
0068 double& Start,
0069 float& TolStart,
0070 double& End,
0071 float& TolEnd) const;
0072
0073
0074
0075
0076
0077
0078
0079
0080 Standard_EXPORT void Hide(const double Start,
0081 const float TolStart,
0082 const double End,
0083 const float TolEnd,
0084 const bool OnFace,
0085 const bool OnBoundary);
0086
0087
0088 void HideAll()
0089 {
0090 AllVisible(false);
0091 AllHidden(true);
0092 }
0093
0094
0095 void ShowAll()
0096 {
0097 AllVisible(true);
0098 AllHidden(false);
0099 }
0100
0101 bool AllHidden() const { return myAllHidden; }
0102
0103 void AllHidden(const bool B) { myAllHidden = B; }
0104
0105 bool AllVisible() const { return myAllVisible; }
0106
0107 void AllVisible(const bool B) { myAllVisible = B; }
0108
0109 private:
0110 double myStart;
0111 double myEnd;
0112 float myTolStart;
0113 float myTolEnd;
0114 bool myAllHidden;
0115 bool myAllVisible;
0116 Intrv_Intervals myVisibles;
0117 };
0118
0119 #endif