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

Method Evaluate

Common/DataModel/vtkSelection.h:235–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233//----------------------------------------------------------------------------
234template <typename MapType>
235inline vtkSmartPointer<vtkSignedCharArray> vtkSelection::Evaluate(
236 const MapType& values_map, std::array<signed char, 2>& range) const
237{
238 const unsigned int num_nodes = this->GetNumberOfNodes();
239 std::vector<vtkSignedCharArray*> values(num_nodes, nullptr);
240 for (unsigned int cc = 0; cc < num_nodes; ++cc)
241 {
242 auto iter = values_map.find(this->GetNodeNameAtIndex(cc));
243 values[cc] = iter != values_map.end() ? iter->second : nullptr;
244 }
245 return this->Evaluate(values.data(), num_nodes, range);
246}
247
248VTK_ABI_NAMESPACE_END
249#endif

Callers 6

EvaluateFunction · 0.45
EvaluateFunctionMethod · 0.45
EvaluateGradientMethod · 0.45
ValidateFunction · 0.45
TestSelectionExpressionFunction · 0.45
InterpolateTupleMethod · 0.45

Calls 5

GetNumberOfNodesMethod · 0.95
GetNodeNameAtIndexMethod · 0.95
findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by 2

ValidateFunction · 0.36
TestSelectionExpressionFunction · 0.36