0024750: Replace instantiations of TCollection generic classes by NCollection templat...
[occt.git] / src / Select3D / Select3D_SensitiveCurve.hxx
CommitLineData
f751596e 1// Created on: 1995-03-13
2// Created by: Robert COUBLANC
3// Copyright (c) 1995-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 _Select3D_SensitiveCurve_HeaderFile
18#define _Select3D_SensitiveCurve_HeaderFile
19
20#include <Standard.hxx>
ec357c5c 21#include <Standard_Type.hxx>
f751596e 22#include <Standard_Type.hxx>
23
24#include <Geom_Curve.hxx>
25#include <Handle_Geom_Curve.hxx>
26#include <Select3D_SensitivePoly.hxx>
27#include <Handle_SelectBasics_EntityOwner.hxx>
b7c077b9 28#include <TColgp_HArray1OfPnt.hxx>
f751596e 29#include <Standard_Boolean.hxx>
30#include <SelectMgr_SelectingVolumeManager.hxx>
31#include <Standard_Real.hxx>
32#include <Standard_OStream.hxx>
33
34class Geom_Curve;
35class Standard_ConstructionError;
36class Standard_OutOfRange;
37class SelectBasics_EntityOwner;
f751596e 38class Select3D_SensitiveEntity;
39class TopLoc_Location;
40
41
42//! A framework to define a sensitive 3D curve.
43//! In some cases this class can raise Standard_ConstructionError and
44//! Standard_OutOfRange exceptions. For more details see Select3D_SensitivePoly.
45class Select3D_SensitiveCurve : public Select3D_SensitivePoly
46{
47public:
48
49 //! Constructs a sensitive curve object defined by the
50 //! owner theOwnerId, the curve theCurve, and the
51 //! maximum number of points on the curve: theNbPnts.
52 Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
53 const Handle(Geom_Curve)& theCurve,
54 const Standard_Integer theNbPnts = 17);
55
56 //! Constructs a sensitive curve object defined by the
57 //! owner theOwnerId and the set of points ThePoints.
58 Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
59 const Handle(TColgp_HArray1OfPnt)& thePoints);
60
61 //! Creation of Sensitive Curve from Points.
62 //! Warning : This Method should disappear in the next version...
63 Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
64 const TColgp_Array1OfPnt& thePoints);
65
f751596e 66 //! Returns the copy of this
67 Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
68
69public:
70
ec357c5c 71 DEFINE_STANDARD_RTTI(Select3D_SensitiveCurve, Select3D_SensitivePoly)
f751596e 72
73private:
74
75 void loadPoints (const Handle(Geom_Curve)& aCurve,
76 const Standard_Integer NbPoints);
77
78private:
79
80 Handle_Geom_Curve myCurve; //!< Curve points
81};
82
83DEFINE_STANDARD_HANDLE(Select3D_SensitiveCurve, Select3D_SensitivePoly)
84
85#endif // _Select3D_SensitiveCurve_HeaderFile