![]() |
Isis 3 Programmer Reference
|
Combo box for choosing a rubber band type. More...
#include <RubberBandComboBox.h>


Public Types | |
| enum | RubberBandOptions { Circle = 1, Ellipse = 2, Rectangle = 4, RotatedRectangle = 8, Polygon = 16, Line = 32, SegmentedLine = 64, Angle = 128 } |
| Enum to store rubber band shapes. More... | |
Public Member Functions | |
| RubberBandComboBox (Tool *tool, unsigned int bandingOptions, unsigned int defaultOption, bool showIndicatorColors=false) | |
| RubberBandComboBox constructor. More... | |
| QString | toolIconDir () const |
| Returns the icon directory. More... | |
| void | reset () |
| Resets the selection. More... | |
Protected Slots | |
| void | selectionChanged (int index) |
| This slot is called whenever the rubberband shape selection has changed. More... | |
Private Member Functions | |
| unsigned int | getDefault (unsigned int defaultOption, unsigned int bandingOptions) |
| This is used to figure out which option should be defaulted. More... | |
| void | showAngle () |
| Enables the angle shape. More... | |
| void | showCircle () |
| Enables the circle shape. More... | |
| void | showEllipse () |
| Enables the ellipse shape. More... | |
| void | showLine () |
| Enables the line. More... | |
| void | showRectangle () |
| Enables the rectangle shape. More... | |
| void | showRotatedRectangle () |
| Enables the rotated rectangle shape. More... | |
| void | showPolygon () |
| Enables the polygon shape. More... | |
| void | showSegmentedLine () |
| Enables the segmented line shape. More... | |
Private Attributes | |
| QStringList | m_bandingOptionStrings |
| List of rubberband options. More... | |
| bool | m_showIndicatorColors |
| Show colors? More... | |
| Tool * | m_tool |
Combo box for choosing a rubber band type.
2008-09-26 Steven Lambright Added Segmented line, reordered banding options at Stuart's Request
2008-10-01 Steven Lambright Fixed bug with segmented line, if polygon was enabled then segmented line was
2010-06-26 Eric Hyer - Fixed one include issue
2010-11-08 Eric Hyer - Updated documentation for drawing lines
Definition at line 26 of file RubberBandComboBox.h.
Enum to store rubber band shapes.
| Enumerator | |
|---|---|
| Circle | Circle. |
| Ellipse | |
| Rectangle | Rectangle. |
| RotatedRectangle | RotatedRectangle. |
| Polygon | Polygon. |
| Line | Line. |
| SegmentedLine | Segmented Line. |
| Angle | |
Definition at line 36 of file RubberBandComboBox.h.
| Isis::RubberBandComboBox::RubberBandComboBox | ( | Tool * | tool, |
| unsigned int | bandingOptions, | ||
| unsigned int | defaultOption, | ||
| bool | showIndicatorColors = false |
||
| ) |
RubberBandComboBox constructor.
| bandingOptions | |
| defaultOption | |
| showIndicatorColors |
Definition at line 16 of file RubberBandComboBox.cpp.
References Angle, Circle, Ellipse, getDefault(), Line, m_bandingOptionStrings, m_showIndicatorColors, Polygon, Rectangle, RotatedRectangle, SegmentedLine, selectionChanged(), and toolIconDir().
|
private |
This is used to figure out which option should be defaulted.
Returns the default option.
| defaultOption | |
| bandingOptions |
Definition at line 240 of file RubberBandComboBox.cpp.
Referenced by RubberBandComboBox().
| void Isis::RubberBandComboBox::reset | ( | ) |
Resets the selection.
Definition at line 226 of file RubberBandComboBox.cpp.
References selectionChanged().
Referenced by Isis::MeasureTool::enableRubberBandTool().
|
protectedslot |
This slot is called whenever the rubberband shape selection has changed.
| index |
Definition at line 189 of file RubberBandComboBox.cpp.
References Angle, Circle, Isis::RubberBandTool::disable(), Ellipse, Line, Polygon, Rectangle, RotatedRectangle, SegmentedLine, showAngle(), showCircle(), showEllipse(), showLine(), showPolygon(), showRectangle(), showRotatedRectangle(), showSegmentedLine(), and Isis::toInt().
Referenced by reset(), and RubberBandComboBox().
|
inlineprivate |
Enables the angle shape.
Definition at line 61 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inlineprivate |
Enables the circle shape.
Definition at line 65 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inlineprivate |
Enables the ellipse shape.
Definition at line 69 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inlineprivate |
Enables the line.
Definition at line 73 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inlineprivate |
Enables the polygon shape.
Definition at line 86 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inlineprivate |
Enables the rectangle shape.
Definition at line 77 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inlineprivate |
Enables the rotated rectangle shape.
Definition at line 81 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inlineprivate |
Enables the segmented line shape.
Definition at line 90 of file RubberBandComboBox.h.
References Isis::RubberBandTool::enable(), and m_showIndicatorColors.
Referenced by selectionChanged().
|
inline |
Returns the icon directory.
Definition at line 48 of file RubberBandComboBox.h.
References Isis::Tool::toolIconDir().
Referenced by RubberBandComboBox().
|
private |
List of rubberband options.
Definition at line 94 of file RubberBandComboBox.h.
Referenced by RubberBandComboBox().
|
private |
Show colors?
Definition at line 95 of file RubberBandComboBox.h.
Referenced by RubberBandComboBox(), showAngle(), showCircle(), showEllipse(), showLine(), showPolygon(), showRectangle(), showRotatedRectangle(), and showSegmentedLine().