#include <vtkKWPiecewiseFunctionEditor.h>
Inheritance diagram for vtkKWPiecewiseFunctionEditor:
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWPiecewiseFunctionEditor, vtkKWParameterValueHermiteFunctionEditor) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
virtual void | Update () |
virtual void | UpdateEnableState () |
virtual int | MoveFunctionPoint (int id, double parameter, const double *values) |
virtual vtkPiecewiseFunction * | GetPiecewiseFunction () |
virtual void | SetPiecewiseFunction (vtkPiecewiseFunction *) |
virtual vtkColorTransferFunction * | GetPointColorTransferFunction () |
virtual void | SetPointColorTransferFunction (vtkColorTransferFunction *) |
virtual void | SetWindowLevelMode (int) |
virtual void | WindowLevelModeOn () |
virtual void | WindowLevelModeOff () |
virtual int | GetWindowLevelMode () |
virtual void | SetWindowLevelModeButtonVisibility (int) |
virtual void | WindowLevelModeButtonVisibilityOn () |
virtual void | WindowLevelModeButtonVisibilityOff () |
virtual int | GetWindowLevelModeButtonVisibility () |
virtual void | SetWindowLevelModeLockEndPointValue (int) |
virtual void | WindowLevelModeLockEndPointValueOn () |
virtual void | WindowLevelModeLockEndPointValueOff () |
virtual int | GetWindowLevelModeLockEndPointValue () |
virtual void | SetWindowLevel (double window, double level) |
virtual void | SetInteractiveWindowLevel (double window, double level) |
virtual double | GetWindow () |
virtual double | GetLevel () |
virtual void | SetWindowLevelModeChangedCommand (vtkObject *object, const char *method) |
virtual void | InvokeWindowLevelModeChangedCommand () |
virtual void | InvokeFunctionChangedCommand () |
virtual void | InvokeFunctionChangingCommand () |
virtual void | ValueEntryVisibilityOn () |
virtual void | ValueEntryVisibilityOff () |
virtual void | SetValueEntryVisibility (int) |
virtual int | GetValueEntryVisibility () |
virtual vtkKWEntryWithLabel * | GetValueEntry () |
virtual void | ValueEntryCallback () |
virtual void | WindowLevelModeCallback () |
virtual int | HasFunction () |
virtual int | GetFunctionSize () |
virtual unsigned long | GetFunctionMTime () |
virtual int | GetFunctionPointParameter (int id, double *parameter) |
virtual int | GetFunctionPointDimensionality () |
virtual int | FunctionPointCanBeAdded () |
virtual int | FunctionPointCanBeRemoved (int id) |
virtual int | FunctionPointParameterIsLocked (int id) |
virtual int | FunctionPointValueIsLocked (int id) |
Static Public Member Functions | |
vtkKWPiecewiseFunctionEditor * | New () |
Protected Member Functions | |
vtkKWPiecewiseFunctionEditor () | |
~vtkKWPiecewiseFunctionEditor () | |
virtual int | GetMidPointVisibility () |
virtual int | GetFunctionPointColorInCanvas (int id, double rgb[3]) |
virtual void | UpdatePointEntries (int id) |
virtual void | GetLineCoordinates (int id1, int id2, ostrstream *tk_cmd) |
virtual void | UpdatePointsFromWindowLevel (int interactive=0) |
virtual void | UpdateWindowLevelFromPoints () |
virtual unsigned long | GetRedrawFunctionTime () |
virtual int | GetFunctionPointValues (int id, double *values) |
virtual int | SetFunctionPointValues (int id, const double *values) |
virtual int | InterpolateFunctionPointValues (double parameter, double *values) |
virtual int | AddFunctionPoint (double parameter, const double *values, int *id) |
virtual int | SetFunctionPoint (int id, double parameter, const double *values) |
virtual int | RemoveFunctionPoint (int id) |
virtual int | FunctionLineIsSampledBetweenPoints (int id1, int id2) |
virtual int | GetFunctionPointMidPoint (int id, double *pos) |
virtual int | SetFunctionPointMidPoint (int id, double pos) |
virtual int | GetFunctionPointSharpness (int id, double *sharpness) |
virtual int | SetFunctionPointSharpness (int id, double sharpness) |
virtual int | FunctionPointMidPointIsLocked (int id) |
virtual int | FunctionPointSharpnessIsLocked (int id) |
virtual void | Pack () |
virtual void | PackPointEntries () |
virtual void | CreateWindowLevelModeCheckButton (vtkKWApplication *app) |
virtual void | CreateValueEntry (vtkKWApplication *app) |
virtual int | IsTopLeftFrameUsed () |
virtual int | IsPointEntriesFrameUsed () |
Protected Attributes | |
vtkPiecewiseFunction * | PiecewiseFunction |
vtkColorTransferFunction * | PointColorTransferFunction |
int | WindowLevelMode |
int | ValueEntryVisibility |
int | WindowLevelModeButtonVisibility |
int | WindowLevelModeLockEndPointValue |
double | Window |
double | Level |
char * | WindowLevelModeChangedCommand |
vtkKWEntryWithLabel * | ValueEntry |
vtkKWCheckButton * | WindowLevelModeCheckButton |
A widget that allows the user to edit a piecewise function.
Definition at line 36 of file vtkKWPiecewiseFunctionEditor.h.
|
|
|
|
|
Reimplemented from vtkKWWidgetWithLabel. |
|
|
|
Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Get/Set the function Note that the whole parameter range is automatically reset to the function range. |
|
Get/Set the function Note that the whole parameter range is automatically reset to the function range. |
|
Create the widget. Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Update the whole UI depending on the value of the Ivars Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Get/Set a specific function to display in the color ramp. If not specified, the ColorTransferFunction will be used. |
|
Get/Set a specific function to display in the color ramp. If not specified, the ColorTransferFunction will be used. |
|
Set/Get the window/level mode. In that mode: - the end-points parameter are locked (similar to LockEndPointsParameter) - no point can be added or removed (similar to DisableAddAndRemove) - the first and second point have the same value (they move together) - the last and last-1 point have the same value (they move together) - the midpoint and sharpness are set to (0.5 / 0.0) and can not be edited |
|
Set/Get the window/level mode. In that mode: - the end-points parameter are locked (similar to LockEndPointsParameter) - no point can be added or removed (similar to DisableAddAndRemove) - the first and second point have the same value (they move together) - the last and last-1 point have the same value (they move together) - the midpoint and sharpness are set to (0.5 / 0.0) and can not be edited |
|
Set/Get the window/level mode. In that mode: - the end-points parameter are locked (similar to LockEndPointsParameter) - no point can be added or removed (similar to DisableAddAndRemove) - the first and second point have the same value (they move together) - the last and last-1 point have the same value (they move together) - the midpoint and sharpness are set to (0.5 / 0.0) and can not be edited |
|
Set/Get the window/level mode. In that mode: - the end-points parameter are locked (similar to LockEndPointsParameter) - no point can be added or removed (similar to DisableAddAndRemove) - the first and second point have the same value (they move together) - the last and last-1 point have the same value (they move together) - the midpoint and sharpness are set to (0.5 / 0.0) and can not be edited |
|
Set/Get the window/level mode button visibility. Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Set/Get the window/level mode button visibility. Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Set/Get the window/level mode button visibility. Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Set/Get the window/level mode button visibility. Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Set/Get the window/level lock mode. In that mode, provided that WindowLevelMode is On: - the last and last-1 points values are locked (expected to be the same) |
|
Set/Get the window/level lock mode. In that mode, provided that WindowLevelMode is On: - the last and last-1 points values are locked (expected to be the same) |
|
Set/Get the window/level lock mode. In that mode, provided that WindowLevelMode is On: - the last and last-1 points values are locked (expected to be the same) |
|
Set/Get the window/level lock mode. In that mode, provided that WindowLevelMode is On: - the last and last-1 points values are locked (expected to be the same) |
|
Set/Get the window/level. This method will invoke FunctionChangedCommand. Use SetInteractiveWindowLevel to invoke FunctionChangingCommand instead. |
|
Set/Get the window/level. This method will invoke FunctionChangedCommand. Use SetInteractiveWindowLevel to invoke FunctionChangingCommand instead. |
|
Set/Get the window/level. This method will invoke FunctionChangedCommand. Use SetInteractiveWindowLevel to invoke FunctionChangingCommand instead. |
|
Set/Get the window/level. This method will invoke FunctionChangedCommand. Use SetInteractiveWindowLevel to invoke FunctionChangingCommand instead. |
|
Set commands. |
|
Set commands. |
|
Set commands. Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Set commands. Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Set/Get the value entry UI visibility. Not shown if superclass PointEntriesVisibility is set to Off Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Set/Get the value entry UI visibility. Not shown if superclass PointEntriesVisibility is set to Off Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Set/Get the value entry UI visibility. Not shown if superclass PointEntriesVisibility is set to Off Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Set/Get the value entry UI visibility. Not shown if superclass PointEntriesVisibility is set to Off Note: set this parameter to the proper value before calling Create() in order to minimize the footprint of the object. |
|
Access the entry If you need to customize this object, make sure you first set ValueEntryVisibility to On and call Create(). |
|
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 vtkKWParameterValueHermiteFunctionEditor. |
|
Callbacks |
|
Callbacks |
|
Proxy to the function. See protected: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. See protected: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. See protected: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. See protected: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. See protected: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Is point locked, protected, removable ? Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Is point locked, protected, removable ? Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Is point locked, protected, removable ? Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Is point locked, protected, removable ? Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Higher-level methods to manipulate the function. Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Reimplemented from vtkKWParameterValueFunctionInterface. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueHermiteFunctionEditor. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueHermiteFunctionEditor. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueHermiteFunctionEditor. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Implements vtkKWParameterValueHermiteFunctionEditor. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Proxy to the function. Those are low-level manipulators, they do not check if points can be added/removed/locked, it is up to the higer-level methods to do it. IMPLEMENT those functions in the subclasses. See public: section too. Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Set/Get the midpoint visibility in the canvas. The style of the midpoint is a rectangle around the midpoint location. Its color is controlled using MidPointColor. Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Higher-level methods to manipulate the function. Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Redraw the whole function or a specific point, or the line between two points BTX Reimplemented from vtkKWParameterValueFunctionEditor. |
|
|
|
|
|
Pack the widget Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Pack the widget Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Create some objects on the fly (lazy creation, to allow for a smaller footprint) |
|
Create some objects on the fly (lazy creation, to allow for a smaller footprint) |
|
Create some objects on the fly (lazy creation, to allow for a smaller footprint) Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Create some objects on the fly (lazy creation, to allow for a smaller footprint) Reimplemented from vtkKWParameterValueHermiteFunctionEditor. |
|
Redraw. Will actually call, if necessary: RedrawSizeDependentElements: the size of the canvas or the extent of its ranges have changed RedrawPanDependentElements: the visible ranges are panned while their extents are unchanged RedrawFunctionDependentElements: the function has changed (as triggered if GetRedrawFunctionTime(), a monotonically increasing value, has changed. in this implementation, it just calls GetFunctionMTime(), but can be overriden in subclasses to take into account other objects modification time) Reimplemented from vtkKWParameterValueFunctionEditor. |
|
Definition at line 197 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 198 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 200 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 201 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 202 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 203 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 205 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 206 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 219 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 223 of file vtkKWPiecewiseFunctionEditor.h. |
|
Definition at line 224 of file vtkKWPiecewiseFunctionEditor.h. |