vtk
Class vtkWindow

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkWindow
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkRenderWindow

public class vtkWindow
extends vtkObject
implements java.io.Serializable

vtkWindow - window superclass for ImageWindow and RenderWindow. vtkWindow is an abstract object to specify the behavior of a rendering or imaging window. It contains vtkViewports. JavaBean wrapper for vtkWindow object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkImageWindow, vtkRenderWindow, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkWindow()
           
protected vtkWindow(int dmy)
           
 
Method Summary
 void doubleBufferOff()
          Keep track of whether double buffering is on or off
 void doubleBufferOn()
          Keep track of whether double buffering is on or off
 void eraseOff()
          Turn on/off erasing the screen between images.
 void eraseOn()
          Turn on/off erasing the screen between images.
 java.lang.String getClassName()
          Return the class name as a string.
 int getDoubleBuffer()
          Keep track of whether double buffering is on or off
 int getDPI()
          Return a best estimate to the dots per inch of the display device being rendered (or printed).
 int getDPIMaxValue()
          Return a best estimate to the dots per inch of the display device being rendered (or printed).
 int getDPIMinValue()
          Return a best estimate to the dots per inch of the display device being rendered (or printed).
 int getErase()
          Turn on/off erasing the screen between images.
 int getMapped()
          Keep track of whether the rendering window has been mapped to screen.
 int getOffScreenRendering()
          Create a window in memory instead of on the screen.
 int getPixelData(int id0, int id1, int id2, int id3, int id4, vtkUnsignedCharArray id5)
          Get the pixel data of an image, transmitted as RGBRGBRGB.
 int[] getPosition()
          Set/Get the position in screen coordinates of the rendering window.
 int[] getSize()
          Set/Get the size of the window in screen coordinates.
 vtkWindow getThisWindow()
           
 int getTileScale()
          These methods are used by vtkWindowToImageFilter to tell a VTK window to simulate a larger window by tiling.
 double[] getTileViewport()
          These methods are used by vtkWindowToImageFilter to tell a VTK window to simulate a larger window by tiling.
 java.lang.String getWindowName()
          Get name of rendering window
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void makeCurrent()
          Make the window current.
 void mappedOff()
          Keep track of whether the rendering window has been mapped to screen.
 void mappedOn()
          Keep track of whether the rendering window has been mapped to screen.
 void offScreenRenderingOff()
          Create a window in memory instead of on the screen.
 void offScreenRenderingOn()
          Create a window in memory instead of on the screen.
 void render()
          Ask each viewport owned by this Window to render its image and synchronize this process.
 void setDoubleBuffer(int id0)
          Keep track of whether double buffering is on or off
 void setDPI(int id0)
          Return a best estimate to the dots per inch of the display device being rendered (or printed).
 void setErase(int id0)
          Turn on/off erasing the screen between images.
 void setMapped(int id0)
          Keep track of whether the rendering window has been mapped to screen.
 void setOffScreenRendering(int id0)
          Create a window in memory instead of on the screen.
 void setParentInfo(java.lang.String id0)
          These are window system independent methods that are used to help interface vtkWindow to native windowing systems.
 void setPosition(int[] id0)
          Set/Get the position in screen coordinates of the rendering window.
 void setPosition(int id0, int id1)
          Set/Get the position in screen coordinates of the rendering window.
 void setSize(int[] id0)
          Set/Get the size of the window in screen coordinates.
 void setSize(int id0, int id1)
          Set/Get the size of the window in screen coordinates.
 void setTileScale(int id0)
          These methods are used by vtkWindowToImageFilter to tell a VTK window to simulate a larger window by tiling.
 void setTileViewport(double[] id0)
          These methods are used by vtkWindowToImageFilter to tell a VTK window to simulate a larger window by tiling.
 void setTileViewport(double id0, double id1, double id2, double id3)
          These methods are used by vtkWindowToImageFilter to tell a VTK window to simulate a larger window by tiling.
 void setWindowInfo(java.lang.String id0)
          These are window system independent methods that are used to help interface vtkWindow to native windowing systems.
 void setWindowName(java.lang.String id0)
          Get name of rendering window
