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

Method Init

Testing/GenericBridge/vtkBridgeCell.cxx:885–902  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Used internally for the Bridge. Initialize the cell from a dataset `ds' and `cellid'. \pre ds_exists: ds!=0 \pre valid_cellid: (cellid>=0) && (cellid GetNumberOfCells())

Source from the content-addressed store, hash-verified

883// \pre ds_exists: ds!=0
884// \pre valid_cellid: (cellid>=0) && (cellid<ds->GetNumberOfCells())
885void vtkBridgeCell::Init(vtkBridgeDataSet* ds, vtkIdType cellid)
886{
887 assert("pre: ds_exists" && ds != nullptr);
888 assert("pre: valid_cellid" && (cellid >= 0) && (cellid < ds->GetNumberOfCells()));
889
890 vtkSetObjectBodyMacro(DataSet, vtkBridgeDataSet, ds);
891 vtkCell* tmp = ds->Implementation->GetCell(cellid);
892 vtkSetObjectBodyMacro(Cell, vtkCell, tmp);
893 this->Id = cellid;
894 this->BoolIsInDataSet = 1;
895 if (this->InternalIterator == nullptr)
896 {
897 this->InternalIterator = vtkBridgeCellIterator::New();
898 }
899 this->InternalIterator->InitWithOneCell(this);
900
901 this->InternalIterator->Begin();
902}
903
904//------------------------------------------------------------------------------
905// Description:

Callers 4

GetCellMethod · 0.45
InitWithOneCellMethod · 0.45
GetCellMethod · 0.45
GetCellMethod · 0.45

Calls 6

assertFunction · 0.50
NewFunction · 0.50
GetNumberOfCellsMethod · 0.45
GetCellMethod · 0.45
InitWithOneCellMethod · 0.45
BeginMethod · 0.45

Tested by

no test coverage detected