1 // Created by: DAUTRY Philippe
2 // Copyright (c) 1997-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _TDF_ClosureMode_HeaderFile
17 #define _TDF_ClosureMode_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <Standard_Integer.hxx>
24 #include <Standard_Boolean.hxx>
27 //! This class provides options closure management.
35 //! Creates an objet with all modes set to <aMode>.
36 Standard_EXPORT TDF_ClosureMode(const Standard_Boolean aMode = Standard_True);
38 //! Sets the mode "Descendants" to <aStatus>.
40 //! "Descendants" mode means we add to the data set
41 //! the children labels of each USER GIVEN label. We
42 //! do not do that with the labels found applying
43 //! UpToFirstLevel option.
44 void Descendants (const Standard_Boolean aStatus);
46 //! Returns true if the mode "Descendants" is set.
47 Standard_Boolean Descendants() const;
49 //! Sets the mode "References" to <aStatus>.
51 //! "References" mode means we add to the data set
52 //! the descendants of an attribute, by calling the
53 //! attribute method Descendants().
54 void References (const Standard_Boolean aStatus);
56 //! Returns true if the mode "References" is set.
57 Standard_Boolean References() const;
72 Standard_Integer myFlags;
78 #include <TDF_ClosureMode.lxx>
84 #endif // _TDF_ClosureMode_HeaderFile