protected  void VTKCastInit()
           
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay, unRegister, VTKInit
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkWindow

public vtkWindow()

vtkWindow

protected vtkWindow(int dmy)
Method Detail

getThisWindow

public vtkWindow getThisWindow()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkObject

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
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 vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
isA in class vtkObject

setWindowInfo

public void setWindowInfo(java.lang.String id0)
These are window system independent methods that are used to help interface vtkWindow to native windowing systems.


setParentInfo

public void setParentInfo(java.lang.String id0)
These are window system independent methods that are used to help interface vtkWindow to native windowing systems.


getPosition

public int[] getPosition()
Set/Get the position in screen coordinates of the rendering window.


setPosition

public void setPosition(int id0,
                        int id1)
Set/Get the position in screen coordinates of the rendering window.


setPosition

public void setPosition(int[] id0)
Set/Get the position in screen coordinates of the rendering window.


getSize

public int[] getSize()
Set/Get the size of the window in screen coordinates.


setSize

public void setSize(int id0,
                    int id1)
Set/Get the size of the window in screen coordinates.


setSize

public void setSize(int[] id0)
Set/Get the size of the window in screen coordinates.


setMapped

public void setMapped(int id0)
Keep track of whether the rendering window has been mapped to screen.


getMapped

public int getMapped()
Keep track of whether the rendering window has been mapped to screen.


mappedOn

public void mappedOn()
Keep track of whether the rendering window has been mapped to screen.


mappedOff

public void mappedOff()
Keep track of whether the rendering window has been mapped to screen.


setErase

public void setErase(int id0)
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.


getErase

public int getErase()
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.


eraseOn

public void eraseOn()
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.


eraseOff

public void eraseOff()
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.


setDoubleBuffer

public void setDoubleBuffer(int id0)
Keep track of whether double buffering is on or off


getDoubleBuffer

public int getDoubleBuffer()
Keep track of whether double buffering is on or off


doubleBufferOn

public void doubleBufferOn()
Keep track of whether double buffering is on or off


doubleBufferOff

public void doubleBufferOff()
Keep track of whether double buffering is on or off


getWindowName

public java.lang.String getWindowName()
Get name of rendering window


setWindowName

public void setWindowName(java.lang.String id0)
Get name of rendering window


render

public void render()
Ask each viewport owned by this Window to render its image and synchronize this process.


getPixelData

public int getPixelData(int id0,
                        int id1,
                        int id2,
                        int id3,
                        int id4,
                        vtkUnsignedCharArray id5)
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.


getDPI

public int getDPI()
Return a best estimate to the dots per inch of the display device being rendered (or printed).


setDPI

public void setDPI(int id0)
Return a best estimate to the dots per inch of the display device being rendered (or printed).


getDPIMinValue

public int getDPIMinValue()
Return a best estimate to the dots per inch of the display device being rendered (or printed).


getDPIMaxValue

public int getDPIMaxValue()
Return a best estimate to the dots per inch of the display device being rendered (or printed).


setOffScreenRendering

public void setOffScreenRendering(int id0)
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.


getOffScreenRendering

public int getOffScreenRendering()
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.


offScreenRenderingOn

public void offScreenRenderingOn()
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.


offScreenRenderingOff

public void offScreenRenderingOff()
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.


makeCurrent

public void makeCurrent()
Make the window current. May be overridden in subclasses to do for example a glXMakeCurrent or a wglMakeCurrent.


setTileScale

public void setTileScale(int id0)
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.


getTileScale

public int getTileScale()
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.


setTileViewport

public void setTileViewport(double id0,
                            double id1,
                            double id2,
                            double id3)
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.


setTileViewport

public void setTileViewport(double[] id0)
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.


getTileViewport

public double[] getTileViewport()
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.


VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkObject


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.