#include <vtkKWSimpleAnimationWidget.h>
Inheritance diagram for vtkKWSimpleAnimationWidget:
[NOHEADER] | |
enum | { AnimationTypeCamera = 0, AnimationTypeSlice } |
virtual void | SetAnimationType (int) |
virtual int | GetAnimationType () |
virtual void | SetAnimationTypeToCamera () |
virtual void | SetAnimationTypeToSlice () |
[NOHEADER] | |
enum | { AnimationStopped = 0, AnimationPreviewing, AnimationCreating, AnimationCancelled } |
int | AnimationStatus |
Public Types | |
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWSimpleAnimationWidget, vtkKWCompositeWidget) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
virtual void | Update () |
virtual void | UpdateEnableState () |
virtual vtkKWRenderWidget * | GetRenderWidget () |
virtual void | SetRenderWidget (vtkKWRenderWidget *) |
virtual void | SetSliceSetCommand (vtkObject *object, const char *method) |
virtual void | InvokeSliceSetCommand (int) |
virtual void | SetSliceGetCommand (vtkObject *object, const char *method) |
virtual int | InvokeSliceGetCommand () |
virtual void | SetSliceGetMinAndMaxCommands (vtkObject *object, const char *get_min_method, const char *get_max_method) |
virtual int | InvokeSliceGetMinCommand () |
virtual int | InvokeSliceGetMaxCommand () |
virtual void | SetSlicePostAnimationCommand (vtkObject *object, const char *method) |
virtual void | InvokeSlicePostAnimationCommand () |
virtual void | SetCameraPostAnimationCommand (vtkObject *object, const char *method) |
virtual void | InvokeCameraPostAnimationCommand () |
virtual void | PreviewAnimationCallback () |
virtual void | CreateAnimationCallback () |
virtual void | CancelAnimationCallback () |
Static Public Member Functions | |
vtkKWSimpleAnimationWidget * | New () |
Protected Types | |
Protected Member Functions | |
vtkKWSimpleAnimationWidget () | |
~vtkKWSimpleAnimationWidget () | |
virtual void | PreviewCameraAnimation () |
virtual void | CreateCameraAnimation (const char *file_root, const char *ext, int width, int height) |
virtual void | PerformCameraAnimation (const char *file_root, const char *ext, int width, int height) |
virtual void | PreviewSliceAnimation () |
virtual void | CreateSliceAnimation (const char *file_root, const char *ext, int width, int height) |
virtual void | PerformSliceAnimation (const char *file_root, const char *ext, int width, int height) |
virtual void | DisableButtonsButCancel () |
virtual void | EnableButtonsButCancel () |
Protected Attributes | |
vtkKWRenderWidget * | RenderWidget |
vtkKWScaleWithEntrySet * | Parameters |
vtkKWPushButtonSet * | AnimationButtonSet |
vtkKWLabelWithLabel * | HelpLabel |
int | AnimationType |
char * | CameraPostAnimationCommand |
char * | SlicePostAnimationCommand |
char * | SliceGetCommand |
char * | SliceGetMinCommand |
char * | SliceGetMaxCommand |
char * | SliceSetCommand |
This widget provides some simple controls and means to create an animation for either a 3D or a 2D scene. It supports two animation type. The first one, 'Camera' provides a user interface to rotate the camera in the scene. The second one, 'Slice' provides a different user interface to slice through a volume for example (say, display all the slices along the sagittal axis of a medical dataset). No explicit reference is made to the dataset, but callbacks must be set so that this widget can set or get the slice value on the approriate external resource.
Definition at line 43 of file vtkKWSimpleAnimationWidget.h.
|
Set/Get the animation type. If set to 'camera', the widget will display controls to rotate the camera only the 3-axes. If set to 'slice', the widget will display controls to iterate over a range of slice. It is meant to actually slice through a 3D volume. This 'slice' modes requires several callbacks to be also defined. BTX Definition at line 65 of file vtkKWSimpleAnimationWidget.h. |
|
Animation status BTX Definition at line 161 of file vtkKWSimpleAnimationWidget.h. |
|
|
|
|
|
Reimplemented from vtkKWCompositeWidget. |
|
|
|
Reimplemented from vtkKWCompositeWidget. |
|
Set/Get the renderwidget to perform the animation on |
|
Set/Get the renderwidget to perform the animation on |
|
Create the widget. Reimplemented from vtkKWCompositeWidget. |
|
Set/Get the animation type. If set to 'camera', the widget will display controls to rotate the camera only the 3-axes. If set to 'slice', the widget will display controls to iterate over a range of slice. It is meant to actually slice through a 3D volume. This 'slice' modes requires several callbacks to be also defined. BTX |
|
Set/Get the animation type. If set to 'camera', the widget will display controls to rotate the camera only the 3-axes. If set to 'slice', the widget will display controls to iterate over a range of slice. It is meant to actually slice through a 3D volume. This 'slice' modes requires several callbacks to be also defined. BTX |
|
Set/Get the animation type. If set to 'camera', the widget will display controls to rotate the camera only the 3-axes. If set to 'slice', the widget will display controls to iterate over a range of slice. It is meant to actually slice through a 3D volume. This 'slice' modes requires several callbacks to be also defined. BTX Definition at line 73 of file vtkKWSimpleAnimationWidget.h. References AnimationTypeCamera. |
|
Set/Get the animation type. If set to 'camera', the widget will display controls to rotate the camera only the 3-axes. If set to 'slice', the widget will display controls to iterate over a range of slice. It is meant to actually slice through a 3D volume. This 'slice' modes requires several callbacks to be also defined. BTX Definition at line 76 of file vtkKWSimpleAnimationWidget.h. References AnimationTypeSlice. |
|
Set the command to invoke to set the slice value on an external object when the animation is in 'slice' mode. This command is passed an int (the slice value). This command is mandatory for the slice animation to work. |
|
Set the command to invoke to set the slice value on an external object when the animation is in 'slice' mode. This command is passed an int (the slice value). This command is mandatory for the slice animation to work. |
|
Set the command to invoke to get the slice value from an external object when the animation is in 'slice' mode. This command should return an int (the slice value). This command is optional for the slice animation to work but will guarantee that the slice is set back to its proper value once the animation has been performed. |
|
Set the command to invoke to get the slice value from an external object when the animation is in 'slice' mode. This command should return an int (the slice value). This command is optional for the slice animation to work but will guarantee that the slice is set back to its proper value once the animation has been performed. |
|
Set the commands to invoke to get the minimum and maximum value of the slice range from an external object when the animation is in 'slice' mode. These commands should return an int (the min and max). These commands are mandatory for the slice animation to work. |
|
Set the commands to invoke to get the minimum and maximum value of the slice range from an external object when the animation is in 'slice' mode. These commands should return an int (the min and max). These commands are mandatory for the slice animation to work. |
|
Set the commands to invoke to get the minimum and maximum value of the slice range from an external object when the animation is in 'slice' mode. These commands should return an int (the min and max). These commands are mandatory for the slice animation to work. |
|
Set a command to be invoked after the slice animation has been created/previewed This command is optional. |
|
Set a command to be invoked after the slice animation has been created/previewed This command is optional. |
|
Set a command to be invoked after the camera animation has been created/previewed This command is optional. |
|
Set a command to be invoked after the camera animation has been created/previewed This command is optional. |
|
Update the whole UI depending on the value of the Ivars |
|
Callbacks |
|
Callbacks |
|
Callbacks |
|
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. |
|
Preview and create camera animation |
|
Preview and create camera animation |
|
Preview and create camera animation |
|
Preview and create slice animation |
|
Preview and create slice animation |
|
Preview and create slice animation |
|
Enable/disable animation buttons |
|
Enable/disable animation buttons |
|
Definition at line 149 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 153 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 154 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 155 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 157 of file vtkKWSimpleAnimationWidget.h. |
|
Animation status BTX Definition at line 169 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 172 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 173 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 174 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 175 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 176 of file vtkKWSimpleAnimationWidget.h. |
|
Definition at line 177 of file vtkKWSimpleAnimationWidget.h. |