-------------------------------------------------------------------------
| 86 | |
| 87 | //------------------------------------------------------------------------- |
| 88 | void vtkToImplicitArrayFilter::SetStrategy(vtkToImplicitStrategy* strat) |
| 89 | { |
| 90 | if (strat && strat != this->Internals->Strategy) |
| 91 | { |
| 92 | if (this->Internals->Strategy) |
| 93 | { |
| 94 | this->Internals->Strategy->RemoveObserver(vtkCommand::ModifiedEvent); |
| 95 | } |
| 96 | this->Internals->Strategy = strat; |
| 97 | if (this->Internals->Strategy) |
| 98 | { |
| 99 | this->Internals->Strategy->AddObserver( |
| 100 | vtkCommand::ModifiedEvent, this, &vtkToImplicitArrayFilter::Modified); |
| 101 | } |
| 102 | this->Modified(); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | //------------------------------------------------------------------------- |
| 107 | const vtkToImplicitStrategy* vtkToImplicitArrayFilter::GetStrategy() const |