1 // Created on: 2014-08-15
2 // Created by: Varvara POSKONINA
3 // Copyright (c) 2005-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 _Select3D_ISensitivePointSet_HeaderFile
17 #define _Select3D_ISensitivePointSet_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Boolean.hxx>
21 #include <Standard_OStream.hxx>
22 #include <Standard_Real.hxx>
24 #include <Select3D_BndBox3d.hxx>
25 #include <Select3D_SensitiveEntity.hxx>
26 #include <SelectBasics_EntityOwner.hxx>
27 #include <SelectBasics_PickResult.hxx>
28 #include <SelectBasics_SelectingVolumeManager.hxx>
30 #include <Handle_SelectBasics_EntityOwner.hxx>
31 #include <Handle_TColgp_HArray1OfPnt.hxx>
34 class Standard_ConstructionError;
35 class Standard_OutOfRange;
36 class TColgp_Array1OfPnt;
37 class TColgp_HArray1OfPnt;
38 class TColgp_Array1OfPnt2d;
39 class TopLoc_Location;
41 //! Interface class to unify the work with both internal and boundary
42 //! sensitive sets of points.
43 class Select3D_ISensitivePointSet
47 //! Checks whether the point set overlaps current selecting volume
48 virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
49 SelectBasics_PickResult& thePickResult) = 0;
51 //! Initializes the given array theHArrayOfPnt by 3d coordinates
52 //! of vertices of the point set
53 virtual void GetPoints (Handle(TColgp_HArray1OfPnt)& theHArrayOfPnt) = 0;
55 //! Returns bounding box of the point set. If location
56 //! transformation is set, it will be applied
57 virtual Select3D_BndBox3d BoundingBox() = 0;
59 //! Returns center of the point set. If location
60 //! transformation is set, it will be applied
61 virtual gp_Pnt CenterOfGeometry() const = 0;
63 //! Builds BVH tree for the point set
64 virtual void BVH() = 0;
66 //! Returns the amount of points in set
67 virtual Standard_Integer NbSubElements() = 0;
70 #endif // _Select3D_ISensitivePointSet_HeaderFile