vtkWindow Class Reference
#include <vtkWindow.h>
Inheritance diagram for vtkWindow:
[legend]Collaboration diagram for vtkWindow:
[legend]List of all members.
Detailed Description
window superclass for ImageWindow and RenderWindow
vtkWindow is an abstract object to specify the behavior of a rendering or imaging window. It contains vtkViewports.
- See also:
- vtkImageWindow vtkRenderWindow vtkViewport
- Examples:
- vtkWindow (Examples)
Definition at line 35 of file vtkWindow.h.
|
Public Types |
typedef vtkObject | Superclass |
Public Member Functions |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetDisplayId (void *)=0 |
virtual void | SetWindowId (void *)=0 |
virtual void | SetParentId (void *)=0 |
virtual void * | GetGenericDisplayId ()=0 |
virtual void * | GetGenericWindowId ()=0 |
virtual void * | GetGenericParentId ()=0 |
virtual void * | GetGenericContext ()=0 |
virtual void * | GetGenericDrawable ()=0 |
virtual void | SetWindowInfo (char *)=0 |
virtual void | SetParentInfo (char *)=0 |
virtual int * | GetPosition () |
virtual void | SetPosition (int, int) |
virtual void | SetPosition (int a[2]) |
virtual int * | GetSize () |
virtual void | SetSize (int, int) |
virtual void | SetSize (int a[2]) |
virtual void | SetMapped (int) |
virtual int | GetMapped () |
virtual void | MappedOn () |
virtual void | MappedOff () |
virtual void | SetErase (int) |
virtual int | GetErase () |
virtual void | EraseOn () |
virtual void | EraseOff () |
virtual void | SetDoubleBuffer (int) |
virtual int | GetDoubleBuffer () |
virtual void | DoubleBufferOn () |
virtual void | DoubleBufferOff () |
virtual char * | GetWindowName () |
virtual void | SetWindowName (const char *) |
virtual void | Render ()=0 |
virtual unsigned char * | GetPixelData (int, int, int, int, int)=0 |
virtual int | GetPixelData (int, int, int, int, int, vtkUnsignedCharArray *)=0 |
virtual int | GetDPI () |
virtual void | SetDPI (int) |
virtual void | SetOffScreenRendering (int) |
virtual int | GetOffScreenRendering () |
virtual void | OffScreenRenderingOn () |
virtual void | OffScreenRenderingOff () |
virtual void | MakeCurrent () |
virtual void | SetTileScale (int) |
virtual int | GetTileScale () |
virtual void | SetTileViewport (double, double, double, double) |
virtual void | SetTileViewport (double[4]) |
virtual double * | GetTileViewport () |
virtual void | GetTileViewport (double &, double &, double &, double &) |
virtual void | GetTileViewport (double[4]) |
Static Public Member Functions |
static int | IsTypeOf (const char *type) |
static vtkWindow * | SafeDownCast (vtkObject *o) |
Protected Member Functions |
| vtkWindow () |
| ~vtkWindow () |
Protected Attributes |
int | OffScreenRendering |
char * | WindowName |
int | Size [2] |
int | Position [2] |
int | Mapped |
int | Erase |
int | DoubleBuffer |
int | DPI |
double | TileViewport [4] |
int | TileSize [2] |
int | TileScale |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkWindow::vtkWindow |
( |
|
) |
[protected] |
|
vtkWindow::~vtkWindow |
( |
|
) |
[protected] |
|
Member Function Documentation
virtual const char* vtkWindow::GetClassName |
( |
|
) |
[virtual] |
|
static int vtkWindow::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
virtual int vtkWindow::IsA |
( |
const char * |
type |
) |
[virtual] |
|
void vtkWindow::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
virtual void vtkWindow::SetDisplayId |
( |
void * |
|
) |
[pure virtual] |
|
virtual void vtkWindow::SetWindowId |
( |
void * |
|
) |
[pure virtual] |
|
virtual void vtkWindow::SetParentId |
( |
void * |
|
) |
[pure virtual] |
|
virtual void* vtkWindow::GetGenericDisplayId |
( |
|
) |
[pure virtual] |
|
virtual void* vtkWindow::GetGenericWindowId |
( |
|
) |
[pure virtual] |
|
virtual void* vtkWindow::GetGenericParentId |
( |
|
) |
[pure virtual] |
|
virtual void* vtkWindow::GetGenericContext |
( |
|
) |
[pure virtual] |
|
virtual void* vtkWindow::GetGenericDrawable |
( |
|
) |
[pure virtual] |
|
virtual void vtkWindow::SetWindowInfo |
( |
char * |
|
) |
[pure virtual] |
|
virtual void vtkWindow::SetParentInfo |
( |
char * |
|
) |
[pure virtual] |
|
virtual int* vtkWindow::GetPosition |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::SetPosition |
( |
int |
, |
|
|
int |
|
|
) |
[virtual] |
|
virtual void vtkWindow::SetPosition |
( |
int |
a[2] |
) |
[virtual] |
|
virtual int* vtkWindow::GetSize |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::SetSize |
( |
int |
, |
|
|
int |
|
|
) |
[virtual] |
|
virtual void vtkWindow::SetSize |
( |
int |
a[2] |
) |
[virtual] |
|
virtual void vtkWindow::SetMapped |
( |
int |
|
) |
[virtual] |
|
|
Keep track of whether the rendering window has been mapped to screen. |
virtual int vtkWindow::GetMapped |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::MappedOn |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::MappedOff |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::SetErase |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off erasing the screen between images. This allows multiple exposure sequences if turned on. You will need to turn double buffering off or make use of the SwapBuffers methods to prevent you from swapping buffers between exposures. |
virtual int vtkWindow::GetErase |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::EraseOn |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::EraseOff |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::SetDoubleBuffer |
( |
int |
|
) |
[virtual] |
|
|
Keep track of whether double buffering is on or off |
virtual int vtkWindow::GetDoubleBuffer |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::DoubleBufferOn |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::DoubleBufferOff |
( |
|
) |
[virtual] |
|
virtual char* vtkWindow::GetWindowName |
( |
|
) |
[virtual] |
|
|
Get name of rendering window |
virtual void vtkWindow::SetWindowName |
( |
const char * |
|
) |
[virtual] |
|
virtual void vtkWindow::Render |
( |
|
) |
[pure virtual] |
|
virtual unsigned char* vtkWindow::GetPixelData |
( |
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
|
|
) |
[pure virtual] |
|
|
Get the pixel data of an image, transmitted as RGBRGBRGB. The front argument indicates if the front buffer should be used or the back buffer. It is the caller's responsibility to delete the resulting array. It is very important to realize that the memory in this array is organized from the bottom of the window to the top. The origin of the screen is in the lower left corner. The y axis increases as you go up the screen. So the storage of pixels is from left to right and from bottom to top.
Implemented in vtkMesaRenderWindow, and vtkOpenGLRenderWindow. |
virtual int vtkWindow::GetPixelData |
( |
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
vtkUnsignedCharArray * |
|
|
) |
[pure virtual] |
|
virtual int vtkWindow::GetDPI |
( |
|
) |
[virtual] |
|
|
Return a best estimate to the dots per inch of the display device being rendered (or printed). |
virtual void vtkWindow::SetDPI |
( |
int |
|
) |
[virtual] |
|
virtual void vtkWindow::SetOffScreenRendering |
( |
int |
|
) |
[virtual] |
|
virtual int vtkWindow::GetOffScreenRendering |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::OffScreenRenderingOn |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::OffScreenRenderingOff |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::MakeCurrent |
( |
|
) |
[inline, virtual] |
|
virtual void vtkWindow::SetTileScale |
( |
int |
|
) |
[virtual] |
|
|
These methods are used by vtkWindowToImageFilter to tell a VTK window to simulate a larger window by tiling. For 3D geometry these methods have no impact. It is just in handling annotation that this information must be available to the mappers and the coordinate calculations. |
virtual int vtkWindow::GetTileScale |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::SetTileViewport |
( |
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
[virtual] |
|
virtual void vtkWindow::SetTileViewport |
( |
double |
[4] |
) |
[virtual] |
|
virtual double* vtkWindow::GetTileViewport |
( |
|
) |
[virtual] |
|
virtual void vtkWindow::GetTileViewport |
( |
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
|
|
) |
[virtual] |
|
virtual void vtkWindow::GetTileViewport |
( |
double |
[4] |
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following file: