1 // Created on: 1995-03-15
2 // Created by: Robert COUBLANC
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <StdSelect_ViewerSelector3d.hxx>
18 #include <StdSelect.hxx>
19 #include <SelectBasics_SensitiveEntity.hxx>
20 #include <Graphic3d_AspectLine3d.hxx>
23 #include <gp_Pnt2d.hxx>
26 #include <gp_GTrsf.hxx>
28 #include <Select3D_SensitiveEntity.hxx>
29 #include <Graphic3d_ArrayOfPolylines.hxx>
30 #include <Graphic3d_Group.hxx>
31 #include <Graphic3d_SequenceOfHClipPlane.hxx>
32 #include <Graphic3d_Structure.hxx>
33 #include <SelectMgr_SelectableObject.hxx>
34 #include <TColgp_HArray1OfPnt.hxx>
35 #include <TColgp_Array1OfPnt.hxx>
36 #include <TColgp_Array1OfPnt2d.hxx>
37 #include <TColgp_HArray1OfPnt2d.hxx>
38 #include <Select3D_SensitiveCurve.hxx>
39 #include <Select3D_SensitiveSegment.hxx>
40 #include <Select3D_SensitiveFace.hxx>
41 #include <Select3D_SensitiveCircle.hxx>
42 #include <Select3D_SensitivePoint.hxx>
43 #include <Select3D_SensitiveTriangulation.hxx>
44 #include <Select3D_SensitiveTriangle.hxx>
45 #include <Select3D_SensitiveWire.hxx>
46 #include <Select3D_SensitiveBox.hxx>
47 #include <SelectMgr_Selection.hxx>
48 #include <SelectMgr_EntityOwner.hxx>
50 #include <Aspect_Grid.hxx>
51 #include <Aspect_TypeOfMarker.hxx>
52 #include <Aspect_Window.hxx>
53 #include <Graphic3d_AspectMarker3d.hxx>
54 #include <Graphic3d_ArrayOfPoints.hxx>
55 #include <Poly_Connect.hxx>
56 #include <TColStd_HArray1OfInteger.hxx>
58 #include <Poly_Array1OfTriangle.hxx>
59 #include <Poly_Triangulation.hxx>
60 #include <OSD_Environment.hxx>
62 #include <V3d_View.hxx>
63 #include <V3d_Viewer.hxx>
64 #include <TColgp_SequenceOfPnt.hxx>
66 #include <OSD_Timer.hxx>
68 IMPLEMENT_STANDARD_HANDLE (StdSelect_ViewerSelector3d, SelectMgr_ViewerSelector)
69 IMPLEMENT_STANDARD_RTTIEXT(StdSelect_ViewerSelector3d, SelectMgr_ViewerSelector)
71 static Standard_Integer StdSel_NumberOfFreeEdges (const Handle(Poly_Triangulation)& Trg)
73 Standard_Integer nFree = 0;
75 Standard_Integer t[3];
76 Standard_Integer i, j;
77 for (i = 1; i <= Trg->NbTriangles(); i++)
79 pc.Triangles (i, t[0], t[1], t[2]);
80 for (j = 0; j < 3; j++)
81 if (t[j] == 0) nFree++;
86 //=======================================================================
87 // Function : Constructor
89 //=======================================================================
90 StdSelect_ViewerSelector3d::StdSelect_ViewerSelector3d() {}
92 //=======================================================================
93 // Function: SetPixelTolerance
95 //=======================================================================
96 void StdSelect_ViewerSelector3d::SetPixelTolerance (const Standard_Real theTolerance)
98 if (mytolerance != theTolerance)
100 mytolerance = theTolerance;
101 myToUpdateTolerance = Standard_True;
105 //=======================================================================
108 //=======================================================================
109 void StdSelect_ViewerSelector3d::Pick (const Standard_Integer theXPix,
110 const Standard_Integer theYPix,
111 const Handle(V3d_View)& theView)
113 SetClipping (theView->GetClipPlanes());
115 if(myToUpdateTolerance)
117 mySelectingVolumeMgr.SetPixelTolerance (mytolerance);
118 myToUpdateTolerance = Standard_False;
121 mySelectingVolumeMgr.SetCamera (theView->Camera());
122 mySelectingVolumeMgr.SetActiveSelectionType (SelectMgr_SelectingVolumeManager::Point);
123 Standard_Integer aWidth = 0, aHeight = 0;
124 theView->Window()->Size (aWidth, aHeight);
125 mySelectingVolumeMgr.SetWindowSize (aWidth, aHeight);
126 gp_Pnt2d aMousePos (static_cast<Standard_Real> (theXPix),
127 static_cast<Standard_Real> (theYPix));
128 mySelectingVolumeMgr.BuildSelectingVolume (aMousePos);
130 TraverseSensitives();
133 //=======================================================================
136 //=======================================================================
137 void StdSelect_ViewerSelector3d::Pick (const Standard_Integer theXPMin,
138 const Standard_Integer theYPMin,
139 const Standard_Integer theXPMax,
140 const Standard_Integer theYPMax,
141 const Handle(V3d_View)& theView)
143 mySelectingVolumeMgr.SetCamera (theView->Camera());
144 mySelectingVolumeMgr.SetActiveSelectionType (SelectMgr_SelectingVolumeManager::Box);
145 Standard_Integer aWidth = 0, aHeight = 0;
146 theView->Window()->Size (aWidth, aHeight);
147 mySelectingVolumeMgr.SetWindowSize (aWidth, aHeight);
148 gp_Pnt2d aMinMousePos (static_cast<Standard_Real> (theXPMin),
149 static_cast<Standard_Real> (theYPMin));
150 gp_Pnt2d aMaxMousePos (static_cast<Standard_Real> (theXPMax),
151 static_cast<Standard_Real> (theYPMax));
152 mySelectingVolumeMgr.BuildSelectingVolume (aMinMousePos,
155 TraverseSensitives();
158 //=======================================================================
160 // Purpose : Selection using a polyline
161 //=======================================================================
162 void StdSelect_ViewerSelector3d::Pick (const TColgp_Array1OfPnt2d& thePolyline,
163 const Handle(V3d_View)& theView)
165 mySelectingVolumeMgr.SetCamera (theView->Camera());
166 mySelectingVolumeMgr.SetActiveSelectionType (SelectMgr_SelectingVolumeManager::Polyline);
167 Standard_Integer aWidth = 0, aHeight = 0;
168 theView->Window()->Size (aWidth, aHeight);
169 mySelectingVolumeMgr.SetWindowSize (aWidth, aHeight);
170 mySelectingVolumeMgr.BuildSelectingVolume (thePolyline);
172 TraverseSensitives();
175 //=======================================================================
176 // Function: DisplaySensitive.
177 // Purpose : Display active primitives.
178 //=======================================================================
179 void StdSelect_ViewerSelector3d::DisplaySensitive (const Handle(V3d_View)& theView)
181 // Preparation des structures
182 if (mystruct.IsNull())
184 mystruct = new Graphic3d_Structure (theView->Viewer()->Viewer());
187 if (mysensgroup.IsNull())
189 mysensgroup = mystruct->NewGroup();
192 Quantity_Color aColor (Quantity_NOC_INDIANRED3);
193 Handle(Graphic3d_AspectMarker3d) aMarkerAspect =
194 new Graphic3d_AspectMarker3d (Aspect_TOM_O_PLUS, aColor, 2.0);
196 mysensgroup->SetPrimitivesAspect (aMarkerAspect);
197 mysensgroup->SetPrimitivesAspect (
198 new Graphic3d_AspectLine3d (Quantity_NOC_GRAY40, Aspect_TOL_SOLID, 2.0));
200 for (Standard_Integer anObjectIdx = 0; anObjectIdx <= mySelectableObjects->Size(); ++anObjectIdx)
202 const Handle (SelectMgr_SelectableObject)& anObject = mySelectableObjects->GetObjectById (anObjectIdx);
203 for (anObject->Init(); anObject->More(); anObject->Next())
205 if (anObject->CurrentSelection()->GetSelectionState() == SelectMgr_SOS_Activated)
207 ComputeSensitivePrs (anObject->CurrentSelection(), anObject->Transformation());
212 mysensgroup->Structure()->SetDisplayPriority (10);
218 //=======================================================================
219 // Function: ClearSensitive
221 //=======================================================================
222 void StdSelect_ViewerSelector3d::ClearSensitive (const Handle(V3d_View)& theView)
224 if (mysensgroup.IsNull())
229 mysensgroup->Clear();
231 if (theView.IsNull())
239 //=======================================================================
240 //function : DisplaySenstive
242 //=======================================================================
243 void StdSelect_ViewerSelector3d::DisplaySensitive (const Handle(SelectMgr_Selection)& theSel,
244 const gp_Trsf& theTrsf,
245 const Handle(V3d_View)& theView,
246 const Standard_Boolean theToClearOthers)
248 if (mystruct.IsNull())
250 mystruct = new Graphic3d_Structure (theView->Viewer()->Viewer());
253 if (mysensgroup.IsNull())
255 mysensgroup = mystruct->NewGroup();
256 Quantity_Color aColor (Quantity_NOC_INDIANRED3);
257 Handle(Graphic3d_AspectMarker3d) aMarkerAspect =
258 new Graphic3d_AspectMarker3d (Aspect_TOM_O_PLUS, aColor, 2.0);
260 mysensgroup-> SetPrimitivesAspect (aMarkerAspect);
261 mysensgroup->SetPrimitivesAspect (
262 new Graphic3d_AspectLine3d (Quantity_NOC_GRAY40, Aspect_TOL_SOLID, 2.0));
265 if (theToClearOthers)
267 mysensgroup->Clear();
270 ComputeSensitivePrs (theSel, theTrsf);
272 mystruct->SetDisplayPriority (10);
278 //=======================================================================
279 //function : ComputeSensitivePrs
281 //=======================================================================
282 void StdSelect_ViewerSelector3d::ComputeSensitivePrs (const Handle(SelectMgr_Selection)& theSel,
283 const gp_Trsf& theLoc)
285 TColgp_SequenceOfPnt aSeqLines, aSeqFree;
286 TColStd_SequenceOfInteger aSeqBnds;
288 for (theSel->Init(); theSel->More(); theSel->Next())
290 Handle(Select3D_SensitiveEntity) Ent =
291 Handle(Select3D_SensitiveEntity)::DownCast(theSel->Sensitive()->BaseSensitive());
292 const Standard_Boolean hasloc = theLoc.Form() != gp_Identity;
298 if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveBox))
300 const Bnd_Box& B = Handle(Select3D_SensitiveBox)::DownCast (Ent)->Box();
301 Standard_Real xmin, ymin, zmin, xmax, ymax, zmax;
302 B.Get (xmin, ymin, zmin, xmax, ymax, zmax);
304 gp_Pnt theboxpoint[8] =
306 gp_Pnt(xmin,ymin,zmin),
307 gp_Pnt(xmax,ymin,zmin),
308 gp_Pnt(xmax,ymax,zmin),
309 gp_Pnt(xmin,ymax,zmin),
310 gp_Pnt(xmin,ymin,zmax),
311 gp_Pnt(xmax,ymin,zmax),
312 gp_Pnt(xmax,ymax,zmax),
313 gp_Pnt(xmin,ymax,zmax)
317 for (i = 0; i <= 7; i++)
318 theboxpoint[i].Transform (theLoc);
322 for (i = 0; i < 4; i++)
323 aSeqLines.Append(theboxpoint[i]);
324 aSeqLines.Append(theboxpoint[0]);
327 for (i = 4; i < 8; i++)
328 aSeqLines.Append(theboxpoint[i]);
329 aSeqLines.Append(theboxpoint[4]);
331 for (i = 0; i < 4; i++)
334 aSeqLines.Append(theboxpoint[i]);
335 aSeqLines.Append(theboxpoint[i+4]);
341 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveFace))
343 Handle(Select3D_SensitiveFace) aFace = Handle(Select3D_SensitiveFace)::DownCast(Ent);
344 Handle(TColgp_HArray1OfPnt) TheHPts;
345 aFace->GetPoints(TheHPts);
346 const TColgp_Array1OfPnt& ThePts = TheHPts->Array1();
348 aSeqBnds.Append(ThePts.Length());
349 for (Standard_Integer I = ThePts.Lower(); I <= ThePts.Upper(); I++)
352 aSeqLines.Append(ThePts(I).Transformed (theLoc));
354 aSeqLines.Append(ThePts(I));
360 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveCurve))
362 Handle(Select3D_SensitiveCurve) aCurve = Handle(Select3D_SensitiveCurve)::DownCast(Ent);
363 Handle(TColgp_HArray1OfPnt) TheHPts;
364 aCurve->Points3D(TheHPts);
365 const TColgp_Array1OfPnt& ThePts = TheHPts->Array1();
367 aSeqBnds.Append(ThePts.Length());
368 for (Standard_Integer I = ThePts.Lower(); I <= ThePts.Upper(); I++)
371 aSeqLines.Append(ThePts(I).Transformed (theLoc));
373 aSeqLines.Append(ThePts(I));
379 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveWire))
381 Handle(Select3D_SensitiveWire) aWire = Handle(Select3D_SensitiveWire)::DownCast(Ent);
382 const NCollection_Vector<Handle(Select3D_SensitiveEntity)>& anEntities = aWire->GetEdges();
384 for (int i = 0; i < anEntities.Length(); i++)
386 Handle(Select3D_SensitiveEntity) SubEnt = Handle(Select3D_SensitiveEntity)::DownCast(anEntities.Value(i));
389 if (SubEnt->DynamicType()==STANDARD_TYPE(Select3D_SensitiveSegment))
391 gp_Pnt P1 (Handle(Select3D_SensitiveSegment)::DownCast(SubEnt)->StartPoint().XYZ());
392 gp_Pnt P2 (Handle(Select3D_SensitiveSegment)::DownCast(SubEnt)->EndPoint().XYZ());
395 P1.Transform(theLoc);
396 P2.Transform(theLoc);
399 aSeqLines.Append(P1);
400 aSeqLines.Append(P2);
404 if (SubEnt->DynamicType()==STANDARD_TYPE(Select3D_SensitiveCircle))
406 Handle(Select3D_SensitiveCircle) aCircle = Handle(Select3D_SensitiveCircle)::DownCast(SubEnt);
407 Standard_Integer aFrom, aTo;
408 aCircle->ArrayBounds (aFrom, aTo);
410 for (Standard_Integer aPntIter = aFrom; aPntIter <= aTo; aPntIter += 2)
414 gp_Pnt (aCircle->GetPoint3d (aPntIter + 0).XYZ()),
415 gp_Pnt (aCircle->GetPoint3d (aPntIter + 1).XYZ()),
416 gp_Pnt (aCircle->GetPoint3d (aPntIter + 2).XYZ())
421 aPnts[0].Transform (theLoc);
422 aPnts[1].Transform (theLoc);
423 aPnts[2].Transform (theLoc);
427 aSeqLines.Append (aPnts[0]);
428 aSeqLines.Append (aPnts[1]);
429 aSeqLines.Append (aPnts[2]);
430 aSeqLines.Append (aPnts[0]);
435 if (SubEnt->DynamicType()==STANDARD_TYPE(Select3D_SensitiveCurve))
437 Handle(Select3D_SensitiveCurve) aCurve = Handle(Select3D_SensitiveCurve)::DownCast(SubEnt);
438 Handle(TColgp_HArray1OfPnt) TheHPts;
439 aCurve->Points3D (TheHPts);
440 const TColgp_Array1OfPnt& ThePts = TheHPts->Array1();
442 aSeqBnds.Append(ThePts.Length());
443 for (Standard_Integer I = ThePts.Lower(); I <= ThePts.Upper(); I++)
446 aSeqLines.Append(ThePts(I).Transformed (theLoc));
448 aSeqLines.Append(ThePts(I));
456 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveSegment))
458 gp_Pnt P1 (Handle(Select3D_SensitiveSegment)::DownCast(Ent)->StartPoint().XYZ());
459 gp_Pnt P2 (Handle(Select3D_SensitiveSegment)::DownCast(Ent)->EndPoint().XYZ());
462 P1.Transform (theLoc);
463 P2.Transform (theLoc);
466 aSeqLines.Append(P1);
467 aSeqLines.Append(P2);
472 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveCircle))
474 Handle(Select3D_SensitiveCircle) aCircle = Handle(Select3D_SensitiveCircle)::DownCast(Ent);
475 Standard_Integer aFrom, aTo;
476 aCircle->ArrayBounds (aFrom, aTo);
478 for (Standard_Integer aPntIter = aFrom; aPntIter <= aTo; aPntIter += 2)
482 gp_Pnt (aCircle->GetPoint3d (aPntIter + 0).XYZ()),
483 gp_Pnt (aCircle->GetPoint3d (aPntIter + 1).XYZ()),
484 gp_Pnt (aCircle->GetPoint3d (aPntIter + 2).XYZ())
489 aPnts[0].Transform (theLoc);
490 aPnts[1].Transform (theLoc);
491 aPnts[2].Transform (theLoc);
495 aSeqLines.Append (aPnts[0]);
496 aSeqLines.Append (aPnts[1]);
497 aSeqLines.Append (aPnts[2]);
498 aSeqLines.Append (aPnts[0]);
504 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitivePoint))
507 Handle(Select3D_SensitivePoint)::DownCast(Ent)->Point() :
508 Handle(Select3D_SensitivePoint)::DownCast(Ent)->Point().Transformed (theLoc);
509 Handle(Graphic3d_ArrayOfPoints) anArrayOfPoints = new Graphic3d_ArrayOfPoints (1);
510 anArrayOfPoints->AddVertex (P.X(), P.Y(), P.Z());
511 mysensgroup->AddPrimitiveArray (anArrayOfPoints);
513 //============================================================
514 // Triangulation : On met un petit offset ves l'interieur...
515 //==========================================================
516 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveTriangulation))
518 const Handle(Poly_Triangulation)& PT =
519 (*((Handle(Select3D_SensitiveTriangulation)*) &Ent))->Triangulation();
521 const Poly_Array1OfTriangle& triangles = PT->Triangles();
522 const TColgp_Array1OfPnt& Nodes = PT->Nodes();
523 Standard_Integer n[3];
525 TopLoc_Location iloc, bidloc;
526 if ((*((Handle(Select3D_SensitiveTriangulation)*) &Ent))->HasInitLocation())
527 bidloc = (*((Handle(Select3D_SensitiveTriangulation)*) &Ent))->GetInitLocation();
529 if (bidloc.IsIdentity())
532 iloc = theLoc * bidloc;
535 for (i = 1; i <= PT->NbTriangles(); i++)
537 triangles (i).Get (n[0], n[1], n[2]);
538 gp_Pnt P1 (Nodes (n[0]).Transformed (iloc));
539 gp_Pnt P2 (Nodes (n[1]).Transformed (iloc));
540 gp_Pnt P3 (Nodes (n[2]).Transformed (iloc));
541 gp_XYZ V1 (P1.XYZ());
542 gp_XYZ V2 (P2.XYZ());
543 gp_XYZ V3 (P3.XYZ());
544 gp_XYZ CDG (P1.XYZ()); CDG += (P2.XYZ()); CDG += (P3.XYZ()); CDG /= 3.0;
545 V1 -= CDG; V2 -= CDG; V3 -= CDG;
546 V1 *= 0.9; V2 *= 0.9; V3 *= 0.9;
547 V1 += CDG; V2 += CDG; V3 += CDG;
550 aSeqLines.Append(gp_Pnt(V1));
551 aSeqLines.Append(gp_Pnt(V2));
552 aSeqLines.Append(gp_Pnt(V3));
553 aSeqLines.Append(gp_Pnt(V1));
556 // recherche des bords libres...
558 Handle(TColStd_HArray1OfInteger) FreeEdges = new TColStd_HArray1OfInteger (1, 2 * StdSel_NumberOfFreeEdges (PT));
559 TColStd_Array1OfInteger& FreeE = FreeEdges->ChangeArray1();
560 Poly_Connect pc (PT);
561 Standard_Integer t[3];
563 Standard_Integer fr (1);
564 for (i = 1; i <= PT->NbTriangles(); i++)
566 pc.Triangles (i, t[0], t[1], t[2]);
567 triangles (i).Get (n[0], n[1], n[2]);
568 for (j = 0; j < 3; j++)
570 Standard_Integer k = (j + 1) % 3;
574 FreeE (fr + 1)= n[k];
579 for (Standard_Integer ifri = 1; ifri <= FreeE.Length(); ifri += 2)
581 gp_Pnt pe1 (Nodes (FreeE (ifri)).Transformed (iloc)), pe2 (Nodes (FreeE (ifri + 1)).Transformed (iloc));
582 aSeqFree.Append(pe1);
583 aSeqFree.Append(pe2);
586 else if (Ent->DynamicType()==STANDARD_TYPE(Select3D_SensitiveTriangle))
588 Handle(Select3D_SensitiveTriangle) Str = Handle(Select3D_SensitiveTriangle)::DownCast(Ent);
590 Str->Points3D (P1, P2, P3);
591 gp_Pnt CDG = Str->Center3D();
593 gp_XYZ V1 (P1.XYZ()); V1 -= (CDG.XYZ());
594 gp_XYZ V2 (P2.XYZ()); V2 -= (CDG.XYZ());
595 gp_XYZ V3 (P3.XYZ()); V3 -= (CDG.XYZ());
596 V1 *= 0.9; V2 *= 0.9; V3 *= 0.9;
597 V1 += CDG.XYZ(); V2 += CDG.XYZ(); V3 += CDG.XYZ();
600 aSeqLines.Append(gp_Pnt(V1));
601 aSeqLines.Append(gp_Pnt(V2));
602 aSeqLines.Append(gp_Pnt(V3));
603 aSeqLines.Append(gp_Pnt(V1));
609 if (aSeqLines.Length())
611 Handle(Graphic3d_ArrayOfPolylines) aPrims = new Graphic3d_ArrayOfPolylines(aSeqLines.Length(),aSeqBnds.Length());
612 for (i = 1; i <= aSeqLines.Length(); i++)
613 aPrims->AddVertex(aSeqLines(i));
614 for (i = 1; i <= aSeqBnds.Length(); i++)
615 aPrims->AddBound(aSeqBnds(i));
616 myareagroup->AddPrimitiveArray(aPrims);
619 if (aSeqFree.Length())
621 mysensgroup->SetPrimitivesAspect (new Graphic3d_AspectLine3d (Quantity_NOC_GREEN, Aspect_TOL_SOLID, 2.0));
622 Handle(Graphic3d_ArrayOfPolylines) aPrims = new Graphic3d_ArrayOfPolylines(aSeqFree.Length(),aSeqFree.Length()/2);
623 for (i = 1; i <= aSeqFree.Length(); i++)
626 aPrims->AddVertex(aSeqLines(i++));
627 aPrims->AddVertex(aSeqLines(i));
629 mysensgroup->AddPrimitiveArray(aPrims);
630 mysensgroup->SetPrimitivesAspect (new Graphic3d_AspectLine3d (Quantity_NOC_GRAY40, Aspect_TOL_SOLID, 2.0));
634 //=======================================================================
635 //function : SetClipping
637 //=======================================================================
638 void StdSelect_ViewerSelector3d::SetClipping (const Graphic3d_SequenceOfHClipPlane& thePlanes)
640 myClipPlanes = thePlanes;
643 //=======================================================================
644 //function : HasDepthClipping
646 //=======================================================================
647 Standard_Boolean StdSelect_ViewerSelector3d::HasDepthClipping (const Handle(SelectMgr_EntityOwner)& theOwner) const
649 if (!theOwner->HasSelectable())
651 return Standard_False;
654 const Handle(SelectMgr_SelectableObject)& aSelectable = theOwner->Selectable();
655 return (aSelectable->GetClipPlanes().Size() > 0);
658 //=======================================================================
659 //function : ResetSelectionActivationStatus
660 //purpose : Marks all sensitive entities, stored in viewer selector,
661 // as inactive for selection
662 //=======================================================================
663 void StdSelect_ViewerSelector3d::ResetSelectionActivationStatus()
665 resetSelectionActivationStatus();