A wrapper around KisAngleSelector, a widget with several options to select an angle. The widget itself is accessed with the widget() function.
This widget is a combination of a KisAngleGauge and a spin box, along with some flipping options
Static methods
Methods
Signals
Member documentation
Gets the closest coterminal angle to the provided angle that is in the range provided
A coterminal angle to the provided angle is one that differs in size by an integer multiple of a turn (360 degrees)
Parameters
angle | The reference angle for which the function will try to find a coterminal angle |
minimum | The range's lower bound |
maximum | The range's upper bound @param[out] ok This parameter will be set to true if a coterminal angle exists in the provided range, or to false otherwise |
ok | (no description provided) |
Return
The closest coterminal angle in the provided range if one exists, or the closest value in the range (the minimum or maximum) otherwise. If the reference angle is already in the range then it is returned |
Gets the closest coterminal angle to the provided angle that is in the range established
A coterminal angle to the provided angle is one that differs in size by an integer multiple of a turn (360 degrees)
Parameters
angle | The reference angle for which the function will try to find a coterminal angle @param[out] ok This parameter will be set to true if a coterminal angle exists in the specified range, or to false otherwise |
ok | (no description provided) |
Return
The closest coterminal angle in the specified range if one exists, or the closest value in the range (the minimum or maximum) otherwise. If the reference angle is already in the range then it is returned |
Gets the number of decimals (precision) used by the angle
If you want to simulate integer angles, set it to 0. The default is 2.
Return
The number of decimals being used |
Flips the angle horizontally, vertically, or both
This function will always try to set the closest angle to the stablished one that satisfies the flipping requirements
Parameters
orientations | Flags indicating in which directions the angle should be flipped |
Flips an angle horizontally, vertically, or both
This function will always try to get the closest angle to the provided one that satisfies the flipping requirements
Parameters
angle | The angle to be flipped |
orientations | Flags indicating in which directions the angle should be flipped |
Return
The flipped angle |
Flips an angle horizontally, vertically, or both
This function will always try to get the closest angle to the provided one that satisfies the flipping requirements
Parameters
angle | The angle to be flipped |
minimum | The lower bound of the valid range |
maximum | The upper bound of the valid range |
orientations | Flags indicating in which directions the angle should be flipped @param[out] ok This parameter will be set to true if the flipped angle is in the provided range, or to false otherwise |
ok | (no description provided) |
Return
The flipped angle if it lies in the provided range or the closest value in the range (the minimum or maximum) otherwise |
Gets the mode in which the flip options should be shown
The default is Buttons
Return
The mode in which the flip options should be shown. |
Gets the direction in which the angle increases in the angle gauge
Return
The direction in which the angle increases |
Gets if the spin box is flat (no border or background)
Return
True if the spin box is flat, false otherwise |
Gets the maximum value for the angle
The default is 360
Return
The maximum value for the angle |
Gets the minimum value for the angle
The default is 0
Return
The minimum value for the angle |
Gets the angle that is used to reset the current angle
This angle is used when the user double clicks on the widget
Return
The angle that is used to reset the current angle |
Sets the number of decimals (precision) used by the angle
Parameters
newNumberOfDecimals | the new number of decimals used by the angle |
Sets the mode in which the flip options should be shown
Parameters
newMode | the new mode in which the flip options should be shown Valid arguments:
|
Sets the increasing direction in the angle gauge
Parameters
newIncreasingDirection | The new increasing direction Valid arguments: CounterClockwise or Clockwise. |
Sets the maximum value for the angle
Parameters
newMaximum | the new maximum value for the angle |
Sets the minimum value for the angle
Parameters
newMinimum | the new minimum value for the angle |
Sets the prefix shown in the spin box
Parameters
newPrefix | the new prefix for the spin box |
Sets the minimum and maximum values for the angle
Parameters
newMinimum | the new minimum value for the angle |
newMaximum | the new maximum value for the angle |
Sets the angle that is used to reset the current angle
Parameters
newResetAngle | the new angle that is used to reset the current angle |
Sets the angle to which multiples the selected angle will snap
Parameters
newSnapAngle | the new angle to which multiples the selected angle will snap |
Sets the common height of the widgets inside this angle selector.
Use 0 to reset widgets to default height.
Parameters
newHeight | the new height of the internal widgets (angle gauge, spin box, etc.) |
Sets if the angle should wrap pass the minimum or maximum angles
Parameters
newWrapping | true if the angle should wrap pass the minimum or maximum angles, false otherwise |
Gets the angle to which multiples the selected angle will snap
The default snap angle is 15 degrees so the selected angle will snap to its multiples (0, 15, 30, 45, etc.)
Return
The angle to which multiples the selected angle will snap |
Sets if the spin box should be flat
Parameters
newUseFlatSpinBox | True if the spin box should be flat, false otherwise |
Get the internal KisAngleSelector as a QWidget, so it may be added to a UI
Return
the internal KisAngleSelector as a QWidget |
Gets the common height of the widgets inside this angle selector
Return
The height of the internal widgets (angle gauge, spin box, etc.). Returns 0 if each widget has its default height. |
Gets if the angle should wrap pass the minimum or maximum angles
Return
True if the angle should wrap pass the minimum or maximum angles, false otherwise |