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

Method SetForceDevice

Rendering/Context2D/vtkContextActor.cxx:139–160  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

137
138//------------------------------------------------------------------------------
139void vtkContextActor::SetForceDevice(vtkContextDevice2D* dev)
140{
141 if (this->ForceDevice != dev)
142 {
143 if (this->ForceDevice)
144 {
145 this->ForceDevice->UnRegister(this);
146 }
147
148 this->ForceDevice = dev;
149
150 if (this->ForceDevice)
151 {
152 this->ForceDevice->Register(this);
153 }
154
155 this->Modified();
156
157 // Mark the class as needed reinitializion:
158 this->Initialized = false;
159 }
160}
161
162//------------------------------------------------------------------------------
163void vtkContextActor::ReleaseGraphicsResources(vtkWindow*) {}

Callers 2

RenderContextActorMethod · 0.80
RenderContextActorMethod · 0.80

Calls 3

UnRegisterMethod · 0.45
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected