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

Method Initialize

IO/AMR/vtkAMRBaseParticlesReader.cxx:96–117  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

94
95//------------------------------------------------------------------------------
96void vtkAMRBaseParticlesReader::Initialize()
97{
98 this->SetNumberOfInputPorts(0);
99 this->Frequency = 1;
100 this->FilterLocation = 0;
101 this->NumberOfBlocks = 0;
102 this->Initialized = false;
103 this->InitialRequest = true;
104 this->FileName = nullptr;
105 this->SetController(vtkMultiProcessController::GetGlobalController());
106
107 for (int i = 0; i < 3; ++i)
108 {
109 this->MinLocation[i] = this->MaxLocation[i] = 0.0;
110 }
111
112 this->ParticleDataArraySelection = vtkDataArraySelection::New();
113 this->SelectionObserver = vtkCallbackCommand::New();
114 this->SelectionObserver->SetCallback(&vtkAMRBaseParticlesReader::SelectionModifiedCallback);
115 this->SelectionObserver->SetClientData(this);
116 this->ParticleDataArraySelection->AddObserver(vtkCommand::ModifiedEvent, this->SelectionObserver);
117}
118
119//------------------------------------------------------------------------------
120void vtkAMRBaseParticlesReader::InitializeParticleDataSelections()

Callers

nothing calls this directly

Calls 5

SetClientDataMethod · 0.80
NewFunction · 0.50
SetNumberOfInputPortsMethod · 0.45
SetControllerMethod · 0.45
AddObserverMethod · 0.45

Tested by

no test coverage detected