View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010806VTK(No Category)public2010-06-09 08:392013-04-05 19:59
ReporterEric Monson 
Assigned ToMarcus D. Hanwell 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0010806: ChartXY selection node field and content type not set
DescriptionWhen 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();
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0021648)
Marcus D. Hanwell (developer)
2010-08-04 14:53

Addressed in commit d00874c, sorry I missed this report. The fix is pretty simple, and looks correct to me.

 Issue History
Date Modified Username Field Change
2010-06-09 08:39 Eric Monson New Issue
2010-08-04 14:52 Marcus D. Hanwell Status backlog => tabled
2010-08-04 14:52 Marcus D. Hanwell Assigned To => Marcus D. Hanwell
2010-08-04 14:53 Marcus D. Hanwell Note Added: 0021648
2010-08-04 14:53 Marcus D. Hanwell Status tabled => @80@
2010-08-04 14:53 Marcus D. Hanwell Resolution open => fixed
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2013-04-05 19:59 Berk Geveci Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team