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

Method GetTuple

Testing/GenericBridge/vtkBridgeAttribute.cxx:185–194  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Attribute at all points of cell `c'. \pre c_exists: c!=0 \pre c_valid: !c->IsAtEnd() \post result_exists: result!=0 \post valid_result: sizeof(result)==GetNumberOfComponents()*c->GetCell()->GetNumberOfPoints()

Source from the content-addressed store, hash-verified

183// \post result_exists: result!=0
184// \post valid_result: sizeof(result)==GetNumberOfComponents()*c->GetCell()->GetNumberOfPoints()
185double* vtkBridgeAttribute::GetTuple(vtkGenericAdaptorCell* c)
186{
187 assert("pre: c_exists" && c != nullptr);
188
189 this->AllocateInternalTuple(c->GetNumberOfPoints() * this->GetNumberOfComponents());
190 this->GetTuple(c, this->InternalTuple);
191
192 assert("post: result_exists" && this->InternalTuple != nullptr);
193 return this->InternalTuple;
194}
195
196//------------------------------------------------------------------------------
197// Description:

Callers 3

InterpolateTupleMethod · 0.45
DerivativesMethod · 0.45
CheckTreeEqualFunction · 0.45

Calls 9

AllocateInternalTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.95
assertFunction · 0.50
GetNumberOfPointsMethod · 0.45
GetPointIdMethod · 0.45
GetArrayMethod · 0.45
GetIdMethod · 0.45
IsAtEndMethod · 0.45
GetCellMethod · 0.45

Tested by 1

CheckTreeEqualFunction · 0.36