<div dir="ltr"><div><div>Hi,<br><br></div>1) I would like to highlight lines (change their color) in a parallel coordinates view. When I select lines with the mouse, they are just painted over the coordinate axes but not highlighted. Since I have thousands of lines and they are on top of each other, I can not see at all which ones are selected.<br>
<br></div>Here are the most important parts of the code:<br><div><br> // Convert the features to vtk arrays<br>  for (int i = 0; i < feature_space_dim; ++i)<br>  {<br>    // The axis label is just i<br>    ostringstream label; label << i;<br>
    axis_labels[i] = label.str();<br><br>    // Create the array<br>    vtkDoubleArray* array = vtkDoubleArray::New();<br>    array->SetName(axis_labels[i].c_str());<br>    array->SetNumberOfComponents(1);<br><br>    // Fill the array with data<br>
    for (vector<FeatureSpace::Feature>::const_iterator f = features.begin(); f != features.end(); ++f)<br>      array->InsertNextValue((*f)[i]);<br><br>    // Save the array to the poly data object<br>    data->GetPointData()->AddArray(array);<br>
    array->Delete();<br>  }<br><br>  // Create the object to visualize<br>  vtkParallelCoordinatesRepresentation* rep = vtkParallelCoordinatesRepresentation::New();<br>  rep->SetInputData(data);<br>  for (int i = 0; i < feature_space_dim; ++i)<br>
    rep->SetInputArrayToProcess(i, 0, 0, 0, axis_labels[i].c_str());<br>  rep->SetLineColor(1, 0, 0);<br>  rep->SetAxisColor(0, 1, 0);<br>  rep->SetLineOpacity(0.5);<br>  rep->Update();<br>  // Set the right range for the parallel coordinates<br>
  for (int i = 0; i < feature_space_dim; ++i)<br>    rep->SetRangeAtPosition(i, features_range);<br>  // Connect the annotation link to the parallel coordinates representation<br>  rep->SetAnnotationLink(m_annotation_link);<br>
<br>  // Some updates<br>  m_parallel_coordinates_view->RemoveAllRepresentations();<br>  m_parallel_coordinates_view->Update();<br>  m_parallel_coordinates_view->SetRepresentation(rep);<br>  m_parallel_coordinates_view->ResetCamera();<br>
<br>  // Clean up<br>  data->Delete();<br>  rep->Delete();<br><br><br></div><div>2) How can I add lines to the view? These lines should have different color.<br><br></div><div>Thank you very much.<br><br></div><div>
Regards<br></div><div>cp<br></div></div>