OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKV2d
Select2D


Select2D_SensitiveBox Class Reference

defines a Sensitive Box (inside or boundary)

#include <Select2D_SensitiveBox.hxx>

Inheritance diagram for Select2D_SensitiveBox:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT Select2D_SensitiveBox (const Handle(SelectBasics_EntityOwner)&OwnerId, const gp_Pnt2d &Center, const Standard_Real Height, const Standard_Real Width, const Select2D_TypeOfSelection Type=Select2D_TOS_INTERIOR)
 Constructs a sensitive box object defined by the
owner OwnerId, the center point Center, the height
Height, the width Width, and the selection type Type.
Type can be:
- interior
- boundary.
.
Standard_EXPORT Select2D_SensitiveBox (const Handle(SelectBasics_EntityOwner)&OwnerId, const Standard_Real Xmin, const Standard_Real YMin, const Standard_Real XMax, const Standard_Real YMax, const Select2D_TypeOfSelection Type=Select2D_TOS_INTERIOR)
 Constructs a sensitive box object defined by the
owner OwnerId, the coordinates Xmin, YMin, XMax,
YMax, and the selection type Type.
Xmin, YMin define the minimum point in the lower left
hand corner of the box, and XMax, YMax define the
maximum point in the upper right hand corner of the box.
Type can be:
- interior
- boundary.
.
Standard_EXPORT void Areas (SelectBasics_ListOfBox2d &aresul)
 to be implemented specifically by each type of
sensitive primitive .


Standard_EXPORT 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_EXPORT 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_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Attributes

Bnd_Box2d mybox
Select2D_TypeOfSelection mytype

Constructor & Destructor Documentation

Standard_EXPORT Select2D_SensitiveBox::Select2D_SensitiveBox const Handle(SelectBasics_EntityOwner)&  OwnerId,
const gp_Pnt2d &  Center,
const Standard_Real  Height,
const Standard_Real  Width,
const Select2D_TypeOfSelection  Type = Select2D_TOS_INTERIOR
 

Standard_EXPORT Select2D_SensitiveBox::Select2D_SensitiveBox const Handle(SelectBasics_EntityOwner)&  OwnerId,
const Standard_Real  Xmin,
const Standard_Real  YMin,
const Standard_Real  XMax,
const Standard_Real  YMax,
const Select2D_TypeOfSelection  Type = Select2D_TOS_INTERIOR
 


Member Function Documentation

Standard_EXPORT void Select2D_SensitiveBox::Areas SelectBasics_ListOfBox2d aresul  )  [virtual]
 

Implements SelectBasics_SensitiveEntity.

Standard_EXPORT const Select2D_SensitiveBox::Handle Standard_Type   )  const
 

Reimplemented from Select2D_SensitiveEntity.

Standard_EXPORT Standard_Boolean Select2D_SensitiveBox::Matches const Standard_Real  XMin,
const Standard_Real  YMin,
const Standard_Real  XMax,
const Standard_Real  YMax,
const Standard_Real  aTol
[virtual]
 

Implements SelectBasics_SensitiveEntity.

Standard_EXPORT Standard_Boolean Select2D_SensitiveBox::Matches const Standard_Real  X,
const Standard_Real  Y,
const Standard_Real  aTol,
Standard_Real &  DMin
[virtual]
 

Implements SelectBasics_SensitiveEntity.


Field Documentation

Bnd_Box2d Select2D_SensitiveBox::mybox [private]
 

Select2D_TypeOfSelection Select2D_SensitiveBox::mytype [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:56:10 2008 for OpenCASCADE by  doxygen 1.4.1