0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / IGESControl / IGESControl_Controller.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-03-15
2// Created by: Christian CAILLET
3// Copyright (c) 1995-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IGESControl_Controller_HeaderFile
18#define _IGESControl_Controller_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Boolean.hxx>
24#include <XSControl_Controller.hxx>
25#include <IFSelect_ReturnStatus.hxx>
26#include <Standard_Integer.hxx>
27class Interface_InterfaceModel;
28class Transfer_ActorOfTransientProcess;
29class TopoDS_Shape;
30class Transfer_FinderProcess;
31class XSControl_WorkSession;
32
33
34class IGESControl_Controller;
35DEFINE_STANDARD_HANDLE(IGESControl_Controller, XSControl_Controller)
36
37//! Controller for IGES-5.1
38class IGESControl_Controller : public XSControl_Controller
39{
40
41public:
42
43
44 //! Initializes the use of IGES Norm (the first time) and returns
45 //! a Controller for IGES-5.1
46 //! If <modefnes> is True, sets it to internal FNES format
47 Standard_EXPORT IGESControl_Controller(const Standard_Boolean modefnes = Standard_False);
48
49 //! Creates a new empty Model ready to receive data of the Norm.
50 //! It is taken from IGES Template Model
51 Standard_EXPORT Handle(Interface_InterfaceModel) NewModel() const;
52
53 //! Returns the Actor for Read attached to the pair (norm,appli)
54 //! It is an Actor from IGESToBRep, adapted from an IGESModel :
55 //! Unit, tolerances
56 Standard_EXPORT Handle(Transfer_ActorOfTransientProcess) ActorRead (const Handle(Interface_InterfaceModel)& model) const;
57
58 //! Takes one Shape and transfers it to the InterfaceModel
59 //! (already created by NewModel for instance)
60 //! <modetrans> is to be interpreted by each kind of XstepAdaptor
61 //! Returns a status : 0 OK 1 No result 2 Fail -1 bad modeshape
62 //! -2 bad model (requires an IGESModel)
63 //! modeshape : 0 groupe of face (version < 5.1)
64 //! 1 BREP-version 5.1 of IGES
65 Standard_EXPORT virtual IFSelect_ReturnStatus TransferWriteShape (const TopoDS_Shape& shape, const Handle(Transfer_FinderProcess)& FP, const Handle(Interface_InterfaceModel)& model, const Standard_Integer modetrans = 0) const Standard_OVERRIDE;
66
67 //! Standard Initialisation. It creates a Controller for IGES and
68 //! records it to various names, available to select it later
69 //! Returns True when done, False if could not be done
70 //! Also, it creates and records an Adaptor for FNES
71 Standard_EXPORT static Standard_Boolean Init();
72
73 Standard_EXPORT virtual void Customise (Handle(XSControl_WorkSession)& WS) Standard_OVERRIDE;
74
75
76
77
78 DEFINE_STANDARD_RTTI(IGESControl_Controller,XSControl_Controller)
79
80protected:
81
82
83
84
85private:
86
87
88 Standard_Boolean themode;
89
90
91};
92
93
94
95
96
97
98
99#endif // _IGESControl_Controller_HeaderFile