 |
VTK
9.0.1
|
Go to the documentation of this file.
50 #ifndef vtkRenderWindow_h
51 #define vtkRenderWindow_h
54 #include "vtkRenderingCoreModule.h"
69 #define VTK_STEREO_CRYSTAL_EYES 1
70 #define VTK_STEREO_RED_BLUE 2
71 #define VTK_STEREO_INTERLACED 3
72 #define VTK_STEREO_LEFT 4
73 #define VTK_STEREO_RIGHT 5
74 #define VTK_STEREO_DRESDEN 6
75 #define VTK_STEREO_ANAGLYPH 7
76 #define VTK_STEREO_CHECKERBOARD 8
77 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
78 #define VTK_STEREO_FAKE 10
79 #define VTK_STEREO_EMULATE 11
81 #define VTK_CURSOR_DEFAULT 0
82 #define VTK_CURSOR_ARROW 1
83 #define VTK_CURSOR_SIZENE 2
84 #define VTK_CURSOR_SIZENW 3
85 #define VTK_CURSOR_SIZESW 4
86 #define VTK_CURSOR_SIZESE 5
87 #define VTK_CURSOR_SIZENS 6
88 #define VTK_CURSOR_SIZEWE 7
89 #define VTK_CURSOR_SIZEALL 8
90 #define VTK_CURSOR_HAND 9
91 #define VTK_CURSOR_CROSSHAIR 10
124 static const char* GetRenderLibrary();
129 virtual const char* GetRenderingBackend();
154 vtkGetMacro(CapturingGL2PSSpecialProps,
int);
194 virtual void CopyResultFrame();
219 vtkSetMacro(CurrentCursor,
int);
220 vtkGetMacro(CurrentCursor,
int);
250 virtual void SetStereoCapableWindow(
vtkTypeBool capable);
323 vtkGetMacro(StereoType,
int);
324 void SetStereoType(
int);
345 const char* GetStereoTypeAsString();
346 static const char* GetStereoTypeAsString(
int type);
353 virtual void StereoUpdate();
359 virtual void StereoMidpoint();
365 virtual void StereoRenderComplete();
375 vtkSetClampMacro(AnaglyphColorSaturation,
float, 0.0f, 1.0f);
376 vtkGetMacro(AnaglyphColorSaturation,
float);
394 vtkSetVector2Macro(AnaglyphColorMask,
int);
395 vtkGetVectorMacro(AnaglyphColorMask,
int, 2);
448 int ,
int ,
int ,
int ,
int ,
int = 0)
469 int ,
int ,
int ,
int ,
int ,
int = 0)
479 unsigned char* ,
int ,
int = 0,
int = 0)
516 this->GetZbufferData(x, y, x, y, &
value);
525 vtkGetMacro(NeverRendered,
int);
533 vtkGetMacro(AbortRender,
int);
534 vtkSetMacro(AbortRender,
int);
535 vtkGetMacro(InAbortCheck,
int);
536 vtkSetMacro(InAbortCheck,
int);
537 virtual int CheckAbortStatus();
546 VTK_LEGACY(
void IsPickingOn());
547 VTK_LEGACY(
void IsPickingOff());
577 virtual void SetDesiredUpdateRate(
double);
578 vtkGetMacro(DesiredUpdateRate,
double);
588 vtkGetMacro(NumberOfLayers,
int);
589 vtkSetClampMacro(NumberOfLayers,
int, 1,
VTK_INT_MAX);
665 VTK_LEGACY(
virtual bool IsDrawable());
706 virtual void SetMultiSamples(
int);
707 vtkGetMacro(MultiSamples,
int);
726 vtkSetMacro(DeviceIndex,
int);
727 vtkGetMacro(DeviceIndex,
int);
740 vtkGetMacro(UseSRGBColorSpace,
bool);
741 vtkSetMacro(UseSRGBColorSpace,
bool);
742 vtkBooleanMacro(UseSRGBColorSpace,
bool);
749 virtual void DoStereoRender();
775 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.
vtkTypeBool PointSmoothing
virtual int GetZbufferData(int, int, int, int, float *)
#define VTK_STEREO_RED_BLUE
virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray *, int, int=0, int=0)
virtual int SetRGBACharPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0, int=0)
void SetWindowInfo(const char *) override
dynamic, self-adjusting array of float
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
void SetStereoTypeToRedBlue()
dynamic, self-adjusting array of unsigned char
void SetStereoTypeToCheckerboard()
void SetWindowId(void *) override
float GetZbufferDataAtPoint(int x, int y)
void * GetGenericParentId() override
virtual int SetRGBACharPixelData(int, int, int, int, unsigned char *, int, int=0, int=0)
vtkRendererCollection * Renderers
void SetStereoTypeToEmulate()
an ordered list of renderers
virtual void SetNextWindowInfo(const char *)
#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
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
void * GetGenericDisplayId() override
vtkRendererCollection * GetRenderers()
Return the collection of renderers in the render window.
virtual int SetZbufferData(int, int, int, int, float *)
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()
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...
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
create and manipulate ordered lists of objects
virtual bool GetPlatformSupportsRenderWindowSharing()
virtual int SetZbufferData(int, int, int, int, vtkFloatArray *)
virtual unsigned char * GetRGBACharPixelData(int, int, int, int, int, int=0)
virtual void Finalize()
Finalize the rendering process.
void SetStereoTypeToAnaglyph()
virtual void ReleaseRGBAPixelData(float *)
abstract base class for most VTK objects
virtual void SetNextWindowId(void *)
virtual int GetColorBufferSizes(int *)
Get the size of the color buffer.
helper class to generate composited stereo images.
virtual int GetRGBACharPixelData(int, int, int, int, int, vtkUnsignedCharArray *, int=0)
vtkRenderWindowInteractor * Interactor
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
#define VTK_STEREO_INTERLACED
int CapturingGL2PSSpecialProps
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
void SetStereoTypeToLeft()
#define VTK_STEREO_ANAGLYPH
virtual vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
vtkTypeBool StencilCapable
a simple class to control print indentation
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkUnsignedCharArray > ResultFrame
virtual int GetZbufferData(int, int, int, int, vtkFloatArray *)
void SetParentInfo(const char *) override
virtual const char * ReportCapabilities()
Get report of capabilities for the render window.
void SetStereoTypeToRight()
platform-independent render window interaction including picking and frame rate control.
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
Asynchronously measures GPU execution times for a series of events.
double AbortCheckTime
The universal time since the last abort check occurred.
virtual void Render()
Ask each viewport owned by this Window to render its image and synchronize this process.
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()
virtual void SetCursorPosition(int, int)
virtual int GetRGBAPixelData(int, int, int, int, int, vtkFloatArray *, int=0)
virtual int SetPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0)
#define VTK_STEREO_EMULATE
abstract specification for renderers
void SetStereoTypeToFake()
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
#define VTK_STEREO_DRESDEN
void SetStereoTypeToDresden()
void SetStereoTypeToInterlaced()
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)
vtkTypeBool LineSmoothing
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...
void * GetGenericContext() override
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
vtkSmartPointer< vtkUnsignedCharArray > StereoBuffer
vtkNew< vtkRenderTimerLog > RenderTimer
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).
vtkTypeBool PolygonSmoothing
void SetStereoTypeToSplitViewportHorizontal()
#define VTK_STEREO_CHECKERBOARD