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

Method SetSourceConnection

Rendering/Core/vtkGlyph3DMapper.cxx:237–261  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Specify a source object at a specified table location.

Source from the content-addressed store, hash-verified

235//------------------------------------------------------------------------------
236// Specify a source object at a specified table location.
237void vtkGlyph3DMapper::SetSourceConnection(int idx, vtkAlgorithmOutput* algOutput)
238{
239 if (idx < 0)
240 {
241 vtkErrorMacro("Bad index " << idx << " for source.");
242 return;
243 }
244
245 int numConnections = this->GetNumberOfInputConnections(1);
246 if (idx < numConnections)
247 {
248 this->SetNthInputConnection(1, idx, algOutput);
249 }
250 else if (idx == numConnections && algOutput)
251 {
252 this->AddInputConnection(1, algOutput);
253 }
254 else if (algOutput)
255 {
256 vtkWarningMacro("The source id provided is larger than the maximum "
257 "source id, using "
258 << numConnections << " instead.");
259 this->AddInputConnection(1, algOutput);
260 }
261}
262
263//------------------------------------------------------------------------------
264// Specify a source object at a specified table location.

Callers 15

TestGlyph3DMapperCullingFunction · 0.45
TestGlyph3DMapperEdgesFunction · 0.45
ImageDataLIC2DFunction · 0.45
TestOSPRayImplicitsFunction · 0.45
TestOSPRayBoxWidget2Function · 0.45
SetSourceConnectionFunction · 0.45

Calls 3

SetNthInputConnectionMethod · 0.80
AddInputConnectionMethod · 0.45