#include <vtkKWRenderWidget.h>
Inheritance diagram for vtkKWRenderWidget:
[NOHEADER] | |
enum | { InteractiveRender = 0, StillRender = 1, DisabledRender = 2, SingleRender = 3 } |
virtual void | SetRenderMode (int) |
virtual int | GetRenderMode () |
virtual void | SetRenderModeToInteractive () |
virtual void | SetRenderModeToStill () |
virtual void | SetRenderModeToSingle () |
virtual void | SetRenderModeToDisabled () |
Public Types | |
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWRenderWidget, vtkKWCompositeWidget) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
virtual void | Close () |
virtual void | Render () |
virtual void | Reset () |
virtual void | ResetCamera () |
vtkCamera * | GetCurrentCamera () |
virtual void | UpdateEnableState () |
virtual int | GetRenderState () |
virtual void | SetRenderState (int) |
virtual void | RenderStateOn () |
virtual void | RenderStateOff () |
virtual void | SetCollapsingRenders (int) |
virtual void | CollapsingRendersOn () |
virtual void | CollapsingRendersOff () |
virtual int | GetCollapsingRenders () |
virtual void | AddBindings () |
virtual void | RemoveBindings () |
virtual void | AddInteractionBindings () |
virtual void | RemoveInteractionBindings () |
virtual void | AddViewProp (vtkProp *prop) |
virtual void | AddOverlayViewProp (vtkProp *prop) |
virtual void | RemoveViewProp (vtkProp *prop) |
virtual int | HasViewProp (vtkProp *prop) |
virtual void | RemoveAllViewProps () |
virtual void | GetRendererBackgroundColor (double *r, double *g, double *b) |
virtual void | SetRendererBackgroundColor (double r, double g, double b) |
virtual void | SetRendererBackgroundColor (double rgb[3]) |
virtual void | SetAnnotationsVisibility (int v) |
virtual void | AnnotationsVisibilityOn () |
virtual void | AnnotationsVisibilityOff () |
virtual void | SetCornerAnnotationVisibility (int v) |
virtual int | GetCornerAnnotationVisibility () |
virtual void | ToggleCornerAnnotationVisibility () |
virtual void | CornerAnnotationVisibilityOn () |
virtual void | CornerAnnotationVisibilityOff () |
virtual void | SetCornerAnnotationColor (double r, double g, double b) |
virtual void | SetCornerAnnotationColor (double *rgb) |
virtual double * | GetCornerAnnotationColor () |
virtual vtkCornerAnnotation * | GetCornerAnnotation () |
virtual void | SetHeaderAnnotationVisibility (int v) |
virtual int | GetHeaderAnnotationVisibility () |
virtual void | ToggleHeaderAnnotationVisibility () |
virtual void | HeaderAnnotationVisibilityOn () |
virtual void | HeaderAnnotationVisibilityOff () |
virtual void | SetHeaderAnnotationColor (double r, double g, double b) |
virtual void | SetHeaderAnnotationColor (double *rgb) |
virtual double * | GetHeaderAnnotationColor () |
virtual void | SetHeaderAnnotationText (const char *) |
virtual char * | GetHeaderAnnotationText () |
virtual vtkTextActor * | GetHeaderAnnotation () |
virtual void | SetDistanceUnits (const char *) |
virtual char * | GetDistanceUnits () |
virtual vtkRenderWindow * | GetRenderWindow () |
virtual vtkKWCoreWidget * | GetVTKWidget () |
virtual vtkRenderer * | GetRenderer () |
virtual vtkRenderer * | GetOverlayRenderer () |
virtual vtkRenderer * | GetNthRenderer (int index) |
virtual int | GetNumberOfRenderers () |
virtual int | GetRendererIndex (vtkRenderer *) |
virtual void | SetPrinting (int arg) |
virtual void | PrintingOn () |
virtual void | PrintingOff () |
virtual int | GetPrinting () |
virtual void | OffScreenRenderingOn () |
virtual void | OffScreenRenderingOff () |
virtual void | SetOffScreenRendering (int) |
virtual int | GetOffScreenRendering () |
virtual void | SetUseContextMenu (int) |
virtual int | GetUseContextMenu () |
virtual void | UseContextMenuOn () |
virtual void | UseContextMenuOff () |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
virtual void | MouseMoveCallback (int num, int x, int y) |
virtual void | MouseWheelCallback (int delta) |
virtual void | MouseButtonPressCallback (int num, int x, int y, int ctrl, int shift) |
virtual void | MouseButtonReleaseCallback (int num, int x, int y) |
virtual void | KeyPressCallback (char key, int x, int y, int ctrl, int shift, char *keysym) |
virtual void | ConfigureCallback (int width, int height) |
virtual void | ExposeCallback () |
virtual void | EnterCallback (int, int) |
virtual void | FocusInCallback () |
virtual void | FocusOutCallback () |
virtual void * | GetMemoryDC () |
virtual void | AddCallbackCommandObservers () |
virtual void | RemoveCallbackCommandObservers () |
Static Public Member Functions | |
vtkKWRenderWidget * | New () |
Protected Member Functions | |
vtkKWRenderWidget () | |
~vtkKWRenderWidget () | |
virtual void | UpdateAccordingToUnits () |
virtual void | SetupMemoryRendering (int width, int height, void *cd) |
virtual void | ResumeScreenRendering () |
virtual void | ProcessCallbackCommandEvents (vtkObject *caller, unsigned long event, void *calldata) |
virtual void | PopulateContextMenu (vtkKWMenu *) |
virtual void | PopulateAnnotationMenu (vtkKWMenu *) |
Protected Attributes | |
vtkKWCoreWidget * | VTKWidget |
vtkRenderWindow * | RenderWindow |
vtkKWGenericRenderWindowInteractor * | Interactor |
vtkCornerAnnotation * | CornerAnnotation |
vtkTextActor * | HeaderAnnotation |
int | RenderMode |
int | PreviousRenderMode |
int | InExpose |
int | RenderState |
int | Printing |
Tcl_TimerToken | InteractorTimerToken |
char * | DistanceUnits |
int | CollapsingRenders |
int | CollapsingRendersCount |
int | UseContextMenu |
vtkKWMenu * | ContextMenu |
This class encapsulates a render window, a renderer and several other objects inside a single widget. Actors and props can be added, annotations can be set.
Definition at line 37 of file vtkKWRenderWidget.h.
|
Set/get the rendering mode. BTX Definition at line 64 of file vtkKWRenderWidget.h. |
|
|
|
|
|
Reimplemented from vtkKWCompositeWidget. |
|
|
|
Reimplemented from vtkKWCompositeWidget. |
|
Create the widget. Reimplemented from vtkKWCompositeWidget. |
|
Close the widget. This method brings the widget back to an empty/clean state. It removes all the actors/props, removes the bindings, resets the annotations, etc. |
|
Render the scene. |
|
Enable/disable rendering. |
|
Enable/disable rendering. |
|
Enable/disable rendering. |
|
Enable/disable rendering. |
|
Set/get the rendering mode. BTX |
|
Set/get the rendering mode. BTX |
|
Set/get the rendering mode. BTX Definition at line 76 of file vtkKWRenderWidget.h. References InteractiveRender. |
|
Set/get the rendering mode. BTX Definition at line 78 of file vtkKWRenderWidget.h. References StillRender. |
|
Set/get the rendering mode. BTX Definition at line 80 of file vtkKWRenderWidget.h. References SingleRender. |
|
Set/get the rendering mode. BTX Definition at line 82 of file vtkKWRenderWidget.h. References DisabledRender. |
|
Set/Get the collapsing of renders. If this is set to true, then all call to Render() will be collapsed. Once this is set to false, if there are any pending render requests, the widget will render. |
|
Set/Get the collapsing of renders. If this is set to true, then all call to Render() will be collapsed. Once this is set to false, if there are any pending render requests, the widget will render. |
|
Set/Get the collapsing of renders. If this is set to true, then all call to Render() will be collapsed. Once this is set to false, if there are any pending render requests, the widget will render. |
|
Set/Get the collapsing of renders. If this is set to true, then all call to Render() will be collapsed. Once this is set to false, if there are any pending render requests, the widget will render. |
|
Reset the widget. This implementation calls ResetCamera() and Render(). |
|
Reset the camera to display all the actors in the scene. |
|
Get the current camera |
|
Add/remove the widget bindings. The AddBindings() method sets up general bindings like the Expose or Configure events so that the scene is rendered properly when the widget is mapped to the screen. It also calls the AddInteractionBindings() which sets up interaction bindings like mouse events, keyboard events, etc. The AddBindings() method is called automatically when the widget is created by the Create() method. Yet, the methods are public so that one can temporarily enable or disable the bindings to limit the interaction with this widget. |
|
Add/remove the widget bindings. The AddBindings() method sets up general bindings like the Expose or Configure events so that the scene is rendered properly when the widget is mapped to the screen. It also calls the AddInteractionBindings() which sets up interaction bindings like mouse events, keyboard events, etc. The AddBindings() method is called automatically when the widget is created by the Create() method. Yet, the methods are public so that one can temporarily enable or disable the bindings to limit the interaction with this widget. |
|
Add/remove the widget bindings. The AddBindings() method sets up general bindings like the Expose or Configure events so that the scene is rendered properly when the widget is mapped to the screen. It also calls the AddInteractionBindings() which sets up interaction bindings like mouse events, keyboard events, etc. The AddBindings() method is called automatically when the widget is created by the Create() method. Yet, the methods are public so that one can temporarily enable or disable the bindings to limit the interaction with this widget. |
|
Add/remove the widget bindings. The AddBindings() method sets up general bindings like the Expose or Configure events so that the scene is rendered properly when the widget is mapped to the screen. It also calls the AddInteractionBindings() which sets up interaction bindings like mouse events, keyboard events, etc. The AddBindings() method is called automatically when the widget is created by the Create() method. Yet, the methods are public so that one can temporarily enable or disable the bindings to limit the interaction with this widget. |
|
Add, remove or query props (actors) inside the widget renderer(s). |
|
Add, remove or query props (actors) inside the widget renderer(s). |
|
Add, remove or query props (actors) inside the widget renderer(s). |
|
Add, remove or query props (actors) inside the widget renderer(s). |
|
Add, remove or query props (actors) inside the widget renderer(s). |
|
Set the background color of the widget renderer(s). |
|
Set the background color of the widget renderer(s). |
|
Set the background color of the widget renderer(s). Definition at line 134 of file vtkKWRenderWidget.h. |
|
Convenience method to set the visibility of all annotations. Subclasses should override this method to propagate this visibility flag to their own annotations. |
|
Convenience method to set the visibility of all annotations. Subclasses should override this method to propagate this visibility flag to their own annotations. |
|
Convenience method to set the visibility of all annotations. Subclasses should override this method to propagate this visibility flag to their own annotations. |
|
Get and control the corner annotation. |
|
Get and control the corner annotation. |
|
Get and control the corner annotation. |
|
Get and control the corner annotation. |
|
Get and control the corner annotation. |
|
Get and control the corner annotation. |
|
Get and control the corner annotation. Definition at line 153 of file vtkKWRenderWidget.h. |
|
Get and control the corner annotation. |
|
Get and control the corner annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. Definition at line 166 of file vtkKWRenderWidget.h. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Get and control the header annotation. |
|
Set/Get the distance units that pixel sizes are measured in |
|
Set/Get the distance units that pixel sizes are measured in |
|
Get the render window |
|
Get the VTK widget |
|
If the widget supports multiple renderers (excluding overlay renderers): GetNthRenderer() gets the Nth renderer (or NULL if it does not exist), GetRendererIndex() gets the id of a given renderer (or -1 if this renderer does not belong to this widget), i.e. its index/position in the list of renderers. Definition at line 196 of file vtkKWRenderWidget.h. |
|
If the widget supports multiple renderers (excluding overlay renderers): GetNthRenderer() gets the Nth renderer (or NULL if it does not exist), GetRendererIndex() gets the id of a given renderer (or -1 if this renderer does not belong to this widget), i.e. its index/position in the list of renderers. |
|
If the widget supports multiple renderers (excluding overlay renderers): GetNthRenderer() gets the Nth renderer (or NULL if it does not exist), GetRendererIndex() gets the id of a given renderer (or -1 if this renderer does not belong to this widget), i.e. its index/position in the list of renderers. |
|
If the widget supports multiple renderers (excluding overlay renderers): GetNthRenderer() gets the Nth renderer (or NULL if it does not exist), GetRendererIndex() gets the id of a given renderer (or -1 if this renderer does not belong to this widget), i.e. its index/position in the list of renderers. |
|
If the widget supports multiple renderers (excluding overlay renderers): GetNthRenderer() gets the Nth renderer (or NULL if it does not exist), GetRendererIndex() gets the id of a given renderer (or -1 if this renderer does not belong to this widget), i.e. its index/position in the list of renderers. |
|
Set/Get the printing flag (i.e., are we printing?) |
|
Set/Get the printing flag (i.e., are we printing?) |
|
Set/Get the printing flag (i.e., are we printing?) |
|
Set/Get the printing flag (i.e., are we printing?) |
|
Set/Get offscreen rendering flag (e.g., for screenshots) |
|
Set/Get offscreen rendering flag (e.g., for screenshots) |
|
Set/Get offscreen rendering flag (e.g., for screenshots) |
|
Set/Get offscreen rendering flag (e.g., for screenshots) |
|
Use a context menu. It is posted by a right click, and allows properties and mode to be controlled. |
|
Use a context menu. It is posted by a right click, and allows properties and mode to be controlled. |
|
Use a context menu. It is posted by a right click, and allows properties and mode to be controlled. |
|
Use a context menu. It is posted by a right click, and allows properties and mode to be controlled. |
|
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. |
|
Overridden for debugging purposes. This class is usually the center of the whole "a vtkTkRenderWidget is being destroyed before its render window" problem. |
|
Overridden for debugging purposes. This class is usually the center of the whole "a vtkTkRenderWidget is being destroyed before its render window" problem. Reimplemented from vtkKWWidget. |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions Definition at line 252 of file vtkKWRenderWidget.h. |
|
Event handlers and useful interactions |
|
Event handlers and useful interactions |
|
Get memory device context (when rendering to memory) |
|
Add all the default observers needed by that object, or remove all the observers that were added through AddCallbackCommandObserver. Subclasses can override these methods to add/remove their own default observers, but should call the superclass too. Reimplemented from vtkKWObject. |
|
Add all the default observers needed by that object, or remove all the observers that were added through AddCallbackCommandObserver. Subclasses can override these methods to add/remove their own default observers, but should call the superclass too. Reimplemented from vtkKWObject. |
|
Update the widget according to the units. Should be called when any units-related ivar has changed. Definition at line 305 of file vtkKWRenderWidget.h. |
|
Setup memory rendering |
|
Setup memory rendering |
|
Processes the events that are passed through CallbackCommand (or others). Subclasses can oberride this method to process their own events, but should call the superclass too. Reimplemented from vtkKWObject. |
|
Populate the context menu Superclass should override this method to populate *and* update this menu with the commands they feel confortable exposing to the user. This implementation calls PopulateAnnotationMenu() to add all annotation relevant entries. |
|
Populate the context menu Superclass should override this method to populate *and* update this menu with the commands they feel confortable exposing to the user. This implementation calls PopulateAnnotationMenu() to add all annotation relevant entries. |
|
Definition at line 284 of file vtkKWRenderWidget.h. |
|
Definition at line 285 of file vtkKWRenderWidget.h. |
|
Definition at line 286 of file vtkKWRenderWidget.h. |
|
Definition at line 287 of file vtkKWRenderWidget.h. |
|
Definition at line 288 of file vtkKWRenderWidget.h. |
|
Definition at line 290 of file vtkKWRenderWidget.h. |
|
Definition at line 291 of file vtkKWRenderWidget.h. |
|
Definition at line 292 of file vtkKWRenderWidget.h. |
|
Definition at line 293 of file vtkKWRenderWidget.h. |
|
Definition at line 294 of file vtkKWRenderWidget.h. |
|
Definition at line 296 of file vtkKWRenderWidget.h. |
|
Definition at line 298 of file vtkKWRenderWidget.h. |
|
Definition at line 300 of file vtkKWRenderWidget.h. |
|
Definition at line 301 of file vtkKWRenderWidget.h. |
|
Definition at line 323 of file vtkKWRenderWidget.h. |
|
Definition at line 324 of file vtkKWRenderWidget.h. |