Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Select2D_SensitiveSegment Class Reference

A framework to define sensitive areas along a line segment.

#include <Select2D_SensitiveSegment.hxx>

Inheritance diagram for Select2D_SensitiveSegment:
Inheritance graph
[legend]

Public Member Functions

 Select2D_SensitiveSegment (const Handle< SelectBasics_EntityOwner > &OwnerId, const gp_Pnt2d &FirstP, const gp_Pnt2d &LastP, const Standard_Integer MaxRect=3)
 Constructs the sensitive line segment object defined
by the owner OwnerId, the 2D starting and ending
points FirstPoint and LastPoint and the maximum
number of sensitive bounding boxes MaxRect.
The parameters can be modified using the functions provided.

void Set (const Standard_Integer MaxRect)
 Sets the maximum number of 2D sensitive bounding boxes - MaxRect.

void StartPoint (const gp_Pnt2d &aPt)
 changes the start Point of the Segment;

void EndPoint (const gp_Pnt2d &aPt)
 changes the end point of the segment

const gp_Pnt2dStartPoint () const
 gives the 3D start Point of the Segment

const gp_Pnt2dEndPoint () const
 Returnes the 3D start Point of the Segment

void Areas (SelectBasics_ListOfBox2d &aSeq)
 to be implemented specifically by each type of
sensitive primitive .


Standard_Boolean Matches (const Standard_Real X, const Standard_Real Y, const Standard_Real aTol, Standard_Real &DMin)
 returns True if the object is very close to the
sensitive areas it gave to the selector...
returns the minimum distance found if no match;

to be implemented specifically by each type of
sensitive primitive .

Standard_Boolean Matches (const Standard_Real XMin, const Standard_Real YMin, const Standard_Real XMax, const Standard_Real YMax, const Standard_Real aTol)
 returns True if the box (Xmin,YMin)------(Xmax,Ymax)
contains the SensitiveEntity.
Necessary for selection using elastic boxes,or segments.

Standard_Integer MaxBoxes () const
 Returns the max number of sensitive aeas describing the sensitive segment


Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from Select2D_SensitiveEntity.


The documentation for this class was generated from the following file: