Skip to content
Snippets Groups Projects
Commit 3583c990 authored by Julien Fausty's avatar Julien Fausty
Browse files

EasyView: add vtkAttributeDataToTableFilter

parent a3f2dc5e
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
// VTK includes
#include "vtkGenericOpenGLRenderWindow.h"
#include <vtkAnnotationLink.h>
#include <vtkDataObjectToTable.h>
#include <vtkAttributeDataToTableFilter.h>
#include <vtkDataRepresentation.h>
#include <vtkGraphLayoutView.h>
#include <vtkQtTableView.h>
......@@ -158,9 +158,9 @@ void EasyView::slotOpenXMLFile()
this->ColumnView->SetRepresentationFromInputConnection(this->XMLReader->GetOutputPort());
// Extract a table and give to table view
VTK_CREATE(vtkDataObjectToTable, toTable);
VTK_CREATE(vtkAttributeDataToTableFilter, toTable);
toTable->SetInputConnection(this->XMLReader->GetOutputPort());
toTable->SetFieldType(vtkDataObjectToTable::VERTEX_DATA);
toTable->SetFieldAssociation(vtkDataObject::FIELD_ASSOCIATION_VERTICES);
this->TableView->SetRepresentationFromInputConnection(toTable->GetOutputPort());
this->SetupAnnotationLink();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment