1 // Created on: 2013-12-20
2 // Created by: Denis BOGOLEPOV
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 _BVH_Object_Header
17 #define _BVH_Object_Header
19 #include <BVH_Box.hxx>
20 #include <BVH_Properties.hxx>
22 #include <NCollection_Handle.hxx>
24 //! Abstract geometric object.
25 template<class T, int N>
30 //! Creates new abstract geometric object.
33 //! Releases resources of geometric object.
34 virtual ~BVH_Object() = 0;
38 //! Returns AABB of geometric object.
39 virtual BVH_Box<T, N> Box() const = 0;
41 //! Returns properties of geometric object.
42 virtual const NCollection_Handle<BVH_Properties>& Properties() const;
44 //! Sets properties of geometric object.
45 virtual void SetProperties (const NCollection_Handle<BVH_Properties>& theProperties);
47 //! Marks object state as outdated.
48 virtual void MarkDirty();
52 Standard_Boolean myIsDirty; //!< Marks that internal object state need to be updated
53 NCollection_Handle<BVH_Properties> myProperties; //!< Generic properties assigned to the object
57 #include <BVH_Object.lxx>
59 #endif // _BVH_Object_Header