MCPcopy Create free account
hub / github.com/Kitware/VTK / Synchronize

Method Synchronize

Rendering/SceneGraph/vtkWindowNode.cxx:60–108  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

58
59//------------------------------------------------------------------------------
60void vtkWindowNode::Synchronize(bool prepass)
61{
62 if (prepass)
63 {
64 vtkRenderWindow* mine = vtkRenderWindow::SafeDownCast(this->GetRenderable());
65 if (!mine)
66 {
67 return;
68 }
69 /*
70 GetAAFrames() vtkRenderWindow virtual
71 GetActualSize() vtkWindow
72 GetAlphaBitPlanes() vtkRenderWindow virtual
73 GetDoubleBuffer() vtkWindow virtual
74 GetDPI() vtkWindow virtual
75 GetFDFrames() vtkRenderWindow virtual
76 GetFullScreen() vtkRenderWindow virtual
77 GetLineSmoothing() vtkRenderWindow virtual
78 GetMapped() vtkWindow virtual
79 GetMTime() vtkObject virtual
80 GetMultiSamples() vtkRenderWindow virtual
81 GetNeverRendered() vtkRenderWindow virtual
82 GetNumberOfLayers() vtkRenderWindow virtual
83 GetOffScreenRendering() vtkWindow virtual
84 GetPointSmoothing() vtkRenderWindow virtual
85 GetPolygonSmoothing() vtkRenderWindow virtual
86 GetPosition() vtkWindow virtual
87 GetScreenSize()=0 vtkWindow pure virtual
88 */
89 const int* sz = mine->GetSize();
90 this->Size[0] = sz[0];
91 this->Size[1] = sz[1];
92 /*
93 GetStereoType() vtkRenderWindow virtual
94 GetSubFrames() vtkRenderWindow virtual
95 GetSwapBuffers() vtkRenderWindow virtual
96 GetTileScale() vtkWindow virtual
97 GetTileViewport() vtkWindow virtual
98 GetUseConstantFDOffsets() vtkRenderWindow virtual
99 */
100
101 auto const& renderers = this->GetChildren();
102 for (auto ren : renderers)
103 {
104 vtkRendererNode* child = vtkRendererNode::SafeDownCast(ren);
105 child->SetSize(this->Size);
106 }
107 }
108}
109VTK_ABI_NAMESPACE_END

Callers 1

ApplyMethod · 0.45

Calls 3

GetSizeMethod · 0.45
GetChildrenMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected