b311480e |
1 | // Created on: 1996-09-23 |
2 | // Created by: Jean Yves LEBEY |
3 | // Copyright (c) 1996-1999 Matra Datavision |
4 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | // |
6 | // The content of this file is subject to the Open CASCADE Technology Public |
7 | // License Version 6.5 (the "License"). You may not use the content of this file |
8 | // except in compliance with the License. Please obtain a copy of the License |
9 | // at http://www.opencascade.org and read it completely before using this file. |
10 | // |
11 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | // |
14 | // The Original Code and all software distributed under the License is |
15 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | // Initial Developer hereby disclaims all such warranties, including without |
17 | // limitation, any warranties of merchantability, fitness for a particular |
18 | // purpose or non-infringement. Please see the License for the specific terms |
19 | // and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | #ifndef _TestTopOpe_HDSDisplayer_HeaderFile |
23 | #define _TestTopOpe_HDSDisplayer_HeaderFile |
24 | |
25 | #include <TopOpeBRepDS_define.hxx> |
26 | |
27 | class TestTopOpe_HDSDisplayer { |
28 | |
29 | public: |
30 | TestTopOpe_HDSDisplayer(); |
31 | TestTopOpe_HDSDisplayer(const Handle(TopOpeBRepDS_HDataStructure)& HDS); |
32 | void Init(); |
33 | void SetCurrentHDS(const Handle(TopOpeBRepDS_HDataStructure)& HDS); |
34 | const Handle(TopOpeBRepDS_HDataStructure)& CurrentHDS() const ; |
35 | const TopOpeBRepDS_DataStructure& CurrentBDS() const ; |
36 | void SetShape1(const TopoDS_Shape& S1); |
37 | void SetShape2(const TopoDS_Shape& S2); |
38 | Standard_Boolean SubShape(const TopoDS_Shape& S,const Standard_Integer I); |
39 | |
40 | void ShapeName(const Standard_Integer,const TopoDS_Shape&,TCollection_AsciiString&) const ; |
41 | void ShapeDisplayName(const Standard_Integer,const TopoDS_Shape&,TCollection_AsciiString&) ; |
42 | TCollection_AsciiString AncestorMark(const TopoDS_Shape&,const TCollection_AsciiString&) ; |
43 | void ShapeDisplayName(const TCollection_AsciiString&,const TopoDS_Shape&,TCollection_AsciiString&) ; |
44 | |
45 | void SectionEdgeName(const Standard_Integer,const TopoDS_Shape&,TCollection_AsciiString&) const ; |
46 | void SectionEdgeDisplayName(const Standard_Integer,const TopoDS_Shape&,TCollection_AsciiString&) ; |
47 | |
48 | void GeometryDisplayName(const Standard_Integer,const TopOpeBRepDS_Kind,TCollection_AsciiString&) ; |
49 | Standard_Boolean ShapeKind(const Standard_Integer IS,const TopAbs_ShapeEnum TS) const ; |
50 | |
51 | private: |
52 | Handle(TopOpeBRepDS_HDataStructure) myHDS; |
53 | TopoDS_Shape myS1,myS2; |
54 | TopTools_IndexedMapOfShape *myPMap1, *myPMap2; |
55 | }; |
56 | |
57 | #endif |