#include <vtkKWRange.h>
Inheritance diagram for vtkKWRange:
[NOHEADER] | |
enum | { OrientationHorizontal = 0, OrientationVertical = 1 } |
virtual void | SetOrientation (int) |
virtual int | GetOrientation () |
virtual void | SetOrientationToHorizontal () |
virtual void | SetOrientationToVertical () |
[NOHEADER] | |
enum | { EntryPositionDefault = 0, EntryPositionTop, EntryPositionBottom, EntryPositionLeft, EntryPositionRight } |
virtual void | SetEntry1Position (int) |
virtual int | GetEntry1Position () |
virtual void | SetEntry1PositionToDefault () |
virtual void | SetEntry1PositionToTop () |
virtual void | SetEntry1PositionToBottom () |
virtual void | SetEntry1PositionToLeft () |
virtual void | SetEntry1PositionToRight () |
virtual void | SetEntry2Position (int) |
virtual int | GetEntry2Position () |
virtual void | SetEntry2PositionToDefault () |
virtual void | SetEntry2PositionToTop () |
virtual void | SetEntry2PositionToBottom () |
virtual void | SetEntry2PositionToLeft () |
virtual void | SetEntry2PositionToRight () |
[NOHEADER] | |
enum | { SliderIndex1 = 1, SliderIndex2 = 2 } |
virtual void | ConfigureCallback () |
virtual void | MaximizeRangeCallback () |
virtual void | EnlargeRangeCallback () |
virtual void | ShrinkRangeCallback () |
virtual void | EntriesUpdateCallback (int i) |
virtual void | StartInteractionCallback (int x, int y) |
virtual void | EndInteractionCallback () |
virtual void | SliderMotionCallback (int slider_idx, int x, int y) |
virtual void | RangeMotionCallback (int x, int y) |
[NOHEADER] | |
enum | { DarkShadowColor, LightShadowColor, BackgroundColor, HighlightColor } |
virtual void | GetWholeRangeColor (int type, double &r, double &g, double &b) |
virtual void | GetRangeColor (int type, double &r, double &g, double &b) |
virtual void | GetSliderColor (int type, double &r, double &g, double &b) |
Public Types | |
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWRange, vtkKWWidgetWithLabel) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
virtual void | SetBalloonHelpString (const char *str) |
virtual void | UpdateEnableState () |
virtual double * | GetWholeRange () |
virtual void | GetWholeRange (double &, double &) |
virtual void | GetWholeRange (double[2]) |
virtual void | SetWholeRange (double r0, double r1) |
virtual void | SetWholeRange (double range[2]) |
virtual double * | GetRange () |
virtual void | GetRange (double &, double &) |
virtual void | GetRange (double[2]) |
virtual void | SetRange (double r0, double r1) |
virtual void | SetRange (double *range) |
virtual void | GetRelativeRange (double &r0, double &r1) |
virtual void | GetRelativeRange (double range[2]) |
virtual void | SetRelativeRange (double r0, double r1) |
virtual void | SetRelativeRange (double range[2]) |
virtual void | SetResolution (double r) |
virtual double | GetResolution () |
virtual void | SetAdjustResolution (int) |
virtual void | AdjustResolutionOn () |
virtual void | AdjustResolutionOff () |
virtual int | GetAdjustResolution () |
virtual void | SetInverted (int) |
virtual void | InvertedOn () |
virtual void | InvertedOff () |
virtual int | GetInverted () |
virtual void | SetThickness (int) |
virtual int | GetThickness () |
virtual void | SetInternalThickness (double) |
virtual double | GetInternalThickness () |
virtual void | SetRequestedLength (int) |
virtual int | GetRequestedLength () |
virtual void | SetSliderSize (int) |
virtual int | GetSliderSize () |
virtual void | SetSliderCanPush (int) |
virtual void | SliderCanPushOn () |
virtual void | SliderCanPushOff () |
virtual int | GetSliderCanPush () |
virtual double * | GetRangeColor () |
virtual void | GetRangeColor (double &, double &, double &) |
virtual void | GetRangeColor (double[3]) |
virtual void | SetRangeColor (double r, double g, double b) |
virtual void | SetRangeColor (double rgb[3]) |
virtual double * | GetRangeInteractionColor () |
virtual void | GetRangeInteractionColor (double &, double &, double &) |
virtual void | GetRangeInteractionColor (double[3]) |
virtual void | SetRangeInteractionColor (double r, double g, double b) |
virtual void | SetRangeInteractionColor (double rgb[3]) |
virtual void | SetEntriesVisibility (int) |
virtual void | EntriesVisibilityOn () |
virtual void | EntriesVisibilityOff () |
virtual int | GetEntriesVisibility () |
virtual vtkKWEntry * | GetEntry1 () |
virtual vtkKWEntry * | GetEntry2 () |
virtual void | SetEntriesWidth (int width) |
virtual int | GetEntriesWidth () |
virtual void | SetCommand (vtkObject *object, const char *method) |
virtual void | SetStartCommand (vtkObject *object, const char *method) |
virtual void | SetEndCommand (vtkObject *object, const char *method) |
virtual void | SetEntriesCommand (vtkObject *object, const char *method) |
virtual void | InvokeCommand () |
virtual void | InvokeStartCommand () |
virtual void | InvokeEndCommand () |
virtual void | InvokeEntriesCommand () |
virtual void | SetDisableCommands (int) |
virtual int | GetDisableCommands () |
virtual void | DisableCommandsOn () |
virtual void | DisableCommandsOff () |
virtual vtkKWCanvas * | GetCanvas () |
virtual void | SetClampRange (int) |
virtual int | GetClampRange () |
virtual void | ClampRangeOn () |
virtual void | ClampRangeOff () |
Static Public Member Functions | |
vtkKWRange * | New () |
Protected Types | |
Protected Member Functions | |
vtkKWRange () | |
~vtkKWRange () | |
virtual void | CreateEntries () |
virtual void | UpdateEntriesValue (double range[2]) |
virtual void | ConstrainResolution () |
virtual void | Pack () |
virtual int | HasTag (const char *tag, const char *suffix=0) |
virtual void | GetSlidersPositions (int pos[2]) |
virtual void | Bind () |
virtual void | UnBind () |
virtual void | ConstrainRangeToResolution (double range[2], int adjust=1) |
virtual void | ConstrainRangeToWholeRange (double range[2], double whole_range[2], double *old_range_hint=0) |
virtual void | ConstrainWholeRange () |
virtual void | ConstrainRange (double *old_range_hint=0) |
virtual void | ConstrainRanges () |
virtual void | RedrawCanvas () |
virtual void | RedrawWholeRange () |
virtual void | RedrawRange () |
virtual void | RedrawSliders () |
virtual void | RedrawSlider (int x, int slider_idx) |
virtual void | UpdateRangeColors () |
virtual void | UpdateColors () |
Protected Attributes | |
double | WholeRange [2] |
double | Range [2] |
double | WholeRangeAdjusted [2] |
double | RangeAdjusted [2] |
double | Resolution |
int | AdjustResolution |
int | Inverted |
int | Thickness |
double | InternalThickness |
int | RequestedLength |
int | Orientation |
int | DisableCommands |
int | SliderSize |
double | RangeColor [3] |
double | RangeInteractionColor [3] |
int | EntriesVisibility |
int | Entry1Position |
int | Entry2Position |
int | EntriesWidth |
int | SliderCanPush |
int | InInteraction |
int | StartInteractionPos |
double | StartInteractionRange [2] |
int | ClampRange |
char * | Command |
char * | StartCommand |
char * | EndCommand |
char * | EntriesCommand |
vtkKWFrame * | CanvasFrame |
vtkKWCanvas * | Canvas |
vtkKWEntry * | Entries [2] |
A widget that represents a range within a bigger range. Note: As a subclass of vtkKWWidgetWithLabel, it inherits a label and methods to set its position and visibility. Note that the default label position implemented in this class is on the top of the range if the range direction is horizontal, on the left if is is vertical. Specific positions listed in vtkKWWidgetWithLabel are supported as well.
Definition at line 37 of file vtkKWRange.h.
|
Set/Get the orientation. BTX Definition at line 100 of file vtkKWRange.h. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX
Definition at line 204 of file vtkKWRange.h. |
|
Callbacks BTX Definition at line 266 of file vtkKWRange.h. |
|
Get element colors (and shades) BTX Definition at line 369 of file vtkKWRange.h. |
|
|
|
|
|
Reimplemented from vtkKWWidgetWithLabel. |
|
|
|
Reimplemented from vtkKWWidgetWithLabel. |
|
Create the widget. Reimplemented from vtkKWWidgetWithLabel. |
|
Set/Get the whole range. |
|
Set/Get the whole range. |
|
Set/Get the whole range. |
|
Set/Get the whole range. |
|
Set/Get the whole range. Definition at line 51 of file vtkKWRange.h. |
|
Set/Get the current (sub-)range. |
|
Set/Get the current (sub-)range. |
|
Set/Get the current (sub-)range. |
|
Set/Get the current (sub-)range. |
|
Set/Get the current (sub-)range. Definition at line 59 of file vtkKWRange.h. |
|
Set/Get the current (sub-)range as relative positions in the whole range. |
|
Set/Get the current (sub-)range as relative positions in the whole range. Definition at line 67 of file vtkKWRange.h. |
|
Set/Get the current (sub-)range as relative positions in the whole range. |
|
Set/Get the current (sub-)range as relative positions in the whole range. Definition at line 70 of file vtkKWRange.h. |
|
Method to set/get the resolution of the slider. The whole range and sub range are not snapped to this resolution. Both ranges can be set to any floating point number. Think of the sliders and the resolution as a way to set the bounds of the sub range interactively using nice clean steps (power of 10 for example). The entries associated to the sub range can be used to set the bounds to anything within the whole range, despite the resolution, allowing the user to enter precise values that could not be reached given the resolution. Of course, given a whole range of 1 to 64, if the resolution is set to 3 the slider will only snap to values ranging from 3 to 63 (within the whole range constraint), but the entries can be used to set accurate values out of the resolution (i.e., 1, 2... 64). |
|
Method to set/get the resolution of the slider. The whole range and sub range are not snapped to this resolution. Both ranges can be set to any floating point number. Think of the sliders and the resolution as a way to set the bounds of the sub range interactively using nice clean steps (power of 10 for example). The entries associated to the sub range can be used to set the bounds to anything within the whole range, despite the resolution, allowing the user to enter precise values that could not be reached given the resolution. Of course, given a whole range of 1 to 64, if the resolution is set to 3 the slider will only snap to values ranging from 3 to 63 (within the whole range constraint), but the entries can be used to set accurate values out of the resolution (i.e., 1, 2... 64). |
|
Adjust the resolution automatically (to a power of 10 in this implem) |
|
Adjust the resolution automatically (to a power of 10 in this implem) |
|
Adjust the resolution automatically (to a power of 10 in this implem) |
|
Adjust the resolution automatically (to a power of 10 in this implem) |
|
Set/Get the orientation. BTX |
|
Set/Get the orientation. BTX |
|
Set/Get the orientation. BTX Definition at line 108 of file vtkKWRange.h. References OrientationHorizontal. |
|
Set/Get the orientation. BTX Definition at line 110 of file vtkKWRange.h. References OrientationVertical. |
|
Set/Get the order of the sliders (inverted means that the first slider will be associated to Range[1], the last to Range[0]) |
|
Set/Get the order of the sliders (inverted means that the first slider will be associated to Range[1], the last to Range[0]) |
|
Set/Get the order of the sliders (inverted means that the first slider will be associated to Range[1], the last to Range[0]) |
|
Set/Get the order of the sliders (inverted means that the first slider will be associated to Range[1], the last to Range[0]) |
|
Set/Get the desired narrow dimension of the widget. For horizontal widget this is the widget height, for vertical this is the width. In the current implementation, this controls the sliders narrow dim. |
|
Set/Get the desired narrow dimension of the widget. For horizontal widget this is the widget height, for vertical this is the width. In the current implementation, this controls the sliders narrow dim. |
|
Set/Get the desired narrow dimension of the internal widget as a fraction of the thickness of the widget (see Thickness). In the current implementation, this controls the range bar narrow dim. |
|
Set/Get the desired narrow dimension of the internal widget as a fraction of the thickness of the widget (see Thickness). In the current implementation, this controls the range bar narrow dim. |
|
Set/Get the long dimension of the widget. For horizontal widget this is the widget width, for vertical this is the height. Set it to zero (default) to ignore it and let the widget resize. |
|
Set/Get the long dimension of the widget. For horizontal widget this is the widget width, for vertical this is the height. Set it to zero (default) to ignore it and let the widget resize. |
|
Set/Get the slider size. |
|
Set/Get the slider size. |
|
Set/Get if a slider can push another slider when bumping into it |
|
Set/Get if a slider can push another slider when bumping into it |
|
Set/Get if a slider can push another slider when bumping into it |
|
Set/Get if a slider can push another slider when bumping into it |
|
Set/Get the (sub) range scale color. Defaults to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale color. Defaults to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale color. Defaults to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale color. Defaults to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale color. Defaults to -1, -1, -1: a shade of the widget background color will be used at runtime. Definition at line 164 of file vtkKWRange.h. |
|
Set/Get the (sub) range scale interaction color. Used when interaction is performed using the sliders. IF set to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale interaction color. Used when interaction is performed using the sliders. IF set to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale interaction color. Used when interaction is performed using the sliders. IF set to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale interaction color. Used when interaction is performed using the sliders. IF set to -1, -1, -1: a shade of the widget background color will be used at runtime. |
|
Set/Get the (sub) range scale interaction color. Used when interaction is performed using the sliders. IF set to -1, -1, -1: a shade of the widget background color will be used at runtime. Definition at line 174 of file vtkKWRange.h. |
|
Set/Get the entries visibility. |
|
Set/Get the entries visibility. |
|
Set/Get the entries visibility. |
|
Set/Get the entries visibility. |
|
Get the entries object. Definition at line 187 of file vtkKWRange.h. |
|
Get the entries object. Definition at line 189 of file vtkKWRange.h. |
|
Set/Get the entries width (in chars). |
|
Set/Get the entries width (in chars). |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 215 of file vtkKWRange.h. References EntryPositionDefault. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 217 of file vtkKWRange.h. References EntryPositionTop. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 219 of file vtkKWRange.h. References EntryPositionBottom. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 221 of file vtkKWRange.h. References EntryPositionLeft. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 223 of file vtkKWRange.h. References EntryPositionRight. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 227 of file vtkKWRange.h. References EntryPositionDefault. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 229 of file vtkKWRange.h. References EntryPositionTop. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 231 of file vtkKWRange.h. References EntryPositionBottom. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 233 of file vtkKWRange.h. References EntryPositionLeft. |
|
Set/Get the position of the entries (Default is top if the range direction is horizontal, left if it is vertical). Note that you can also set the label position using the superclass methods (vtkKWWidgetWithLabel). BTX Definition at line 235 of file vtkKWRange.h. References EntryPositionRight. |
|
Set commands. |
|
Set commands. |
|
Set commands. |
|
Set commands. |
|
Set commands. |
|
Set commands. |
|
Set commands. |
|
Set commands. |
|
Set/get whether the above commands should be called or not. This allow you to disable the commands while you are setting the range value for example. |
|
Set/get whether the above commands should be called or not. This allow you to disable the commands while you are setting the range value for example. |
|
Set/get whether the above commands should be called or not. This allow you to disable the commands while you are setting the range value for example. |
|
Set/get whether the above commands should be called or not. This allow you to disable the commands while you are setting the range value for example. |
|
Set the string that enables balloon help for this widget. Override to pass down to children. Reimplemented from vtkKWWidgetWithLabel. |
|
Callbacks BTX |
|
Callbacks BTX |
|
Callbacks BTX |
|
Callbacks BTX |
|
Callbacks BTX |
|
Callbacks BTX |
|
Callbacks BTX |
|
Callbacks BTX |
|
Callbacks BTX |
|
Access to the canvas |
|
Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc. Reimplemented from vtkKWWidgetWithLabel. |
|
Turn on/off the automatic clamping of the end values when the user types a value beyond the range. Default is on. |
|
Turn on/off the automatic clamping of the end values when the user types a value beyond the range. Default is on. |
|
Turn on/off the automatic clamping of the end values when the user types a value beyond the range. Default is on. |
|
Turn on/off the automatic clamping of the end values when the user types a value beyond the range. Default is on. |
|
|
|
|
|
|
|
Bind/Unbind all components. |
|
Bind/Unbind all components. |
|
Make sure all elements are constrained correctly |
|
Make sure all elements are constrained correctly |
|
Make sure all elements are constrained correctly |
|
Make sure all elements are constrained correctly |
|
Make sure all elements are constrained correctly |
|
Pack the widget Reimplemented from vtkKWWidgetWithLabel. |
|
Get element colors (and shades) BTX |
|
Get element colors (and shades) BTX |
|
Get element colors (and shades) BTX |
|
Redraw elements |
|
Redraw elements |
|
Redraw elements |
|
Redraw elements |
|
Redraw elements |
|
Redraw elements |
|
Redraw elements |
|
Convenience method to look for a tag |
|
Get the current sliders center positions |
|
Definition at line 308 of file vtkKWRange.h. |
|
Definition at line 309 of file vtkKWRange.h. |
|
Definition at line 310 of file vtkKWRange.h. |
|
Definition at line 311 of file vtkKWRange.h. |
|
Definition at line 312 of file vtkKWRange.h. |
|
Definition at line 313 of file vtkKWRange.h. |
|
Definition at line 314 of file vtkKWRange.h. |
|
Definition at line 315 of file vtkKWRange.h. |
|
Definition at line 316 of file vtkKWRange.h. |
|
Definition at line 317 of file vtkKWRange.h. |
|
Definition at line 318 of file vtkKWRange.h. |
|
Definition at line 319 of file vtkKWRange.h. |
|
Definition at line 320 of file vtkKWRange.h. |
|
Definition at line 321 of file vtkKWRange.h. |
|
Definition at line 322 of file vtkKWRange.h. |
|
Definition at line 323 of file vtkKWRange.h. |
|
Definition at line 324 of file vtkKWRange.h. |
|
Definition at line 325 of file vtkKWRange.h. |
|
Definition at line 326 of file vtkKWRange.h. |
|
Definition at line 327 of file vtkKWRange.h. |
|
Definition at line 329 of file vtkKWRange.h. |
|
Definition at line 330 of file vtkKWRange.h. |
|
Definition at line 331 of file vtkKWRange.h. |
|
Definition at line 333 of file vtkKWRange.h. |
|
Definition at line 335 of file vtkKWRange.h. |
|
Definition at line 336 of file vtkKWRange.h. |
|
Definition at line 337 of file vtkKWRange.h. |
|
Definition at line 338 of file vtkKWRange.h. |
|
Definition at line 340 of file vtkKWRange.h. |
|
Definition at line 341 of file vtkKWRange.h. |
|
Definition at line 342 of file vtkKWRange.h. |