OpenGL render window that allows using an external window to render vtk objects.
More...
|
virtual int | IsA (const char *type) |
|
vtkExternalOpenGLRenderWindow * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | Start (void) |
|
void | Render () |
|
virtual bool | IsCurrent () |
|
|
virtual int | GetAutomaticWindowPositionAndResize () |
|
virtual void | SetAutomaticWindowPositionAndResize (int) |
|
virtual void | AutomaticWindowPositionAndResizeOn () |
|
virtual void | AutomaticWindowPositionAndResizeOff () |
|
vtkGenericOpenGLRenderWindow * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | Finalize () |
| Cleans up graphics resources allocated in the context for this VTK scene. More...
|
|
void | Frame () |
| flush the pending drawing operations Class user may to watch for WindowFrameEvent and act on it More...
|
|
void | MakeCurrent () |
| Makes the context current. More...
|
|
bool | IsCurrent () |
| Returns if the context is current. More...
|
|
int | SupportsOpenGL () |
| Returns if OpenGL is supported. More...
|
|
int | IsDirect () |
| Returns if the context is direct. More...
|
|
void | SetFrontBuffer (unsigned int) |
| set the drawing buffers to use More...
|
|
void | SetFrontLeftBuffer (unsigned int) |
|
void | SetFrontRightBuffer (unsigned int) |
|
void | SetBackBuffer (unsigned int) |
|
void | SetBackLeftBuffer (unsigned int) |
|
void | SetBackRightBuffer (unsigned int) |
|
void | PushState () |
| convenience function to push the state and push/init the transform matrices More...
|
|
void | PopState () |
| convenience function to pop the state and pop the transform matrices More...
|
|
void | SetWindowId (void *) |
| does nothing More...
|
|
void * | GetGenericWindowId () |
|
void | SetDisplayId (void *) |
|
void | SetParentId (void *) |
|
void * | GetGenericDisplayId () |
|
void * | GetGenericParentId () |
|
void * | GetGenericContext () |
|
void * | GetGenericDrawable () |
|
void | SetWindowInfo (char *) |
|
void | SetParentInfo (char *) |
|
int * | GetScreenSize () |
|
void | Start () |
|
void | HideCursor () |
|
void | ShowCursor () |
|
void | SetFullScreen (int) |
|
void | WindowRemap () |
|
int | GetEventPending () |
|
void | SetNextWindowId (void *) |
|
void | SetNextWindowInfo (char *) |
|
void | CreateAWindow () |
|
void | DestroyWindow () |
|
vtkGenericOpenGLRenderWindow * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | Finalize () |
| Cleans up graphics resources allocated in the context for this VTK scene. More...
|
|
void | Frame () |
| flush the pending drawing operations Class user may to watch for WindowFrameEvent and act on it More...
|
|
void | MakeCurrent () |
| Makes the context current. More...
|
|
bool | IsCurrent () |
| Returns if the context is current. More...
|
|
int | SupportsOpenGL () |
| Returns if OpenGL is supported. More...
|
|
int | IsDirect () |
| Returns if the context is direct. More...
|
|
void | SetFrontBuffer (unsigned int) |
| set the drawing buffers to use More...
|
|
void | SetFrontLeftBuffer (unsigned int) |
|
void | SetFrontRightBuffer (unsigned int) |
|
void | SetBackBuffer (unsigned int) |
|
void | SetBackLeftBuffer (unsigned int) |
|
void | SetBackRightBuffer (unsigned int) |
|
void | PushState () |
| no-op (for API compat with OpenGL1). More...
|
|
void | PopState () |
| no-op (for API compat with OpenGL1). More...
|
|
void | SetWindowId (void *) |
| does nothing More...
|
|
void * | GetGenericWindowId () |
|
void | SetDisplayId (void *) |
|
void | SetParentId (void *) |
|
void * | GetGenericDisplayId () |
|
void * | GetGenericParentId () |
|
void * | GetGenericContext () |
|
void * | GetGenericDrawable () |
|
void | SetWindowInfo (char *) |
|
void | SetParentInfo (char *) |
|
int * | GetScreenSize () |
|
void | Start () |
|
void | HideCursor () |
|
void | ShowCursor () |
|
void | SetFullScreen (int) |
|
void | WindowRemap () |
|
int | GetEventPending () |
|
void | SetNextWindowId (void *) |
|
void | SetNextWindowInfo (char *) |
|
void | CreateAWindow () |
|
void | DestroyWindow () |
|
void | SetIsDirect (int newValue) |
|
void | SetSupportsOpenGL (int newValue) |
|
void | SetIsCurrent (bool newValue) |
|
void | SetIsDirect (int newValue) |
|
void | SetSupportsOpenGL (int newValue) |
|
void | SetIsCurrent (bool newValue) |
|
vtkOpenGLRenderWindow * | NewInstance () const |
|
virtual void | StereoUpdate () |
|
void | RegisterTextureResource (GLuint id) |
|
int | GetDepthBufferSize () |
|
int | GetColorBufferSizes (int *rgba) |
|
virtual void | OpenGLInit () |
|
virtual void | OpenGLInitState () |
|
virtual void | OpenGLInitContext () |
|
unsigned int | GetBackLeftBuffer () |
|
unsigned int | GetBackRightBuffer () |
|
unsigned int | GetFrontLeftBuffer () |
|
unsigned int | GetFrontRightBuffer () |
|
unsigned int | GetBackBuffer () |
|
unsigned int | GetFrontBuffer () |
|
virtual unsigned long | GetContextCreationTime () |
|
vtkOpenGLExtensionManager * | GetExtensionManager () |
|
vtkOpenGLHardwareSupport * | GetHardwareSupport () |
|
virtual void | WaitForCompletion () |
|
vtkOpenGLRenderWindow * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | Render () |
|
virtual void | StereoUpdate () |
|
void | ActivateTexture (vtkTextureObject *) |
|
void | DeactivateTexture (vtkTextureObject *) |
|
int | GetTextureUnitForTexture (vtkTextureObject *) |
|
int | GetDepthBufferSize () |
|
int | GetColorBufferSizes (int *rgba) |
|
virtual void | OpenGLInit () |
|
virtual void | OpenGLInitState () |
|
virtual void | OpenGLInitContext () |
|
unsigned int | GetBackLeftBuffer () |
|
unsigned int | GetBackRightBuffer () |
|
unsigned int | GetFrontLeftBuffer () |
|
unsigned int | GetFrontRightBuffer () |
|
unsigned int | GetBackBuffer () |
|
unsigned int | GetFrontBuffer () |
|
virtual unsigned long | GetContextCreationTime () |
|
vtkTextureUnitManager * | GetTextureUnitManager () |
|
virtual void | WaitForCompletion () |
|
virtual unsigned char * | GetPixelData (int x, int y, int x2, int y2, int front) |
|
virtual int | GetPixelData (int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data) |
|
virtual int | SetPixelData (int x, int y, int x2, int y2, unsigned char *data, int front) |
|
virtual int | SetPixelData (int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front) |
|
virtual float * | GetRGBAPixelData (int x, int y, int x2, int y2, int front) |
|
virtual int | GetRGBAPixelData (int x, int y, int x2, int y2, int front, vtkFloatArray *data) |
|
virtual int | SetRGBAPixelData (int x, int y, int x2, int y2, float *data, int front, int blend=0) |
|
virtual int | SetRGBAPixelData (int x, int y, int x2, int y2, vtkFloatArray *data, int front, int blend=0) |
|
virtual void | ReleaseRGBAPixelData (float *data) |
|
virtual unsigned char * | GetRGBACharPixelData (int x, int y, int x2, int y2, int front) |
|
virtual int | GetRGBACharPixelData (int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data) |
|
virtual int | SetRGBACharPixelData (int x, int y, int x2, int y2, unsigned char *data, int front, int blend=0) |
|
virtual int | SetRGBACharPixelData (int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front, int blend=0) |
|
virtual float * | GetZbufferData (int x1, int y1, int x2, int y2) |
|
virtual int | GetZbufferData (int x1, int y1, int x2, int y2, float *z) |
|
virtual int | GetZbufferData (int x1, int y1, int x2, int y2, vtkFloatArray *z) |
|
virtual int | SetZbufferData (int x1, int y1, int x2, int y2, float *buffer) |
|
virtual int | SetZbufferData (int x1, int y1, int x2, int y2, vtkFloatArray *buffer) |
|
vtkTextureUnitManager * | GetTextureUnitManager () |
|
virtual unsigned char * | GetPixelData (int x, int y, int x2, int y2, int front) |
|
virtual int | GetPixelData (int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data) |
|
virtual int | SetPixelData (int x, int y, int x2, int y2, unsigned char *data, int front) |
|
virtual int | SetPixelData (int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front) |
|
virtual float * | GetRGBAPixelData (int x, int y, int x2, int y2, int front) |
|
virtual int | GetRGBAPixelData (int x, int y, int x2, int y2, int front, vtkFloatArray *data) |
|
virtual int | SetRGBAPixelData (int x, int y, int x2, int y2, float *data, int front, int blend=0) |
|
virtual int | SetRGBAPixelData (int x, int y, int x2, int y2, vtkFloatArray *data, int front, int blend=0) |
|
virtual void | ReleaseRGBAPixelData (float *data) |
|
virtual unsigned char * | GetRGBACharPixelData (int x, int y, int x2, int y2, int front) |
|
virtual int | GetRGBACharPixelData (int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data) |
|
virtual int | SetRGBACharPixelData (int x, int y, int x2, int y2, unsigned char *data, int front, int blend=0) |
|
virtual int | SetRGBACharPixelData (int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front, int blend=0) |
|
virtual float * | GetZbufferData (int x1, int y1, int x2, int y2) |
|
virtual int | GetZbufferData (int x1, int y1, int x2, int y2, float *z) |
|
virtual int | GetZbufferData (int x1, int y1, int x2, int y2, vtkFloatArray *z) |
|
virtual int | SetZbufferData (int x1, int y1, int x2, int y2, float *buffer) |
|
virtual int | SetZbufferData (int x1, int y1, int x2, int y2, vtkFloatArray *buffer) |
|
virtual vtkOpenGLShaderCache * | GetShaderCache () |
|
virtual void | DrawPixels (int x1, int y1, int x2, int y2, int numComponents, int dataType, void *data) |
|
virtual void | DrawPixels (int dstXmin, int dstYmin, int dstXmax, int dstYmax, int srcXmin, int srcYmin, int srcXmax, int srcYmax, int srcWidth, int srcHeight, int numComponents, int dataType, void *data) |
|
virtual void | DrawPixels (int srcWidth, int srcHeight, int numComponents, int dataType, void *data) |
|
virtual float | GetMaximumHardwareLineWidth () |
|
virtual bool | IsPointSpriteBugPresent () |
|
int | GetDefaultTextureInternalFormat (int vtktype, int numComponents, bool needInteger, bool needFloat) |
|
void | SetContextSupportsOpenGL32 (bool val) |
|
vtkRenderWindow * | NewInstance () const |
|
virtual void | AddRenderer (vtkRenderer *) |
|
void | RemoveRenderer (vtkRenderer *) |
|
int | HasRenderer (vtkRenderer *) |
|
vtkRendererCollection * | GetRenderers () |
|
void | CaptureGL2PSSpecialProps (vtkCollection *specialProps) |
|
virtual void | CopyResultFrame () |
|
virtual vtkRenderWindowInteractor * | MakeRenderWindowInteractor () |
|
const char * | GetStereoTypeAsString () |
|
virtual void | StereoMidpoint () |
|
virtual void | StereoRenderComplete () |
|
virtual int | GetIsPicking () |
|
virtual void | SetIsPicking (int) |
|
virtual void | IsPickingOn () |
|
virtual void | IsPickingOff () |
|
virtual int | CheckInRenderStatus () |
|
virtual void | ClearInRenderStatus () |
|
void | SetInteractor (vtkRenderWindowInteractor *) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
virtual bool | InitializeFromCurrentContext () |
|
virtual bool | IsDrawable () |
|
virtual void | SetForceMakeCurrent () |
|
virtual const char * | ReportCapabilities () |
|
virtual int | GetCapturingGL2PSSpecialProps () |
|
virtual void | SetCursorPosition (int, int) |
|
virtual void | SetCurrentCursor (int) |
|
virtual int | GetCurrentCursor () |
|
virtual int | GetFullScreen () |
|
virtual void | FullScreenOn () |
|
virtual void | FullScreenOff () |
|
virtual void | SetBorders (int) |
|
virtual int | GetBorders () |
|
virtual void | BordersOn () |
|
virtual void | BordersOff () |
|
virtual int | GetStereoCapableWindow () |
|
virtual void | StereoCapableWindowOn () |
|
virtual void | StereoCapableWindowOff () |
|
virtual void | SetStereoCapableWindow (int capable) |
|
virtual int | GetStereoRender () |
|
void | SetStereoRender (int stereo) |
|
virtual void | StereoRenderOn () |
|
virtual void | StereoRenderOff () |
|
virtual void | SetAlphaBitPlanes (int) |
|
virtual int | GetAlphaBitPlanes () |
|
virtual void | AlphaBitPlanesOn () |
|
virtual void | AlphaBitPlanesOff () |
|
virtual void | SetPointSmoothing (int) |
|
virtual int | GetPointSmoothing () |
|
virtual void | PointSmoothingOn () |
|
virtual void | PointSmoothingOff () |
|
virtual void | SetLineSmoothing (int) |
|
virtual int | GetLineSmoothing () |
|
virtual void | LineSmoothingOn () |
|
virtual void | LineSmoothingOff () |
|
virtual void | SetPolygonSmoothing (int) |
|
virtual int | GetPolygonSmoothing () |
|
virtual void | PolygonSmoothingOn () |
|
virtual void | PolygonSmoothingOff () |
|
virtual int | GetStereoType () |
|
virtual void | SetStereoType (int) |
|
void | SetStereoTypeToCrystalEyes () |
|
void | SetStereoTypeToRedBlue () |
|
void | SetStereoTypeToInterlaced () |
|
void | SetStereoTypeToLeft () |
|
void | SetStereoTypeToRight () |
|
void | SetStereoTypeToDresden () |
|
void | SetStereoTypeToAnaglyph () |
|
void | SetStereoTypeToCheckerboard () |
|
void | SetStereoTypeToSplitViewportHorizontal () |
|
void | SetStereoTypeToFake () |
|
virtual void | SetAnaglyphColorSaturation (float) |
|
virtual float | GetAnaglyphColorSaturation () |
|
virtual void | SetAnaglyphColorMask (int, int) |
|
void | SetAnaglyphColorMask (int[2]) |
|
virtual int * | GetAnaglyphColorMask () |
|
virtual void | GetAnaglyphColorMask (int data[2]) |
|
virtual void | SetSwapBuffers (int) |
|
virtual int | GetSwapBuffers () |
|
virtual void | SwapBuffersOn () |
|
virtual void | SwapBuffersOff () |
|
float | GetZbufferDataAtPoint (int x, int y) |
|
virtual int | GetAAFrames () |
|
virtual void | SetAAFrames (int) |
|
virtual int | GetFDFrames () |
|
virtual void | SetFDFrames (int fdFrames) |
|
virtual int | GetUseConstantFDOffsets () |
|
virtual void | SetUseConstantFDOffsets (int) |
|
virtual int | GetSubFrames () |
|
virtual void | SetSubFrames (int subFrames) |
|
virtual int | GetNeverRendered () |
|
virtual int | GetAbortRender () |
|
virtual void | SetAbortRender (int) |
|
virtual int | GetInAbortCheck () |
|
virtual void | SetInAbortCheck (int) |
|
virtual int | CheckAbortStatus () |
|
virtual void | SetDesiredUpdateRate (double) |
|
virtual double | GetDesiredUpdateRate () |
|
virtual int | GetNumberOfLayers () |
|
virtual void | SetNumberOfLayers (int) |
|
virtual vtkRenderWindowInteractor * | GetInteractor () |
|
virtual vtkPainterDeviceAdapter * | GetPainterDeviceAdapter () |
|
virtual void | SetMultiSamples (int) |
|
virtual int | GetMultiSamples () |
|
virtual void | SetStencilCapable (int) |
|
virtual int | GetStencilCapable () |
|
virtual void | StencilCapableOn () |
|
virtual void | StencilCapableOff () |
|
virtual void | SetDeviceIndex (int) |
|
virtual int | GetDeviceIndex () |
|
virtual int | GetNumberOfDevices () |
|
vtkWindow * | NewInstance () const |
|
int * | GetActualSize () |
|
virtual bool | DetectDPI () |
|
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 int | GetDPI () |
|
virtual void | SetDPI (int) |
|
virtual void | SetOffScreenRendering (int) |
|
virtual int | GetOffScreenRendering () |
|
virtual void | OffScreenRenderingOn () |
|
virtual void | OffScreenRenderingOff () |
|
virtual void | SetTileScale (int, int) |
|
void | SetTileScale (int[2]) |
|
virtual int * | GetTileScale () |
|
virtual void | GetTileScale (int &, int &) |
|
virtual void | GetTileScale (int[2]) |
|
void | SetTileScale (int s) |
|
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]) |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual unsigned long | GetMTime () |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
OpenGL render window that allows using an external window to render vtk objects.
vtkExternalOpenGLRenderWindow is a concrete implementation of the abstract class vtkRenderWindow. vtkExternalOpenGLRenderer interfaces to the OpenGL graphics library.
This class extends vtkGenericOpenGLRenderWindow to allow sharing the same OpenGL context by various visualization applications. Basically, this class prevents VTK from creating a new OpenGL context. Thus, it requires that an OpenGL context be initialized before Render is called.
- See also
- Render()
It is a generic implementation; this window is platform agnostic. However, the application user must explicitly make sure the window size is synchronized when the external application window/viewport resizes.
- See also
- SetSize()
It has the same requirements as the vtkGenericOpenGLRenderWindow, whereby, one must register an observer for WindowMakeCurrentEvent, WindowIsCurrentEvent and WindowFrameEvent.
- See also
- vtkGenericOpenGLRenderWindow
- Tests:
- vtkExternalOpenGLRenderWindow (Tests)
Definition at line 49 of file vtkExternalOpenGLRenderWindow.h.