Commit
For this the widget selected state of the bone widget is exposed. It's only logical since the GetBoneSelected is exposed. See Issue#13637
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,6 +381,18 @@ class VTK_BENDER_WIDGETS_EXPORT vtkBoneWidget : public vtkAbstractWidget | |
// Get the selection state of the widget. | ||
vtkGetMacro(BoneSelected, int); | ||
|
||
// Description: | ||
// The differents selection state of the widget. | ||
//BTX | ||
enum WidgetSelectedState | ||
{ | ||
NotSelected = 0, | ||
HeadSelected, | ||
TailSelected, | ||
LineSelected | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vovythevov
Author
Owner
|
||
}; | ||
//ETX | ||
|
||
protected: | ||
vtkBoneWidget(); | ||
~vtkBoneWidget(); | ||
|
@@ -391,15 +403,6 @@ class VTK_BENDER_WIDGETS_EXPORT vtkBoneWidget : public vtkAbstractWidget | |
// The different states of the widget. | ||
int WidgetState; | ||
int BoneSelected; | ||
//BTX | ||
enum WidgetSelectedState | ||
{ | ||
NotSelected = 0, | ||
HeadSelected, | ||
TailSelected, | ||
LineSelected | ||
}; | ||
//ETX | ||
|
||
// Callback interface to capture events when placing the widget. | ||
static void StartSelectAction(vtkAbstractWidget*); | ||
|
Apply into the code the fact that
LineSelected
isHeadSelected | TailSelected
, it could simplify the code (I'm not sure).