 |
VTK
9.1.0
|
Go to the documentation of this file.
159 #ifndef vtkRenderWindow_h
160 #define vtkRenderWindow_h
164 #include "vtkRenderingCoreModule.h"
179 #define VTK_STEREO_CRYSTAL_EYES 1
180 #define VTK_STEREO_RED_BLUE 2
181 #define VTK_STEREO_INTERLACED 3
182 #define VTK_STEREO_LEFT 4
183 #define VTK_STEREO_RIGHT 5
184 #define VTK_STEREO_DRESDEN 6
185 #define VTK_STEREO_ANAGLYPH 7
186 #define VTK_STEREO_CHECKERBOARD 8
187 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
188 #define VTK_STEREO_FAKE 10
189 #define VTK_STEREO_EMULATE 11
191 #define VTK_CURSOR_DEFAULT 0
192 #define VTK_CURSOR_ARROW 1
193 #define VTK_CURSOR_SIZENE 2
194 #define VTK_CURSOR_SIZENW 3
195 #define VTK_CURSOR_SIZESW 4
196 #define VTK_CURSOR_SIZESE 5
197 #define VTK_CURSOR_SIZENS 6
198 #define VTK_CURSOR_SIZEWE 7
199 #define VTK_CURSOR_SIZEALL 8
200 #define VTK_CURSOR_HAND 9
201 #define VTK_CURSOR_CROSSHAIR 10
202 #define VTK_CURSOR_CUSTOM 11
265 vtkGetMacro(CapturingGL2PSSpecialProps,
int);
330 vtkSetMacro(CurrentCursor,
int);
331 vtkGetMacro(CurrentCursor,
int);
443 vtkGetMacro(StereoType,
int);
495 vtkSetClampMacro(AnaglyphColorSaturation,
float, 0.0f, 1.0f);
496 vtkGetMacro(AnaglyphColorSaturation,
float);
514 vtkSetVector2Macro(AnaglyphColorMask,
int);
515 vtkGetVectorMacro(AnaglyphColorMask,
int, 2);
568 int ,
int ,
int ,
int ,
int ,
int = 0)
589 int ,
int ,
int ,
int ,
int ,
int = 0)
599 unsigned char* ,
int ,
int = 0,
int = 0)
636 this->GetZbufferData(x, y, x, y, &
value);
645 vtkGetMacro(NeverRendered,
int);
653 vtkGetMacro(AbortRender,
int);
654 vtkSetMacro(AbortRender,
int);
655 vtkGetMacro(InAbortCheck,
int);
656 vtkSetMacro(InAbortCheck,
int);
702 vtkGetMacro(DesiredUpdateRate,
double);
712 vtkGetMacro(NumberOfLayers,
int);
784 "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
785 virtual
bool IsDrawable();
792 virtual
void SetForceMakeCurrent() {}
827 vtkGetMacro(MultiSamples,
int);
846 vtkSetMacro(DeviceIndex,
int);
847 vtkGetMacro(DeviceIndex,
int);
860 vtkGetMacro(UseSRGBColorSpace,
bool);
861 vtkSetMacro(UseSRGBColorSpace,
bool);
862 vtkBooleanMacro(UseSRGBColorSpace,
bool);
895 int AnaglyphColorMask[2];
vtkRenderWindow * SharedRenderWindow
virtual int SetPixelData(int, int, int, int, unsigned char *, int, int=0)
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
void RemoveRenderer(vtkRenderer *)
Remove a renderer from the list of renderers.
vtkTypeBool PointSmoothing
void UnRegister(vtkObjectBase *o) override
This Method detects loops of RenderWindow<->Interactor, so objects are freed properly.
virtual int GetZbufferData(int, int, int, int, float *)
Set/Get the zbuffer data from the frame buffer.
#define VTK_STEREO_RED_BLUE
virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual void SetDesiredUpdateRate(double)
Set/Get the desired update rate.
virtual void StereoRenderComplete()
Handles work required once both views have been rendered when using stereo rendering.
virtual int SetRGBACharPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
void SetWindowInfo(const char *) override
Dummy stubs for vtkWindow API.
dynamic, self-adjusting array of float
virtual void DoStereoRender()
void SetStereoTypeToRedBlue()
Set/Get what type of stereo rendering to use.
dynamic, self-adjusting array of unsigned char
void SetStereoTypeToCheckerboard()
Set/Get what type of stereo rendering to use.
void SetWindowId(void *) override
Dummy stubs for vtkWindow API.
float GetZbufferDataAtPoint(int x, int y)
Set/Get the zbuffer data from the frame buffer.
#define VTK_DEPRECATED_IN_9_1_0(reason)
virtual void SetInteractor(vtkRenderWindowInteractor *)
Set the interactor to the render window.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
virtual int SetRGBACharPixelData(int, int, int, int, unsigned char *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
vtkRendererCollection * Renderers
void SetStereoTypeToEmulate()
Set/Get what type of stereo rendering to use.
an ordered list of renderers
virtual void SetNextWindowInfo(const char *)
Dummy stubs for vtkWindow API.
#define VTK_STEREO_CRYSTAL_EYES
virtual void WaitForCompletion()
Block the thread until the actual rendering is finished().
#define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
vtkRendererCollection * GetRenderers()
Return the collection of renderers in the render window.
virtual int SetZbufferData(int, int, int, int, float *)
Set/Get the zbuffer data from the frame buffer.
virtual void WindowRemap()
Remap the rendering window.
window superclass for vtkRenderWindow
virtual float * GetZbufferData(int, int, int, int)
Set/Get the zbuffer data from the frame buffer.
virtual void ShowCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
float AnaglyphColorSaturation
virtual void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual void CopyResultFrame()
Performed at the end of the rendering process to generate image.
vtkGetFilePathMacro(CursorFileName)
Set/Get the full path to the custom cursor.
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
create and manipulate ordered lists of objects
virtual bool GetPlatformSupportsRenderWindowSharing()
Set/Get an already existing window that this window should share data with if possible.
virtual int SetZbufferData(int, int, int, int, vtkFloatArray *)
Set/Get the zbuffer data from the frame buffer.
virtual unsigned char * GetRGBACharPixelData(int, int, int, int, int, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual void StereoMidpoint()
Intermediate method performs operations required between the rendering of the left and right eye.
virtual void Finalize()
Finalize the rendering process.
void SetStereoTypeToAnaglyph()
Set/Get what type of stereo rendering to use.
virtual void ReleaseRGBAPixelData(float *)
Same as Get/SetPixelData except that the image also contains an alpha component.
abstract base class for most VTK objects
virtual void SetNextWindowId(void *)
Dummy stubs for vtkWindow API.
virtual int GetColorBufferSizes(int *)
Get the size of the color buffer.
vtkGetNewMacro(RenderTimer, vtkRenderTimerLog)
Get the render timer log for this window.
helper class to generate composited stereo images.
virtual int GetRGBACharPixelData(int, int, int, int, int, vtkUnsignedCharArray *, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
vtkRenderWindowInteractor * Interactor
void SetStereoType(int)
Set/Get what type of stereo rendering to use.
#define VTK_STEREO_INTERLACED
int HasRenderer(vtkRenderer *)
Query if a renderer is in the list of renderers.
virtual vtkRenderWindowInteractor * MakeRenderWindowInteractor()
Create an interactor to control renderers in this window.
int CapturingGL2PSSpecialProps
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
void SetStereoTypeToLeft()
Set/Get what type of stereo rendering to use.
#define VTK_STEREO_ANAGLYPH
virtual void AddRenderer(vtkRenderer *)
Add a renderer to the list of renderers.
vtkTypeBool StencilCapable
a simple class to control print indentation
void Render() override
Ask each renderer owned by this RenderWindow to render its image and synchronize this process.
#define VTK_DEPRECATED_IN_9_0_0(reason)
vtkTypeBool StereoCapableWindow
virtual float * GetRGBAPixelData(int, int, int, int, int, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
vtkSmartPointer< vtkUnsignedCharArray > ResultFrame
virtual int GetZbufferData(int, int, int, int, vtkFloatArray *)
Set/Get the zbuffer data from the frame buffer.
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual const char * ReportCapabilities()
Get report of capabilities for the render window.
void SetStereoTypeToRight()
Set/Get what type of stereo rendering to use.
platform-independent render window interaction including picking and frame rate control.
virtual void SetStereoCapableWindow(vtkTypeBool capable)
Prescribe that the window be created in a stereo-capable mode.
virtual void Frame()
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual int GetDepthBufferSize()
This method should be defined by the subclass.
virtual void End()
Update the system, if needed, at end of render process.
void SetParentId(void *) override
Dummy stubs for vtkWindow API.
Asynchronously measures GPU execution times for a series of events.
double AbortCheckTime
The universal time since the last abort check occurred.
const char * GetStereoTypeAsString()
Returns the stereo type as a string.
virtual int GetNumberOfDevices()
Returns the number of devices (graphics cards) on a system.
abstract superclass for all actors, volumes and annotations
virtual void Start()
Start the rendering process for a frame.
void SetStereoTypeToCrystalEyes()
Set/Get what type of stereo rendering to use.
virtual void SetCursorPosition(int, int)
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual int GetRGBAPixelData(int, int, int, int, int, vtkFloatArray *, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual int SetPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0)
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
#define VTK_STEREO_EMULATE
abstract specification for renderers
void SetStereoTypeToFake()
Set/Get what type of stereo rendering to use.
void SetStereoRender(vtkTypeBool stereo)
Turn on/off stereo rendering.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
static const char * GetStereoTypeAsString(int type)
Returns the stereo type as a string.
virtual void StereoUpdate()
Update the system, if needed, due to stereo rendering.
#define VTK_STEREO_DRESDEN
void SetStereoTypeToDresden()
Set/Get what type of stereo rendering to use.
void SetStereoTypeToInterlaced()
Set/Get what type of stereo rendering to use.
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
vtkTypeBool AlphaBitPlanes
virtual int SetRGBAPixelData(int, int, int, int, float *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
void CaptureGL2PSSpecialProps(vtkCollection *specialProps)
The GL2PS exporter must handle certain props in a special way (e.g.
vtkTypeBool LineSmoothing
virtual void SetMultiSamples(int)
Set / Get the number of multisamples to use for hardware antialiasing.
create a window for renderers to draw into
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
virtual const char * GetRenderingBackend()
What rendering backend has the user requested.
void * GetGenericContext() override
Dummy stubs for vtkWindow API.
virtual void ClearInRenderStatus()
Clear status (after an exception was thrown for example)
virtual int CheckInRenderStatus()
Are we rendering at the moment.
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
virtual void SetSharedRenderWindow(vtkRenderWindow *)
Set/Get an already existing window that this window should share data with if possible.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...
vtkSmartPointer< vtkUnsignedCharArray > StereoBuffer
vtkSetFilePathMacro(CursorFileName)
Set/Get the full path to the custom cursor.
vtkNew< vtkRenderTimerLog > RenderTimer
vtkTypeBool PolygonSmoothing
static const char * GetRenderLibrary()
What rendering library has the user requested.
~vtkRenderWindow() override
void SetStereoTypeToSplitViewportHorizontal()
Set/Get what type of stereo rendering to use.
virtual int CheckAbortStatus()
This is a flag that can be set to interrupt a rendering that is in progress.
#define VTK_STEREO_CHECKERBOARD