------------------------------------------------------------------------------
| 94 | |
| 95 | //------------------------------------------------------------------------------ |
| 96 | void 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 | //------------------------------------------------------------------------------ |
| 120 | void vtkAMRBaseParticlesReader::InitializeParticleDataSelections() |
nothing calls this directly
no test coverage detected