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

Method SetRenderer

Interaction/Image/vtkImageViewer2.cxx:145–168  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

143
144//------------------------------------------------------------------------------
145void vtkImageViewer2::SetRenderer(vtkRenderer* arg)
146{
147 if (this->Renderer == arg)
148 {
149 return;
150 }
151
152 this->UnInstallPipeline();
153
154 if (this->Renderer)
155 {
156 this->Renderer->UnRegister(this);
157 }
158
159 this->Renderer = arg;
160
161 if (this->Renderer)
162 {
163 this->Renderer->Register(this);
164 }
165
166 this->InstallPipeline();
167 this->UpdateOrientation();
168}
169
170//------------------------------------------------------------------------------
171void vtkImageViewer2::SetSize(int width, int height)

Callers 10

vtkImageViewer2Method · 0.95
TestPIOReader.pyFile · 0.45
TestGL2PSExporterRasterFunction · 0.45
TestIOSSCatalystExodusFunction · 0.45
TestTulipReaderClustersFunction · 0.45
RenderContextActorMethod · 0.45

Calls 5

UnInstallPipelineMethod · 0.95
InstallPipelineMethod · 0.95
UpdateOrientationMethod · 0.95
UnRegisterMethod · 0.45
RegisterMethod · 0.45

Tested by 6

TestGL2PSExporterRasterFunction · 0.36
TestIOSSCatalystExodusFunction · 0.36
TestTulipReaderClustersFunction · 0.36