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

Method SetStrategy

Filters/Reduction/vtkToImplicitArrayFilter.cxx:88–104  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

86
87//-------------------------------------------------------------------------
88void 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//-------------------------------------------------------------------------
107const vtkToImplicitStrategy* vtkToImplicitArrayFilter::GetStrategy() const

Callers 2

TestCompressibleFunction · 0.45
TestNotCompressibleFunction · 0.45

Calls 3

RemoveObserverMethod · 0.45
AddObserverMethod · 0.45
ModifiedMethod · 0.45

Tested by 2

TestCompressibleFunction · 0.36
TestNotCompressibleFunction · 0.36