VTKFIG  0.20.20181114
Easy VTK based in situ visualization
template<typename V >
void vtkfig::Surf2D::UpdateValues ( const V &  values)
inline

Definition at line 158 of file vtkfigSurf2D.h.

159  {
160  for (int j = 0; j < Ny; j++)
161  {
162  for (int i = 0; i < Nx; i++)
163  {
164  int k=j*Nx+i;
165  float v=z[k];
166  state.vmin=std::min(v,state.vmin);
167  state.vmax=std::max(v,state.vmax);
168  double p[3];
169  points->GetPoint(k,p);
170  p[2]=v;
171  points->SetPoint(k,p);
172  colors->InsertComponent(k, 0,v);
173  }
174  }
175 
176  points->Modified();
177  colors->Modified();
178  gridfunc->Modified();
179 
181 
182  }
vtkSmartPointer< vtkStructuredGrid > gridfunc
Definition: vtkfigSurf2D.h:75
vtkSmartPointer< vtkPoints > points
Definition: vtkfigSurf2D.h:76
vtkSmartPointer< vtkDoubleArray > colors
Definition: vtkfigSurf2D.h:77
void update_warp_and_lut()
Definition: vtkfigSurf2D.h:99
struct vtkfig::Surf2D::@3 state

+ Here is the call graph for this function: