VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkRenderWidget Class Reference

#include <vtkRenderWidget.h>

Inheritance diagram for vtkRenderWidget:
Inheritance graph
[legend]
Collaboration diagram for vtkRenderWidget:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkRenderWidgetNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void SetPosition (const vtkVector2i &pos)
 Set the widget position in screen coordinates.
vtkVector2i GetPosition () const
 Get the widget position in screen coordinates.
void SetSize (const vtkVector2i &size)
 Set the widget size in screen coordinates.
vtkVector2i GetSize () const
 Get the widget size in screen coordinates.
void SetName (const std::string &name)
 Set the name of the widget.
std::string GetName () const
 Get the name of the widget.
virtual void Render ()
 Render everything in the current widget.
virtual void MakeCurrent ()
 Make the widget's context current, this will defer to the OS specific methods, and calls should be kept to a minimum as they are quite expensive.
void Initialize ()
void Start ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkRenderWidgetSafeDownCast (vtkObjectBase *o)
static vtkRenderWidgetNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkRenderWidget ()
 ~vtkRenderWidget ()

Protected Attributes

vtkVector2i Position
vtkVector2i Size
std::string Name
vtkNew
< vtkAbstractInteractionDevice
InteractionDevice
vtkNew< vtkAbstractRenderDeviceRenderDevice

Detailed Description

Definition at line 26 of file vtkRenderWidget.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 29 of file vtkRenderWidget.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkRenderWidget::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkRenderWidget::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkRenderWidget::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkRenderWidget::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

static vtkRenderWidget* vtkRenderWidget::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

Set the widget position in screen coordinates.

Parameters:
posThe position of the widget in screen coordinates.

Get the widget position in screen coordinates.

Returns:
The position of the widget in screen coordinates, default of 0, 0.

Definition at line 43 of file vtkRenderWidget.h.

void vtkRenderWidget::SetSize ( const vtkVector2i size)

Set the widget size in screen coordinates.

Parameters:
sizeThe width and height of the widget in screen coordinates

Get the widget size in screen coordinates.

Returns:
The width and height of the widget in screen coordinates, default of 300x300.

Definition at line 56 of file vtkRenderWidget.h.

void vtkRenderWidget::SetName ( const std::string &  name)

Set the name of the widget.

Parameters:
nameThe name to set to the window.
std::string vtkRenderWidget::GetName ( ) const [inline]

Get the name of the widget.

Returns:
The current name of the widget.

Definition at line 68 of file vtkRenderWidget.h.

virtual void vtkRenderWidget::Render ( ) [virtual]

Render everything in the current widget.

virtual void vtkRenderWidget::MakeCurrent ( ) [virtual]

Make the widget's context current, this will defer to the OS specific methods, and calls should be kept to a minimum as they are quite expensive.


Member Data Documentation

Definition at line 89 of file vtkRenderWidget.h.

Definition at line 90 of file vtkRenderWidget.h.

std::string vtkRenderWidget::Name [protected]

Definition at line 91 of file vtkRenderWidget.h.

Definition at line 93 of file vtkRenderWidget.h.

Definition at line 94 of file vtkRenderWidget.h.


The documentation for this class was generated from the following file: