0025748: Parallel version of progress indicator
[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
79104795 51 Standard_EXPORT Handle(Interface_InterfaceModel) NewModel() const Standard_OVERRIDE;
42cf5bc1 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
79104795 56 Standard_EXPORT Handle(Transfer_ActorOfTransientProcess) ActorRead (const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
42cf5bc1 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
7e785937 65 Standard_EXPORT virtual IFSelect_ReturnStatus TransferWriteShape
66 (const TopoDS_Shape& shape,
67 const Handle(Transfer_FinderProcess)& FP,
68 const Handle(Interface_InterfaceModel)& model,
69 const Standard_Integer modetrans = 0,
70 const Message_ProgressRange& theProgress = Message_ProgressRange()) const Standard_OVERRIDE;
42cf5bc1 71
72 //! Standard Initialisation. It creates a Controller for IGES and
73 //! records it to various names, available to select it later
74 //! Returns True when done, False if could not be done
75 //! Also, it creates and records an Adaptor for FNES
76 Standard_EXPORT static Standard_Boolean Init();
77
78 Standard_EXPORT virtual void Customise (Handle(XSControl_WorkSession)& WS) Standard_OVERRIDE;
79
80
81
82
92efcf78 83 DEFINE_STANDARD_RTTIEXT(IGESControl_Controller,XSControl_Controller)
42cf5bc1 84
85protected:
86
87
88
89
90private:
91
92
93 Standard_Boolean themode;
94
95
96};
97
98
99
100
101
102
103
104#endif // _IGESControl_Controller_HeaderFile