MantisBT - VTK
View Issue Details
0010806VTK(No Category)public2010-06-09 08:392013-04-05 19:59
Eric Monson 
Marcus D. Hanwell 
normalminoralways
closedfixed 
 
 
0010806: ChartXY selection node field and content type not set
When a new selection is made in vtkChartXY, there are sometimes problems using the annotation link in other charts because the selection node content and field types are not being set. Here is the patch that's been working for me (following the pattern in vtkChartParallelCoordinates):

diff --git a/Charts/vtkChartXY.cxx b/Charts/vtkChartXY.cxx
index e439da0..bd46c2c 100644
--- a/Charts/vtkChartXY.cxx
+++ b/Charts/vtkChartXY.cxx
@@ -1169,6 +1169,8 @@ bool vtkChartXY::MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
               vtkSelection* selection = vtkSelection::New();
               vtkSelectionNode* node = vtkSelectionNode::New();
               selection->AddNode(node);
+ node->SetContentType(vtkSelectionNode::INDICES);
+ node->SetFieldType(vtkSelectionNode::POINT);
               node->SetSelectionList(plot->GetSelection());
               this->AnnotationLink->SetCurrentSelection(selection);
               node->Delete();
No tags attached.
Issue History
2010-06-09 08:39Eric MonsonNew Issue
2010-08-04 14:52Marcus D. HanwellStatusbacklog => tabled
2010-08-04 14:52Marcus D. HanwellAssigned To => Marcus D. Hanwell
2010-08-04 14:53Marcus D. HanwellNote Added: 0021648
2010-08-04 14:53Marcus D. HanwellStatustabled => @80@
2010-08-04 14:53Marcus D. HanwellResolutionopen => fixed
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 19:59Berk GeveciStatuscustomer review => closed

Notes
(0021648)
Marcus D. Hanwell   
2010-08-04 14:53   
Addressed in commit d00874c, sorry I missed this report. The fix is pretty simple, and looks correct to me.