#include <select1DTool.h>
Public Member Functions | |
void | draw () const |
This function does nothing. | |
void | end (int x, int y, BitMask modifiers, BitMask buttons) |
Select or deselect the point under the mouse using GL's selection facility. | |
Select1DTool (SelectionPtr selection_ptr, CloudPtr cloud_ptr) | |
Constructor. | |
void | start (int, int, BitMask, BitMask) |
Does nothing for 1D selection. | |
void | update (int, int, BitMask, BitMask) |
Does nothing for 1D selection. | |
~Select1DTool () | |
Destructor. | |
Private Member Functions | |
Select1DTool () | |
Default constructor - object is not default constructable. | |
Private Attributes | |
CloudPtr | cloud_ptr_ |
a shared pointer pointing to the cloud object | |
SelectionPtr | selection_ptr_ |
a shared pointer pointing to the selection object |
Definition at line 46 of file select1DTool.h.
Select1DTool::Select1DTool | ( | SelectionPtr | selection_ptr, |
CloudPtr | cloud_ptr | ||
) |
Constructor.
selection_ptr | a shared pointer pointing to the selection object. |
cloud_ptr | a shared pointer pointing to the cloud object. |
Definition at line 47 of file select1DTool.cpp.
Select1DTool::~Select1DTool | ( | ) | [inline] |
Destructor.
Definition at line 55 of file select1DTool.h.
Select1DTool::Select1DTool | ( | ) | [inline, private] |
Default constructor - object is not default constructable.
Definition at line 99 of file select1DTool.h.
void Select1DTool::draw | ( | ) | const [inline, virtual] |
void Select1DTool::end | ( | int | x, |
int | y, | ||
BitMask | modifiers, | ||
BitMask | buttons | ||
) | [virtual] |
Select or deselect the point under the mouse using GL's selection facility.
If shift is pressed when the selection is made, the selected point is appended to the existing selection. If instead ctrl is pressed, the selected point will be removed from the existing selection. If neither shift nor ctrl is pressed when the selection is made then the selected point, if any, will replace any current selection. Note that the ctrl key may be evaluated as the command key in OSX.
x | the x value of the mouse screen coordinates. |
y | the y value of the mouse screen coordinates. |
modifiers | the key modifier. SHIFT adds selected points to the selection. CTRL removes points and if neither are pressed then a new selection is made. |
buttons | The state of the mouse buttons. All interaction with this tool requires the LEFT mouse button. All others are ignored. |
Implements ToolInterface.
Definition at line 53 of file select1DTool.cpp.
void Select1DTool::start | ( | int | , |
int | , | ||
BitMask | , | ||
BitMask | |||
) | [inline, virtual] |
Does nothing for 1D selection.
Implements ToolInterface.
Definition at line 62 of file select1DTool.h.
void Select1DTool::update | ( | int | , |
int | , | ||
BitMask | , | ||
BitMask | |||
) | [inline, virtual] |
Does nothing for 1D selection.
Implements ToolInterface.
Definition at line 69 of file select1DTool.h.
CloudPtr Select1DTool::cloud_ptr_ [private] |
a shared pointer pointing to the cloud object
Definition at line 108 of file select1DTool.h.
SelectionPtr Select1DTool::selection_ptr_ [private] |
a shared pointer pointing to the selection object
Definition at line 105 of file select1DTool.h.