7fd59977 |
1 | #include <STEPEdit.ixx> |
2 | //#include <StepData_FileProtocol.hxx> |
3 | #include <StepAP214.hxx> |
4 | //#include <HeaderSection.hxx> |
5 | |
6 | #include <APIHeaderSection_MakeHeader.hxx> |
7 | |
8 | #include <StepSelect_StepType.hxx> |
9 | #include <IFSelect_SelectSignature.hxx> |
10 | #include <IFSelect_SelectModelEntities.hxx> |
11 | #include <IFSelect_SelectModelRoots.hxx> |
12 | |
13 | |
14 | Handle(Interface_Protocol) STEPEdit::Protocol () |
15 | { |
16 | /* |
17 | static Handle(StepData_FileProtocol) proto; |
18 | if (!proto.IsNull()) return proto; |
19 | proto = new StepData_FileProtocol; |
20 | proto->Add (StepAP214::Protocol()); |
21 | proto->Add (HeaderSection::Protocol()); |
22 | return proto; |
23 | */ |
24 | return StepAP214::Protocol(); |
25 | } |
26 | |
27 | Handle(StepData_StepModel) STEPEdit::NewModel () |
28 | { |
29 | APIHeaderSection_MakeHeader head; |
30 | return head.NewModel(STEPEdit::Protocol()); |
31 | } |
32 | |
33 | Handle(IFSelect_Signature) STEPEdit::SignType () |
34 | { |
35 | static Handle(StepSelect_StepType) sty; |
36 | if (!sty.IsNull()) return sty; |
37 | sty = new StepSelect_StepType; |
38 | sty->SetProtocol (STEPEdit::Protocol()); |
39 | return sty; |
40 | } |
41 | |
42 | Handle(IFSelect_SelectSignature) STEPEdit::NewSelectSDR () |
43 | { |
44 | Handle(IFSelect_SelectSignature) sel = new IFSelect_SelectSignature |
45 | (STEPEdit::SignType(),"SHAPE_DEFINITION_REPRESENTATION"); |
46 | sel->SetInput (new IFSelect_SelectModelRoots); |
47 | return sel; |
48 | } |
49 | |
50 | Handle(IFSelect_SelectSignature) STEPEdit::NewSelectPlacedItem () |
51 | { |
52 | Handle(IFSelect_SelectSignature) sel = new IFSelect_SelectSignature |
53 | (STEPEdit::SignType(),"MAPPED_ITEM|CONTEXT_DEPENDENT_SHAPE_REPRESENTATION",Standard_False); |
54 | sel->SetInput (new IFSelect_SelectModelEntities); |
55 | return sel; |
56 | } |
57 | |
58 | Handle(IFSelect_SelectSignature) STEPEdit::NewSelectShapeRepr () |
59 | { |
60 | Handle(IFSelect_SelectSignature) sel = new IFSelect_SelectSignature |
61 | (STEPEdit::SignType(),"SHAPE_REPRESENTATION",Standard_False); |
62 | // REPRESENTATION_RELATIONSHIP passe par CONTEXT_DEPENDENT_SHAPE_REPRESENTATION |
63 | sel->SetInput (new IFSelect_SelectModelEntities); |
64 | return sel; |
65 | } |