0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / IGESSelect / IGESSelect_SetVersion5.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-06-01
2// Created by: Christian CAILLET
3// Copyright (c) 1994-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 _IGESSelect_SetVersion5_HeaderFile
18#define _IGESSelect_SetVersion5_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <IGESSelect_ModelModifier.hxx>
24class IFSelect_ContextModif;
25class IGESData_IGESModel;
26class Interface_CopyTool;
27class TCollection_AsciiString;
28
29
30class IGESSelect_SetVersion5;
31DEFINE_STANDARD_HANDLE(IGESSelect_SetVersion5, IGESSelect_ModelModifier)
32
33//! Sets IGES Version (coded in global parameter 23) to be at least
34//! IGES 5.1 . If it is older, it is set to IGES 5.1, and
35//! LastChangeDate (new Global n0 25) is added (current time)
36//! Else, it does nothing (i.e. changes neither IGES Version nor
37//! LastChangeDate)
38class IGESSelect_SetVersion5 : public IGESSelect_ModelModifier
39{
40
41public:
42
43
44 //! Creates an SetVersion5, which uses the system Date for Last
45 //! Change Date
46 Standard_EXPORT IGESSelect_SetVersion5();
47
48 //! Specific action : only <target> is used : IGES Version (coded)
49 //! is upgraded to 5.1 if it is older, and it this case the new
50 //! global parameter 25 (LastChangeDate) is set to current time
79104795 51 Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const Standard_OVERRIDE;
42cf5bc1 52
53 //! Returns a text which is
54 //! "Update IGES Version to 5.1"
79104795 55 Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
42cf5bc1 56
57
58
59
92efcf78 60 DEFINE_STANDARD_RTTIEXT(IGESSelect_SetVersion5,IGESSelect_ModelModifier)
42cf5bc1 61
62protected:
63
64
65
66
67private:
68
69
70
71
72};
73
74
75
76
77
78
79
80#endif // _IGESSelect_SetVersion5_HeaderFile