#include <vtkKWScaleWithEntry.h>
Inheritance diagram for vtkKWScaleWithEntry:
[NOHEADER] | |
enum | { EntryPositionDefault = 0, EntryPositionTop, EntryPositionBottom, EntryPositionLeft, EntryPositionRight } |
virtual void | SetEntryPosition (int) |
virtual int | GetEntryPosition () |
virtual void | SetEntryPositionToDefault () |
virtual void | SetEntryPositionToTop () |
virtual void | SetEntryPositionToBottom () |
virtual void | SetEntryPositionToLeft () |
virtual void | SetEntryPositionToRight () |
Public Types | |
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWScaleWithEntry, vtkKWScaleWithLabel) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
virtual void | SetLabelText (const char *) |
virtual void | SetLabelAndEntryPositionToTop () |
virtual void | SetBalloonHelpString (const char *str) |
virtual void | UpdateEnableState () |
virtual void | SetRange (double min, double max) |
virtual void | SetRange (const double *range) |
virtual double * | GetRange () |
virtual void | GetRange (double &min, double &max) |
virtual void | GetRange (double range[2]) |
virtual double | GetRangeMin () |
virtual double | GetRangeMax () |
virtual void | SetValue (double v) |
virtual double | GetValue () |
virtual void | SetResolution (double r) |
virtual double | GetResolution () |
virtual void | SetClampValue (int) |
virtual int | GetClampValue () |
virtual void | ClampValueOn () |
virtual void | ClampValueOff () |
virtual vtkKWScale * | GetScale () |
void | SetRangeVisibility (int flag) |
virtual int | GetRangeVisibility () |
virtual void | RangeVisibilityOn () |
virtual void | RangeVisibilityOff () |
virtual void | SetEntryVisibility (int) |
virtual void | EntryVisibilityOn () |
virtual void | EntryVisibilityOff () |
virtual int | GetEntryVisibility () |
virtual vtkKWEntry * | GetEntry () |
virtual int | HasEntry () |
virtual void | SetEntryWidth (int width) |
virtual int | GetEntryWidth () |
virtual void | SetPopupMode (int) |
virtual int | GetPopupMode () |
virtual void | PopupModeOn () |
virtual void | PopupModeOff () |
virtual vtkKWPushButton * | GetPopupPushButton () |
virtual void | SetExpandEntry (int flag) |
virtual int | GetExpandEntry () |
virtual void | ExpandEntryOn () |
virtual void | ExpandEntryOff () |
virtual void | SetOrientation (int) |
virtual int | GetOrientation () |
virtual void | SetOrientationToHorizontal () |
virtual void | SetOrientationToVertical () |
virtual void | SetLength (int length) |
virtual int | GetLength () |
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 | SetEntryCommand (vtkObject *object, const char *method) |
virtual void | InvokeEntryCommand () |
virtual void | SetDisableCommands (int) |
virtual int | GetDisableCommands () |
virtual void | DisableCommandsOn () |
virtual void | DisableCommandsOff () |
virtual void | DisplayPopupModeCallback () |
virtual void | WithdrawPopupModeCallback () |
virtual void | EntryValueCallback () |
virtual void | ScaleValueCallback (double num) |
Static Public Member Functions | |
vtkKWScaleWithEntry * | New () |
Protected Member Functions | |
vtkKWScaleWithEntry () | |
~vtkKWScaleWithEntry () | |
virtual void | Pack () |
virtual void | CreateEntry (vtkKWApplication *app) |
void | Bind () |
void | UnBind () |
virtual void | UpdateValue () |
virtual void | SetEntryValue (double num) |
virtual void | UpdateRange () |
Protected Attributes | |
int | PopupMode |
int | RangeVisibility |
char * | EntryCommand |
int | EntryVisibility |
int | EntryPosition |
int | ExpandEntry |
vtkKWTopLevel * | TopLevel |
vtkKWPushButton * | PopupPushButton |
vtkKWLabel * | RangeMinLabel |
vtkKWLabel * | RangeMaxLabel |
A widget that represents a more complex scale (or slider) with options for positioning a label, displaying an entry, working in popup mode, etc. For a more lightweight widget, check vtkKWScale. The label position and visibility can be changed through the vtkKWWidgetWithLabel superclass methods (see SetLabelPosition). The default position for the label is on the left of the scale for horizontal scales, on the right (top corner) for vertical ones. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Both label and entry are visible by default. For convenience purposes, an empty label is not displayed though (make sure you use the SetLabelText method to set the label). In popup mode, a small button replaces the scale. Pressing that button will popup a scale the user can interact with, until it leaves the scale focus, which will withdraw the popup automatically. In that mode, the label and entry position are always displayed side by side, horizontally. Many of the vtkKWScale methods have been added to this API for convenience purposes, but GetScale() can be used to retrieve the internal vtkKWScale and access the rest of the API.
Definition at line 51 of file vtkKWScaleWithEntry.h.
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX
Definition at line 159 of file vtkKWScaleWithEntry.h. |
|
|
|
|
|
Reimplemented from vtkKWScaleWithLabel. |
|
|
|
Reimplemented from vtkKWScaleWithLabel. |
|
Create the widget. Reimplemented from vtkKWScaleWithLabel. |
|
Set the range for this scale. |
|
Set the range for this scale. Definition at line 64 of file vtkKWScaleWithEntry.h. |
|
Set the range for this scale. |
|
Set the range for this scale. |
|
Set the range for this scale. Definition at line 68 of file vtkKWScaleWithEntry.h. |
|
Set the range for this scale. Definition at line 70 of file vtkKWScaleWithEntry.h. |
|
Set the range for this scale. Definition at line 71 of file vtkKWScaleWithEntry.h. |
|
Set/Get the value of the scale. |
|
Set/Get the value of the scale. |
|
Method to set/get the resolution of the slider. |
|
Method to set/get the resolution of the slider. |
|
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. |
|
Get the internal vtkKWScale. Retrive that object to set the resolution, range, value, etc. Definition at line 97 of file vtkKWScaleWithEntry.h. References vtkKWScaleWithLabel::GetWidget(). |
|
Set/get whether to display the range of the scale. If the scale orientation is horizontal, the min is displayed on the left of the scale, the max range on the right. For vertical orientation, min is on top, max at the bottom. In popup mode, the range is displayed directly in the popup window using the same layout as above. |
|
Set/get whether to display the range of the scale. If the scale orientation is horizontal, the min is displayed on the left of the scale, the max range on the right. For vertical orientation, min is on top, max at the bottom. In popup mode, the range is displayed directly in the popup window using the same layout as above. |
|
Set/get whether to display the range of the scale. If the scale orientation is horizontal, the min is displayed on the left of the scale, the max range on the right. For vertical orientation, min is on top, max at the bottom. In popup mode, the range is displayed directly in the popup window using the same layout as above. |
|
Set/get whether to display the range of the scale. If the scale orientation is horizontal, the min is displayed on the left of the scale, the max range on the right. For vertical orientation, min is on top, max at the bottom. In popup mode, the range is displayed directly in the popup window using the same layout as above. |
|
Set/Get the internal entry visibility (On by default). IMPORTANT: if you know you may not show the entry, try to set that flag as early as possible (ideally, before calling Create()) in order to lower the footprint of the widget: the entry will not be allocated and created if there is no need to show it. Later on, you can still use that option to show the entry: it will be allocated and created on the fly. |
|
Set/Get the internal entry visibility (On by default). IMPORTANT: if you know you may not show the entry, try to set that flag as early as possible (ideally, before calling Create()) in order to lower the footprint of the widget: the entry will not be allocated and created if there is no need to show it. Later on, you can still use that option to show the entry: it will be allocated and created on the fly. |
|
Set/Get the internal entry visibility (On by default). IMPORTANT: if you know you may not show the entry, try to set that flag as early as possible (ideally, before calling Create()) in order to lower the footprint of the widget: the entry will not be allocated and created if there is no need to show it. Later on, you can still use that option to show the entry: it will be allocated and created on the fly. |
|
Set/Get the internal entry visibility (On by default). IMPORTANT: if you know you may not show the entry, try to set that flag as early as possible (ideally, before calling Create()) in order to lower the footprint of the widget: the entry will not be allocated and created if there is no need to show it. Later on, you can still use that option to show the entry: it will be allocated and created on the fly. |
|
Convenience method to set the contents label. IMPORTANT: this method will create the label on the fly, use it only if you are confident that you will indeed display the label. Override the superclass so that the label is packed/unpacked if the text value is an empty string. Reimplemented from vtkKWWidgetWithLabel. |
|
Get the internal entry. IMPORTANT: the internal entry is "lazy created", i.e. it is neither allocated nor created until GetEntry() is called. This allows for a lower footprint and faster UI startup. Therefore, do *not* use GetEntry() to check if the entry exists, as it will automatically allocate the entry. Use HasEntry() instead. |
|
Get the internal entry. IMPORTANT: the internal entry is "lazy created", i.e. it is neither allocated nor created until GetEntry() is called. This allows for a lower footprint and faster UI startup. Therefore, do *not* use GetEntry() to check if the entry exists, as it will automatically allocate the entry. Use HasEntry() instead. |
|
Convenience method to set/get the entry width. IMPORTANT: this method will create the entry on the fly, use it only if you are confident that you will indeed display the entry. |
|
Convenience method to set/get the entry width. IMPORTANT: this method will create the entry on the fly, use it only if you are confident that you will indeed display the entry. |
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX |
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX |
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX Definition at line 170 of file vtkKWScaleWithEntry.h. References EntryPositionDefault. |
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX Definition at line 172 of file vtkKWScaleWithEntry.h. References EntryPositionTop. |
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX Definition at line 174 of file vtkKWScaleWithEntry.h. References EntryPositionBottom. |
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX Definition at line 176 of file vtkKWScaleWithEntry.h. References EntryPositionLeft. |
|
If supported, set the entry position in regards to the rest of the composite widget. Check the subclass for more information about what the Default position is, and if specific positions are supported. The default position for the entry is on the right of the scale for horizontal scales, on the right (bottom corner) for vertical ones. Remember that the label position and visibility can also be changed through the vtkKWWidgetWithLabel superclass methods (SetLabelPosition). BTX Definition at line 178 of file vtkKWScaleWithEntry.h. References EntryPositionRight. |
|
Convenience method to set both the label and entry position to the top of the scale (label in the left corner, entry in the right corner) |
|
Set/Get a popup scale. WARNING: must be set *before* Create() is called. |
|
Set/Get a popup scale. WARNING: must be set *before* Create() is called. |
|
Set/Get a popup scale. WARNING: must be set *before* Create() is called. |
|
Set/Get a popup scale. WARNING: must be set *before* Create() is called. |
|
Set/Get a popup scale. WARNING: must be set *before* Create() is called. |
|
Set/Get the entry expansion flag. This flag is only used if PopupMode mode is On. In that case, the default behaviour is to provide a widget as compact as possible, i.e. the Entry won't be expanded if the widget grows. Set ExpandEntry to On to override this behaviour. |
|
Set/Get the entry expansion flag. This flag is only used if PopupMode mode is On. In that case, the default behaviour is to provide a widget as compact as possible, i.e. the Entry won't be expanded if the widget grows. Set ExpandEntry to On to override this behaviour. |
|
Set/Get the entry expansion flag. This flag is only used if PopupMode mode is On. In that case, the default behaviour is to provide a widget as compact as possible, i.e. the Entry won't be expanded if the widget grows. Set ExpandEntry to On to override this behaviour. |
|
Set/Get the entry expansion flag. This flag is only used if PopupMode mode is On. In that case, the default behaviour is to provide a widget as compact as possible, i.e. the Entry won't be expanded if the widget grows. Set ExpandEntry to On to override this behaviour. |
|
Set/Get the orientation type. For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scales, this option specifies which orientation should be used. Valid constants can be found in vtkKWTkOptions::OrientationType. |
|
Set/Get the orientation type. For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scales, this option specifies which orientation should be used. Valid constants can be found in vtkKWTkOptions::OrientationType. |
|
Set/Get the orientation type. For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scales, this option specifies which orientation should be used. Valid constants can be found in vtkKWTkOptions::OrientationType. Definition at line 213 of file vtkKWScaleWithEntry.h. |
|
Set/Get the orientation type. For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scales, this option specifies which orientation should be used. Valid constants can be found in vtkKWTkOptions::OrientationType. Definition at line 215 of file vtkKWScaleWithEntry.h. |
|
Set/Get the desired long dimension of the scale. For vertical scales this is the scale's height, for horizontal scales it is the scale's width. In pixel. |
|
Set/Get the desired long dimension of the scale. For vertical scales this is the scale's height, for horizontal scales it is the scale's width. In pixel. |
|
Specifies commands to associate with the widget. The first argument is the object that will have the method called on it. The second argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is evaluated as a simple command. |
|
Specifies commands to associate with the widget. The first argument is the object that will have the method called on it. The second argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is evaluated as a simple command. |
|
Specifies commands to associate with the widget. The first argument is the object that will have the method called on it. The second argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is evaluated as a simple command. |
|
Specifies commands to associate with the widget. The first argument is the object that will have the method called on it. The second argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is evaluated as a simple command. |
|
Specifies commands to associate with the widget. The first argument is the object that will have the method called on it. The second argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is evaluated as a simple command. |
|
Set/get whether the above commands should be called or not. This make it easier to disable the commands while setting the scale value for example. |
|
Set/get whether the above commands should be called or not. This make it easier to disable the commands while setting the scale value for example. |
|
Set/get whether the above commands should be called or not. This make it easier to disable the commands while setting the scale value for example. |
|
Set/get whether the above commands should be called or not. This make it easier to disable the commands while setting the scale value for example. |
|
Setting this string enables balloon help for this widget. Override to pass down to children for cleaner behavior Reimplemented from vtkKWScaleWithLabel. |
|
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 vtkKWScaleWithLabel. |
|
Callbacks. Internal, do not use. |
|
Callbacks. Internal, do not use. |
|
Callbacks. Internal, do not use. |
|
Callbacks. Internal, do not use. |
|
Bind/Unbind all components so that values can be changed, but no command will be called. |
|
Bind/Unbind all components so that values can be changed, but no command will be called. |
|
Pack or repack the widget. To be implemented by subclasses. Reimplemented from vtkKWScaleWithLabel. |
|
Create the entry |
|
Update internal widgets value |
|
Update internal widgets value |
|
Update internal widgets value |
|
Definition at line 280 of file vtkKWScaleWithEntry.h. |
|
Definition at line 281 of file vtkKWScaleWithEntry.h. |
|
Definition at line 283 of file vtkKWScaleWithEntry.h. |
|
Definition at line 284 of file vtkKWScaleWithEntry.h. |
|
Definition at line 285 of file vtkKWScaleWithEntry.h. |
|
Definition at line 286 of file vtkKWScaleWithEntry.h. |
|
Definition at line 288 of file vtkKWScaleWithEntry.h. |
|
Definition at line 289 of file vtkKWScaleWithEntry.h. |
|
Definition at line 291 of file vtkKWScaleWithEntry.h. |
|
Definition at line 292 of file vtkKWScaleWithEntry.h. |