File indexing completed on 2025-01-18 10:03:50
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
0035
0036 class HLRAlgo_EdgeStatus
0037 {
0038 public:
0039
0040 DEFINE_STANDARD_ALLOC
0041
0042
0043 Standard_EXPORT HLRAlgo_EdgeStatus();
0044
0045
0046
0047
0048 Standard_EXPORT HLRAlgo_EdgeStatus(const Standard_Real Start, const Standard_ShortReal TolStart, const Standard_Real End, const Standard_ShortReal TolEnd);
0049
0050
0051
0052
0053 Standard_EXPORT void Initialize (const Standard_Real Start, const Standard_ShortReal TolStart, const Standard_Real End, const Standard_ShortReal TolEnd);
0054
0055 void Bounds (Standard_Real& theStart, Standard_ShortReal& theTolStart, Standard_Real& theEnd, Standard_ShortReal& theTolEnd) const
0056 {
0057 theStart = myStart;
0058 theTolStart = myTolStart;
0059 theEnd = myEnd;
0060 theTolEnd = myTolEnd;
0061 }
0062
0063 Standard_EXPORT Standard_Integer NbVisiblePart() const;
0064
0065 Standard_EXPORT void VisiblePart (const Standard_Integer Index, Standard_Real& Start, Standard_ShortReal& TolStart, Standard_Real& End, Standard_ShortReal& TolEnd) const;
0066
0067
0068
0069
0070
0071
0072
0073
0074 Standard_EXPORT void Hide (const Standard_Real Start, const Standard_ShortReal TolStart, const Standard_Real End, const Standard_ShortReal TolEnd, const Standard_Boolean OnFace, const Standard_Boolean OnBoundary);
0075
0076
0077 void HideAll()
0078 {
0079 AllVisible(Standard_False);
0080 AllHidden (Standard_True);
0081 }
0082
0083
0084 void ShowAll()
0085 {
0086 AllVisible(Standard_True);
0087 AllHidden (Standard_False);
0088 }
0089
0090 Standard_Boolean AllHidden() const { return myAllHidden; }
0091
0092 void AllHidden (const Standard_Boolean B) { myAllHidden = B; }
0093
0094 Standard_Boolean AllVisible() const { return myAllVisible; }
0095
0096 void AllVisible (const Standard_Boolean B) { myAllVisible = B; }
0097
0098 private:
0099
0100 Standard_Real myStart;
0101 Standard_Real myEnd;
0102 Standard_ShortReal myTolStart;
0103 Standard_ShortReal myTolEnd;
0104 Standard_Boolean myAllHidden;
0105 Standard_Boolean myAllVisible;
0106 Intrv_Intervals myVisibles;
0107
0108 };
0109
0110 #endif