1 // Created on: 2013-07-15
2 // Created by: Anton POLETAEV
3 // Copyright (c) 2013-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 _Graphic3d_SequenceOfHClipPlane_HeaderFile
17 #define _Graphic3d_SequenceOfHClipPlane_HeaderFile
19 #include <NCollection_Sequence.hxx>
20 #include <NCollection_Shared.hxx>
21 #include <Graphic3d_ClipPlane.hxx>
23 //! Class defining the sequence of clipping planes.
24 class Graphic3d_SequenceOfHClipPlane : public Standard_Transient, public NCollection_Sequence<Handle(Graphic3d_ClipPlane)>
26 DEFINE_STANDARD_RTTI_INLINE(Graphic3d_SequenceOfHClipPlane,Standard_Transient)
29 DEFINE_NCOLLECTION_ALLOC
31 //! Empty constructor.
32 Graphic3d_SequenceOfHClipPlane() : myToOverrideGlobal (Standard_False) {}
34 //! Return true if local properties should override global properties.
35 Standard_Boolean ToOverrideGlobal() const { return myToOverrideGlobal; }
37 //! Setup flag defining if local properties should override global properties.
38 void SetOverrideGlobal (const Standard_Boolean theToOverride) { myToOverrideGlobal = theToOverride; }
42 Standard_Boolean myToOverrideGlobal;
46 DEFINE_STANDARD_HANDLE(Graphic3d_SequenceOfHClipPlane, Standard_Transient)
48 #endif // _Graphic3d_SequenceOfHClipPlane_HeaderFile