mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
SelectBasics_EntityOwner has been merged into SelectMgr_EntityOwner. Unused property SelectMgr_EntityOwner::ResetLocation() has been removed. SelectBasics package has been moved from TKService to TKV3d. SelectBasics_SensitiveEntity has been merged into Select3D_SensitiveEntity.
69 lines
2.8 KiB
C++
69 lines
2.8 KiB
C++
// Created on: 1995-03-13
|
|
// Created by: Robert COUBLANC
|
|
// Copyright (c) 1995-1999 Matra Datavision
|
|
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _Select3D_SensitiveCurve_HeaderFile
|
|
#define _Select3D_SensitiveCurve_HeaderFile
|
|
|
|
#include <Geom_Curve.hxx>
|
|
#include <Select3D_SensitivePoly.hxx>
|
|
#include <TColgp_HArray1OfPnt.hxx>
|
|
#include <SelectMgr_SelectingVolumeManager.hxx>
|
|
|
|
class Standard_ConstructionError;
|
|
class Standard_OutOfRange;
|
|
|
|
//! A framework to define a sensitive 3D curve.
|
|
//! In some cases this class can raise Standard_ConstructionError and
|
|
//! Standard_OutOfRange exceptions. For more details see Select3D_SensitivePoly.
|
|
class Select3D_SensitiveCurve : public Select3D_SensitivePoly
|
|
{
|
|
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveCurve, Select3D_SensitivePoly)
|
|
public:
|
|
|
|
//! Constructs a sensitive curve object defined by the
|
|
//! owner theOwnerId, the curve theCurve, and the
|
|
//! maximum number of points on the curve: theNbPnts.
|
|
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
|
const Handle(Geom_Curve)& theCurve,
|
|
const Standard_Integer theNbPnts = 17);
|
|
|
|
//! Constructs a sensitive curve object defined by the
|
|
//! owner theOwnerId and the set of points ThePoints.
|
|
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
|
const Handle(TColgp_HArray1OfPnt)& thePoints);
|
|
|
|
//! Creation of Sensitive Curve from Points.
|
|
//! Warning : This Method should disappear in the next version...
|
|
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
|
const TColgp_Array1OfPnt& thePoints);
|
|
|
|
//! Returns the copy of this
|
|
Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
|
|
|
|
private:
|
|
|
|
void loadPoints (const Handle(Geom_Curve)& aCurve,
|
|
const Standard_Integer NbPoints);
|
|
|
|
private:
|
|
|
|
Handle(Geom_Curve) myCurve; //!< Curve points
|
|
};
|
|
|
|
DEFINE_STANDARD_HANDLE(Select3D_SensitiveCurve, Select3D_SensitivePoly)
|
|
|
|
#endif // _Select3D_SensitiveCurve_HeaderFile
|