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

Method SetInputData

Filters/Modeling/vtkCollisionDetectionFilter.cxx:97–110  ·  view source on GitHub ↗

Description: Set and Get the input data...

Source from the content-addressed store, hash-verified

95// Description:
96// Set and Get the input data...
97void vtkCollisionDetectionFilter::SetInputData(int idx, vtkPolyData* input)
98{
99 if (2 <= idx || idx < 0)
100 {
101 vtkErrorMacro(<< "Index " << idx
102 << " is out of range in SetInputData. Only two inputs allowed!");
103 return;
104 }
105
106 // Ask the superclass to connect the input.
107 vtkSmartPointer<vtkTrivialProducer> inputProducer = vtkSmartPointer<vtkTrivialProducer>::New();
108 inputProducer->SetOutput(input);
109 this->SetNthInputConnection(idx, 0, input ? inputProducer->GetOutputPort() : nullptr);
110}
111
112//------------------------------------------------------------------------------
113vtkPolyData* vtkCollisionDetectionFilter::GetInputData(int idx)

Callers 15

IsSurfaceClosedMethod · 0.45
SetSurfaceDataMethod · 0.45
SetLoopsDataMethod · 0.45
SetHeightMapDataMethod · 0.45
DijkstraEdgeSearchMethod · 0.45
RequestDataMethod · 0.45
SetTargetDataMethod · 0.45
SetImprintDataMethod · 0.45
SetTrimSurfaceDataMethod · 0.45
subDivideTetra.pyFile · 0.45

Calls 4

SetNthInputConnectionMethod · 0.80
NewFunction · 0.50
SetOutputMethod · 0.45
GetOutputPortMethod · 0.45

Tested by 13

contourCaseFunction · 0.36
testMethod · 0.36
showBandedContoursFunction · 0.36
TestLinearCellExtrusionFunction · 0.36
TestSelectEnclosedPointsFunction · 0.36
TestButterflyScalarsFunction · 0.36
TestSubdivisionFunction · 0.36