0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / IGESSelect / IGESSelect_SelectSubordinate.hxx
CommitLineData
42cf5bc1 1// Created on: 1996-10-11
2// Created by: Christian CAILLET
3// Copyright (c) 1996-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_SelectSubordinate_HeaderFile
18#define _IGESSelect_SelectSubordinate_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Integer.hxx>
24#include <IFSelect_SelectExtract.hxx>
25#include <Standard_Boolean.hxx>
26class Standard_Transient;
27class Interface_InterfaceModel;
28class TCollection_AsciiString;
29
9fd2d2c3 30// resolve name collisions with X11 headers
31#ifdef Status
32 #undef Status
33#endif
42cf5bc1 34
35class IGESSelect_SelectSubordinate;
36DEFINE_STANDARD_HANDLE(IGESSelect_SelectSubordinate, IFSelect_SelectExtract)
37
38//! This selections uses Subordinate Status as sort criterium
39//! It is an integer number which can be :
40//! 0 Independant
41//! 1 Physically Dependant
42//! 2 Logically Dependant
43//! 3 Both (recorded)
44//! + to sort :
45//! 4 : 1 or 3 -> at least Physically
46//! 5 : 2 or 3 -> at least Logically
47//! 6 : 1 or 2 or 3 -> any kind of dependance
48//! (corresponds to 0 reversed)
49class IGESSelect_SelectSubordinate : public IFSelect_SelectExtract
50{
51
52public:
53
54
55 //! Creates a SelectSubordinate with a status to be sorted
56 Standard_EXPORT IGESSelect_SelectSubordinate(const Standard_Integer status);
57
58 //! Returns the status used for sorting
59 Standard_EXPORT Standard_Integer Status() const;
60
61 //! Returns True if <ent> is an IGES Entity with Subordinate
62 //! Status matching the criterium
79104795 63 Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
42cf5bc1 64
65 //! Returns the Selection criterium : "IGES Entity, Independant"
66 //! etc...
79104795 67 Standard_EXPORT TCollection_AsciiString ExtractLabel() const Standard_OVERRIDE;
42cf5bc1 68
69
70
71
92efcf78 72 DEFINE_STANDARD_RTTIEXT(IGESSelect_SelectSubordinate,IFSelect_SelectExtract)
42cf5bc1 73
74protected:
75
76
77
78
79private:
80
81
82 Standard_Integer thestatus;
83
84
85};
86
87
88
89
90
91
92
93#endif // _IGESSelect_SelectSubordinate_HeaderFile