gp_Pnt SketcherPrs_SensitivePoint::Point() const
{
- gp_Pnt aPoint(0, 0, 0);
const Handle(SelectMgr_EntityOwner)& anOwner =
Handle(SelectMgr_EntityOwner)::DownCast(OwnerId());
- if (!anOwner.IsNull()) {
- const Handle(SketcherPrs_SymbolPrs)& aSymbPrs =
- Handle(SketcherPrs_SymbolPrs)::DownCast(anOwner->Selectable());
- aPoint = aSymbPrs->pointsArray()->Vertice(myId);
- }
- return aPoint;
+ const Handle(SketcherPrs_SymbolPrs)& aSymbPrs =
+ Handle(SketcherPrs_SymbolPrs)::DownCast(anOwner->Selectable());
+ return aSymbPrs->pointsArray()->Vertice(myId);
}
Handle(Select3D_SensitiveEntity) SketcherPrs_SensitivePoint::GetConnected()
{
return 1;
}
+
+void SketcherPrs_SensitivePoint::Clear()
+{
+ return;
+}
//! Returns bounding box of the point. If location
//! transformation is set, it will be applied
Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
-
+
+ Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(SketcherPrs_SensitivePoint)