MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013865 | VTK | (No Category) | public | 2013-02-07 17:31 | 2013-12-16 15:39 |
Reporter | Bastian Angermann | ||||
Assigned To | Dave DeMarle | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | 5.10.1 | ||||
Target Version | Fixed in Version | 6.0.0 | |||
Project | TBD | ||||
Type | incorrect functionality | ||||
Summary | 0013865: Legend in vtkPlotStracked shows the same color for all entries | ||||
Description | I am drawing a vtkPlotStracked where the colors are set using a vtkColorSeries. All colors displayed in the legend are the same. The color that is displayed matches the color I would expect for the last entry (see the attached screenshot). The code for the PaintLegend method reads bool vtkPlotStacked::PaintLegend(vtkContext2D *painter, const vtkRectf& rect, int) { painter->ApplyPen(this->Pen); painter->ApplyBrush(this->Brush); painter->DrawRect(rect[0], rect[1], rect[2], rect[3]); return true; } shouldn't this be bool vtkPlotStacked::PaintLegend(vtkContext2D *painter, const vtkRectf& rect, int legendIndex) { if (this->ColorSeries) { this->Brush->SetColor( this->ColorSeries->GetColorRepeating(legendIndex).GetData()); } painter->ApplyPen(this->Pen); painter->ApplyBrush(this->Brush); painter->DrawRect(rect[0], rect[1], rect[2], rect[3]); return true; } | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | vtkPlotStacked.png (21,270) 2013-02-07 17:31 https://www.vtk.org/Bug/file/9394/vtkPlotStacked.png | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-02-07 17:31 | Bastian Angermann | New Issue | |||
2013-02-07 17:31 | Bastian Angermann | File Added: vtkPlotStacked.png | |||
2013-06-25 12:45 | Dave DeMarle | Note Added: 0031052 | |||
2013-07-03 13:35 | Bastian Angermann | Note Added: 0031118 | |||
2013-12-16 15:37 | Dave DeMarle | Note Added: 0031953 | |||
2013-12-16 15:37 | Dave DeMarle | Status | backlog => closed | ||
2013-12-16 15:37 | Dave DeMarle | Assigned To | => Dave DeMarle | ||
2013-12-16 15:37 | Dave DeMarle | Resolution | open => fixed | ||
2013-12-16 15:39 | Dave DeMarle | Fixed in Version | => 6.0.0 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|