SetColor doesn't call Modified for vtkPlot-based classes
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Look at vtkPlotBar::SetColor(), vtkPlotPoints::SetColor() them just sets Brush or Pen color and thats all. Seems they should call vtkObject::Modified but they don't.
So ModifiedEvent isn't fired. Even for Brush or Pen.
Here is a snippet:
vtkPlot* plot; // some plot vtkSmartPointer connections = vtkSmartPointer::New(); connections->Connect(plot, vtkCommand::ModifiedEvent, this, SLOT(read(vtkObject*))); // I think this one should be enough connections->Connect(plot->GetPen(), vtkCommand::ModifiedEvent, this, SLOT(read(vtkObject*))); // May be pen should emit this on pen->SetColor()? connections->Connect(plot->GetBrush(), vtkCommand::ModifiedEvent, this, SLOT(read(vtkObject*))); // Or brush should? plot->SetColor(...); // No one fires!
I make plot->Modified() call right after SetColor but I think it's wrong.