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

Method Reset

Filters/HyperTree/vtkHyperTreeGridPlaneCutter.cxx:176–205  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

174
175//------------------------------------------------------------------------------
176void vtkHyperTreeGridPlaneCutter::Reset()
177{
178 // Points and Cells are created in the constructor
179 if (this->Points)
180 {
181 this->Points->Delete();
182 }
183 this->Points = vtkPoints::New();
184 if (this->Cells)
185 {
186 this->Cells->Delete();
187 }
188 this->Cells = vtkCellArray::New();
189 if (this->Centers)
190 {
191 this->Centers->Initialize();
192 }
193 if (this->Leaves)
194 {
195 this->Leaves->Initialize();
196 }
197 if (this->Cutter)
198 {
199 this->Cutter->SetNumberOfContours(0);
200 }
201 if (this->SelectedCells)
202 {
203 this->SelectedCells->Initialize();
204 }
205}
206
207//------------------------------------------------------------------------------
208int vtkHyperTreeGridPlaneCutter::ProcessTrees(vtkHyperTreeGrid* input, vtkDataObject* outputDO)

Callers 3

ProcessTreesMethod · 0.95
ProcessImageMethod · 0.45

Calls 4

DeleteMethod · 0.65
NewFunction · 0.50
InitializeMethod · 0.45
SetNumberOfContoursMethod · 0.45

Tested by

no test coverage detected