MCPcopy Create free account
hub / github.com/Kitware/ParaView / GetValues

Function GetValues

Qt/ApplicationComponents/pqModelTransformSupportBehavior.cxx:183–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181{
182template <class T, int size>
183vtkTuple<T, size> GetValues(const char* aname, vtkSMSourceProxy* producer, int port, bool* pisvalid)
184{
185 bool dummy;
186 pisvalid = pisvalid ? pisvalid : &dummy;
187 *pisvalid = false;
188
189 vtkTuple<T, size> value;
190 vtkPVDataInformation* dinfo = producer->GetDataInformation(port);
191 if (vtkPVArrayInformation* ainfo =
192 (dinfo ? dinfo->GetArrayInformation(aname, vtkDataObject::FIELD) : nullptr))
193 {
194 if (ainfo->GetNumberOfComponents() == size)
195 {
196 *pisvalid = true;
197 for (int cc = 0; cc < size; cc++)
198 {
199 value[cc] = ainfo->GetComponentRange(cc)[0];
200 }
201 }
202 }
203 return value;
204}
205}
206
207//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

GetComponentRangeMethod · 0.80
GetDataInformationMethod · 0.45
GetArrayInformationMethod · 0.45
GetNumberOfComponentsMethod · 0.45

Tested by

no test coverage detected