USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::RubberBandComboBox Class Reference

Combo box for choosing a rubber band type. More...

#include <RubberBandComboBox.h>

Inherits QComboBox.

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.
QString toolIconDir () const
 Returns the icon directory.
void reset ()
 Resets the selection.

Protected Slots

void selectionChanged (int index)
 This slot is called whenever the rubberband shape selection has changed.

Detailed Description

Combo box for choosing a rubber band type.

Author
2007-09-11 Steven Lambright

Member Enumeration Documentation

Enum to store rubber band shapes.

Enumerator:
Circle 

Circle.

Ellipse 

Ellipse.

Rectangle 

Rectangle.

RotatedRectangle 

RotatedRectangle.

Polygon 

Polygon.

Line 

Line.

SegmentedLine 

Segmented Line.

Angle 

Angle.

Constructor & Destructor Documentation

Isis::RubberBandComboBox::RubberBandComboBox ( Tool tool,
unsigned int  bandingOptions,
unsigned int  defaultOption,
bool  showIndicatorColors = false 
)

RubberBandComboBox constructor.

Parameters
bandingOptions
defaultOption
showIndicatorColors

References Angle, Circle, Ellipse, Line, Polygon, Rectangle, RotatedRectangle, Isis::Tool::rubberBandTool(), SegmentedLine, selectionChanged(), and toolIconDir().

Member Function Documentation

void Isis::RubberBandComboBox::reset ( )

Resets the selection.

References selectionChanged().

Referenced by Isis::MeasureTool::enableRubberBandTool().

void Isis::RubberBandComboBox::selectionChanged ( int  index)
protectedslot

This slot is called whenever the rubberband shape selection has changed.

Parameters
index

References Circle, Isis::RubberBandTool::disable(), Line, Polygon, Rectangle, RotatedRectangle, Isis::Tool::rubberBandTool(), SegmentedLine, and Isis::toInt().

Referenced by reset(), and RubberBandComboBox().

QString Isis::RubberBandComboBox::toolIconDir ( ) const
inline

Returns the icon directory.

References Isis::Tool::toolIconDir().

Referenced by RubberBandComboBox().


The documentation for this class was generated from the following files: