Rectangular picker class. More...
#include <SVTK_AreaPicker.h>

Public Types | |
| enum | SelectionMode { RectangleMode , PolygonMode } |
| typedef std::vector< vtkIdType > | TVectorIds |
| typedef std::map< vtkActor *, TVectorIds > | TVectorIdsMap |
Public Member Functions | |
| vtkTypeMacro (SVTK_AreaPicker, vtkAbstractPropPicker) vtkSetMacro(Tolerance | |
| vtkGetMacro (Tolerance, double) | |
| vtkSetMacro (PickPoints, int) | |
| Use these methods to pick points or points and cells. More... | |
| vtkGetMacro (PickPoints, int) | |
| vtkBooleanMacro (PickPoints, int) | |
| int | Pick (QVector< QPoint > &thePoints, vtkRenderer *theRenderer, SelectionMode theMode) |
| int | Pick (double theSelectionX, double theSelectionY, double theSelectionX2, double theSelectionY2, vtkRenderer *theRenderer, SelectionMode theMode) |
| const TVectorIdsMap & | GetPointIdsMap () const |
| const TVectorIdsMap & | GetCellIdsMap () const |
Static Public Member Functions | |
| static SVTK_AreaPicker * | New () |
| static bool | isPointInPolygon (const QPoint &thePoint, const QVector< QPoint > &thePolygon) |
Public Attributes | |
| double | |
Protected Member Functions | |
| SVTK_AreaPicker () | |
| ~SVTK_AreaPicker () | |
Protected Attributes | |
| double | Tolerance |
| tolerance for computation (% of window) More... | |
| int | PickPoints |
| use the following to control picking mode More... | |
| int | mySelection [4] |
| coordinates of bounding box of selection More... | |
| TVectorIdsMap | myPointIdsMap |
| TVectorIdsMap | myCellIdsMap |
Private Member Functions | |
| virtual int | Pick (double, double, double, vtkRenderer *) |
| void | SelectVisiblePoints (QVector< QPoint > &thePoints, vtkRenderer *theRenderer, vtkDataSet *theInput, SVTK_AreaPicker::TVectorIds &theVisibleIds, SVTK_AreaPicker::TVectorIds &theInVisibleIds, double theTolerance, SelectionMode theMode) |
| void | SelectVisibleCells (QVector< QPoint > &thePoints, vtkRenderer *theRenderer, vtkDataSet *theInput, SVTK_AreaPicker::TVectorIds &theVectorIds, double theTolerance, SelectionMode theMode) |
Rectangular picker class.
| typedef std::vector<vtkIdType> SVTK_AreaPicker::TVectorIds |
| typedef std::map<vtkActor*,TVectorIds> SVTK_AreaPicker::TVectorIdsMap |
|
protected |
|
protected |
| const SVTK_AreaPicker::TVectorIdsMap & SVTK_AreaPicker::GetCellIdsMap | ( | ) | const |
References myCellIdsMap.
| const SVTK_AreaPicker::TVectorIdsMap & SVTK_AreaPicker::GetPointIdsMap | ( | ) | const |
References myPointIdsMap.
|
static |
|
static |
| int SVTK_AreaPicker::Pick | ( | double | theSelectionX, |
| double | theSelectionY, | ||
| double | theSelectionX2, | ||
| double | theSelectionY2, | ||
| vtkRenderer * | theRenderer, | ||
| SelectionMode | theMode | ||
| ) |
References Pick().
| int SVTK_AreaPicker::Pick | ( | QVector< QPoint > & | thePoints, |
| vtkRenderer * | theRenderer, | ||
| SelectionMode | theMode | ||
| ) |
References myCellIdsMap, myPointIdsMap, mySelection, PickPoints, PolygonMode, RectangleMode, SelectVisibleCells(), and SelectVisiblePoints().
|
private |
References isPointInPolygon(), mySelection, PolygonMode, RectangleMode, and SelectVisiblePoints().
|
private |
References isPointInPolygon(), mySelection, PolygonMode, and RectangleMode.
| SVTK_AreaPicker::vtkBooleanMacro | ( | PickPoints | , |
| int | |||
| ) |
| SVTK_AreaPicker::vtkGetMacro | ( | PickPoints | , |
| int | |||
| ) |
| SVTK_AreaPicker::vtkSetMacro | ( | PickPoints | , |
| int | |||
| ) |
Use these methods to pick points or points and cells.
| SVTK_AreaPicker::vtkTypeMacro | ( | SVTK_AreaPicker | , |
| vtkAbstractPropPicker | |||
| ) |
Specify tolerance for performing pick operation. Tolerance is specified as fraction of rendering window size. (Rendering window size is measured across diagonal.)
| SVTK_AreaPicker::double |
|
protected |
|
protected |
|
protected |
coordinates of bounding box of selection
|
protected |
use the following to control picking mode
|
protected |
tolerance for computation (% of window)