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

Method GetCell

Testing/GenericBridge/vtkBridgeCellIteratorOne.cxx:87–108  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Cell at current position \pre not_at_end: !IsAtEnd() \pre c_exists: c!=0 THREAD SAFE

Source from the content-addressed store, hash-verified

85// \pre c_exists: c!=0
86// THREAD SAFE
87void vtkBridgeCellIteratorOne::GetCell(vtkGenericAdaptorCell* c)
88{
89 assert("pre: not_at_end" && !this->IsAtEnd());
90 assert("pre: c_exists" && c != nullptr);
91
92 vtkBridgeCell* c2 = static_cast<vtkBridgeCell*>(c);
93 if (this->DataSet != nullptr)
94 {
95 c2->Init(this->DataSet, this->Id);
96 }
97 else
98 {
99 if (this->InternalCell != nullptr)
100 {
101 c2->InitWithCell(this->InternalCell, this->Id);
102 }
103 else
104 {
105 c2->DeepCopy(this->Cell);
106 }
107 }
108}
109
110//------------------------------------------------------------------------------
111// Description:

Callers

nothing calls this directly

Calls 5

IsAtEndMethod · 0.95
assertFunction · 0.50
InitMethod · 0.45
InitWithCellMethod · 0.45
DeepCopyMethod · 0.45

Tested by

no test coverage detected