matrix widget More...
#include <vtkKWMatrixWidget.h>


Public Types | |
| typedef vtkKWCompositeWidget | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual void | SetElementChangedCommand (vtkObject *object, const char *method) |
| virtual void | UpdateEnableState () |
| virtual void | ElementChangedCallback (int id, const char *value) |
Static Public Member Functions | |
| static vtkKWMatrixWidget * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkKWMatrixWidget * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkKWMatrixWidget () | |
| virtual | ~vtkKWMatrixWidget () |
| void | InvokeElementChangedCommand (int row, int col, const char *value) |
Protected Attributes | |
| int | NumberOfColumns |
| int | NumberOfRows |
| int | ElementWidth |
| int | ReadOnly |
| int | RestrictElementValue |
| int | ElementChangedCommandTrigger |
| vtkKWEntrySet * | EntrySet |
| char * | ElementChangedCommand |
|
| |
| enum | { RestrictNone = 0, RestrictInteger, RestrictDouble } |
| enum | { ElementChangedEvent = 10000 } |
| enum | { TriggerOnFocusOut = 1, TriggerOnReturnKey = 2, TriggerOnAnyChange = 4 } |
| virtual void | SetNumberOfColumns (int col) |
| virtual int | GetNumberOfColumns () |
| virtual void | SetNumberOfRows (int col) |
| virtual int | GetNumberOfRows () |
| virtual void | SetElementValue (int row, int col, const char *val) |
| virtual const char * | GetElementValue (int row, int col) |
| virtual void | SetElementValueAsInt (int row, int col, int val) |
| virtual int | GetElementValueAsInt (int row, int col) |
| virtual void | SetElementValueAsDouble (int row, int col, double val) |
| virtual double | GetElementValueAsDouble (int row, int col) |
| virtual void | SetElementWidth (int width) |
| virtual int | GetElementWidth () |
| virtual void | SetReadOnly (int) |
| virtual void | ReadOnlyOn () |
| virtual void | ReadOnlyOff () |
| virtual int | GetReadOnly () |
| virtual int | GetRestrictElementValue () |
| virtual void | SetRestrictElementValue (int) |
| virtual void | SetRestrictElementValueToInteger () |
| virtual void | SetRestrictElementValueToDouble () |
| virtual void | SetRestrictElementValueToNone () |
| virtual int | GetElementChangedCommandTrigger () |
| virtual void | SetElementChangedCommandTrigger (int) |
| virtual void | SetElementChangedCommandTriggerToReturnKeyAndFocusOut () |
| virtual void | SetElementChangedCommandTriggerToAnyChange () |
| virtual void | CreateWidget () |
| virtual void | UpdateWidget () |
matrix widget
vtkKWMatrixWidget is a widget containing entries that help view and edit a matrix.
Definition at line 37 of file vtkKWMatrixWidget.h.
Reimplemented from vtkKWCompositeWidget.
Definition at line 42 of file vtkKWMatrixWidget.h.
| anonymous enum |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
Definition at line 79 of file vtkKWMatrixWidget.h.
| anonymous enum |
Events. The ElementChangedEvent is triggered when the value of an element in the matrix has changed. The following parameters are also passed as client data: - the element location, i.e. its row and column indices: int, int - the element's new value: const char* Note that given the heterogeneous nature of types passed as client data, you should treat it as an array of void*[3], each one a pointer to the parameter (i.e., &int, &int, &const char*). BTX
Definition at line 111 of file vtkKWMatrixWidget.h.
| anonymous enum |
Specify when ElementChangedCommand should be invoked. Default to losing focus and return key in the entry. BTX
Definition at line 121 of file vtkKWMatrixWidget.h.
| vtkKWMatrixWidget::vtkKWMatrixWidget | ( | ) | [protected] |
| virtual vtkKWMatrixWidget::~vtkKWMatrixWidget | ( | ) | [protected, virtual] |
| static vtkKWMatrixWidget* vtkKWMatrixWidget::New | ( | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
| virtual const char* vtkKWMatrixWidget::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
| static int vtkKWMatrixWidget::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
| virtual int vtkKWMatrixWidget::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
| static vtkKWMatrixWidget* vtkKWMatrixWidget::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
| void vtkKWMatrixWidget::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
| virtual void vtkKWMatrixWidget::SetNumberOfColumns | ( | int | col | ) | [virtual] |
Set/Get the matrix size. Default to 1x1.
| virtual int vtkKWMatrixWidget::GetNumberOfColumns | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetNumberOfRows | ( | int | col | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual int vtkKWMatrixWidget::GetNumberOfRows | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementValue | ( | int | row, | |
| int | col, | |||
| const char * | val | |||
| ) | [virtual] |
Set/Get the value of a given element.
| virtual const char* vtkKWMatrixWidget::GetElementValue | ( | int | row, | |
| int | col | |||
| ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementValueAsInt | ( | int | row, | |
| int | col, | |||
| int | val | |||
| ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual int vtkKWMatrixWidget::GetElementValueAsInt | ( | int | row, | |
| int | col | |||
| ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementValueAsDouble | ( | int | row, | |
| int | col, | |||
| double | val | |||
| ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual double vtkKWMatrixWidget::GetElementValueAsDouble | ( | int | row, | |
| int | col | |||
| ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementWidth | ( | int | width | ) | [virtual] |
The width is the number of charaters each element can fit.
| virtual int vtkKWMatrixWidget::GetElementWidth | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetReadOnly | ( | int | ) | [virtual] |
Set/Get readonly flag. This flags makes each element read only.
| virtual void vtkKWMatrixWidget::ReadOnlyOn | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::ReadOnlyOff | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual int vtkKWMatrixWidget::GetReadOnly | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual int vtkKWMatrixWidget::GetRestrictElementValue | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetRestrictElementValue | ( | int | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetRestrictElementValueToInteger | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetRestrictElementValueToDouble | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetRestrictElementValueToNone | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementChangedCommand | ( | vtkObject * | object, | |
| const char * | method | |||
| ) | [virtual] |
Specifies a command to be invoked when the value of an element in the matrix has changed. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. The following parameters are also passed to the command: - the element location, i.e. its row and column indices: int, int - the element's new value: const char*
| virtual int vtkKWMatrixWidget::GetElementChangedCommandTrigger | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementChangedCommandTrigger | ( | int | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementChangedCommandTriggerToReturnKeyAndFocusOut | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::SetElementChangedCommandTriggerToAnyChange | ( | ) | [virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| virtual void vtkKWMatrixWidget::UpdateEnableState | ( | ) | [virtual] |
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 vtkKWWidget.
| virtual void vtkKWMatrixWidget::ElementChangedCallback | ( | int | id, | |
| const char * | value | |||
| ) | [virtual] |
Callbacks.
| virtual void vtkKWMatrixWidget::CreateWidget | ( | ) | [protected, virtual] |
Create the widget.
Reimplemented from vtkKWCompositeWidget.
| virtual void vtkKWMatrixWidget::UpdateWidget | ( | ) | [protected, virtual] |
Restrict the value of an element to a given type (integer, double, or no restriction). BTX
| void vtkKWMatrixWidget::InvokeElementChangedCommand | ( | int | row, | |
| int | col, | |||
| const char * | value | |||
| ) | [protected] |
int vtkKWMatrixWidget::NumberOfColumns [protected] |
Definition at line 151 of file vtkKWMatrixWidget.h.
int vtkKWMatrixWidget::NumberOfRows [protected] |
Definition at line 152 of file vtkKWMatrixWidget.h.
int vtkKWMatrixWidget::ElementWidth [protected] |
Definition at line 154 of file vtkKWMatrixWidget.h.
int vtkKWMatrixWidget::ReadOnly [protected] |
Definition at line 155 of file vtkKWMatrixWidget.h.
int vtkKWMatrixWidget::RestrictElementValue [protected] |
Definition at line 156 of file vtkKWMatrixWidget.h.
int vtkKWMatrixWidget::ElementChangedCommandTrigger [protected] |
Definition at line 157 of file vtkKWMatrixWidget.h.
vtkKWEntrySet* vtkKWMatrixWidget::EntrySet [protected] |
Definition at line 165 of file vtkKWMatrixWidget.h.
char* vtkKWMatrixWidget::ElementChangedCommand [protected] |
Definition at line 167 of file vtkKWMatrixWidget.h.
1.6.1