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

Method vtkDataSet

Common/DataModel/vtkDataSet.cxx:34–52  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Constructor with default bounds (0,1, 0,1, 0,1).

Source from the content-addressed store, hash-verified

32//------------------------------------------------------------------------------
33// Constructor with default bounds (0,1, 0,1, 0,1).
34VTK_ABI_NAMESPACE_BEGIN
35vtkDataSet::vtkDataSet()
36{
37 vtkMath::UninitializeBounds(this->Bounds);
38 // Observer for updating the cell/point ghost arrays pointers
39 this->DataObserver = vtkCallbackCommand::New();
40 this->DataObserver->SetClientData(this);
41
42 this->PointData = vtkPointData::New();
43 // when point data is modified, we update the point data ghost array cache
44 this->PointData->AddObserver(vtkCommand::ModifiedEvent, this->DataObserver);
45
46 this->CellData = vtkCellData::New();
47 // when cell data is modified, we update the cell data ghost array cache
48 this->CellData->AddObserver(vtkCommand::ModifiedEvent, this->DataObserver);
49
50 this->ScalarRange[0] = 0.0;
51 this->ScalarRange[1] = 1.0;
52}
53
54//------------------------------------------------------------------------------
55vtkDataSet::~vtkDataSet()

Callers

nothing calls this directly

Calls 4

UninitializeBoundsFunction · 0.85
SetClientDataMethod · 0.80
NewFunction · 0.50
AddObserverMethod · 0.45

Tested by

no test coverage detected