File indexing completed on 2026-09-27 09:17:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _HLRBRep_InternalAlgo_HeaderFile
0018 #define _HLRBRep_InternalAlgo_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <HLRAlgo_Projector.hxx>
0024 #include <HLRBRep_ShapeBounds.hxx>
0025 #include <NCollection_Sequence.hxx>
0026 #include <TopoDS_Shape.hxx>
0027 #include <BRepTopAdaptor_Tool.hxx>
0028 #include <TopTools_ShapeMapHasher.hxx>
0029 #include <NCollection_DataMap.hxx>
0030 #include <Standard_Transient.hxx>
0031 #include <Standard_Integer.hxx>
0032 class HLRBRep_Data;
0033 class HLRTopoBRep_OutLiner;
0034 class HLRBRep_ShapeBounds;
0035
0036 class HLRBRep_InternalAlgo : public Standard_Transient
0037 {
0038
0039 public:
0040 Standard_EXPORT HLRBRep_InternalAlgo();
0041
0042 Standard_EXPORT HLRBRep_InternalAlgo(const occ::handle<HLRBRep_InternalAlgo>& A);
0043
0044
0045 Standard_EXPORT void Projector(const HLRAlgo_Projector& P);
0046
0047
0048 Standard_EXPORT HLRAlgo_Projector& Projector();
0049
0050
0051 Standard_EXPORT void Update();
0052
0053
0054 Standard_EXPORT void Load(const occ::handle<HLRTopoBRep_OutLiner>& S,
0055 const occ::handle<Standard_Transient>& SData,
0056 const int nbIso = 0);
0057
0058
0059 Standard_EXPORT void Load(const occ::handle<HLRTopoBRep_OutLiner>& S, const int nbIso = 0);
0060
0061
0062
0063 Standard_EXPORT int Index(const occ::handle<HLRTopoBRep_OutLiner>& S) const;
0064
0065
0066 Standard_EXPORT void Remove(const int I);
0067
0068
0069 Standard_EXPORT void ShapeData(const int I, const occ::handle<Standard_Transient>& SData);
0070
0071 Standard_EXPORT NCollection_Sequence<HLRBRep_ShapeBounds>& SeqOfShapeBounds();
0072
0073 Standard_EXPORT int NbShapes() const;
0074
0075 Standard_EXPORT HLRBRep_ShapeBounds& ShapeBounds(const int I);
0076
0077
0078
0079 Standard_EXPORT void InitEdgeStatus();
0080
0081
0082 Standard_EXPORT void Select();
0083
0084
0085 Standard_EXPORT void Select(const int I);
0086
0087
0088 Standard_EXPORT void SelectEdge(const int I);
0089
0090
0091 Standard_EXPORT void SelectFace(const int I);
0092
0093
0094 Standard_EXPORT void ShowAll();
0095
0096
0097 Standard_EXPORT void ShowAll(const int I);
0098
0099
0100 Standard_EXPORT void HideAll();
0101
0102
0103 Standard_EXPORT void HideAll(const int I);
0104
0105
0106
0107 Standard_EXPORT void PartialHide();
0108
0109
0110 Standard_EXPORT void Hide();
0111
0112
0113 Standard_EXPORT void Hide(const int I);
0114
0115
0116 Standard_EXPORT void Hide(const int I, const int J);
0117
0118 Standard_EXPORT void Debug(const bool deb);
0119
0120 Standard_EXPORT bool Debug() const;
0121
0122 Standard_EXPORT occ::handle<HLRBRep_Data> DataStructure() const;
0123
0124 DEFINE_STANDARD_RTTIEXT(HLRBRep_InternalAlgo, Standard_Transient)
0125
0126 private:
0127
0128
0129
0130 Standard_EXPORT void HideSelected(const int I, const bool SideFace);
0131
0132 occ::handle<HLRBRep_Data> myDS;
0133 HLRAlgo_Projector myProj;
0134 NCollection_Sequence<HLRBRep_ShapeBounds> myShapes;
0135 NCollection_DataMap<TopoDS_Shape, BRepTopAdaptor_Tool, TopTools_ShapeMapHasher> myMapOfShapeTool;
0136 bool myDebug;
0137 };
0138
0139 #endif