Commit 2b2bfb3d authored by Eric Stanton's avatar Eric Stanton

ENH: Add new vtkRemoveHiddenData filter to internal pipeline of...

ENH: Add new vtkRemoveHiddenData filter to internal pipeline of vtkRenderedGraphRepresentation, after the graph layout so that the ordination remains fixed.
parent fb278c95
......@@ -56,6 +56,7 @@
#include "vtkPolyDataMapper.h"
#include "vtkProperty.h"
#include "vtkRandomLayoutStrategy.h"
#include "vtkRemoveHiddenData.h"
#include "vtkRenderer.h"
#include "vtkRenderView.h"
#include "vtkRenderWindow.h"
......@@ -87,7 +88,7 @@
vtkCxxRevisionMacro(vtkRenderedGraphRepresentation, "1.20");
vtkCxxRevisionMacro(vtkRenderedGraphRepresentation, "1.21");
vtkStandardNewMacro(vtkRenderedGraphRepresentation);
vtkRenderedGraphRepresentation::vtkRenderedGraphRepresentation()
......@@ -121,6 +122,7 @@ vtkRenderedGraphRepresentation::vtkRenderedGraphRepresentation()
this->OutlineActor = vtkSmartPointer<vtkActor>::New();
this->VertexScalarBar = vtkSmartPointer<vtkScalarBarWidget>::New();
this->EdgeScalarBar = vtkSmartPointer<vtkScalarBarWidget>::New();
this->RemoveHiddenGraph = vtkSmartPointer<vtkRemoveHiddenData>::New();
this->VertexColorArrayNameInternal = 0;
this->EdgeColorArrayNameInternal = 0;
......@@ -146,7 +148,8 @@ vtkRenderedGraphRepresentation::vtkRenderedGraphRepresentation()
</graphviz>
*/
this->Coincident->SetInputConnection(this->Layout->GetOutputPort());
this->RemoveHiddenGraph->SetInputConnection(this->Layout->GetOutputPort());
this->Coincident->SetInputConnection(this->RemoveHiddenGraph->GetOutputPort());
this->EdgeLayout->SetInputConnection(this->Coincident->GetOutputPort());
this->VertexDegree->SetInputConnection(this->EdgeLayout->GetOutputPort());
this->ApplyColors->SetInputConnection(this->VertexDegree->GetOutputPort());
......@@ -1239,6 +1242,7 @@ int vtkRenderedGraphRepresentation::RequestData(
{
this->Layout->SetInputConnection(this->GetInternalOutputPort());
this->ApplyColors->SetInputConnection(1, this->GetInternalAnnotationOutputPort());
this->RemoveHiddenGraph->SetInputConnection(1, this->GetInternalAnnotationOutputPort());
return 1;
}
......
......@@ -44,6 +44,7 @@ class vtkLookupTable;
class vtkPerturbCoincidentVertices;
class vtkPolyData;
class vtkPolyDataMapper;
class vtkRemoveHiddenData;
class vtkRenderView;
class vtkScalarBarWidget;
class vtkScalarsToColors;
......@@ -320,6 +321,7 @@ protected:
vtkSmartPointer<vtkActor> OutlineActor;
vtkSmartPointer<vtkScalarBarWidget> VertexScalarBar;
vtkSmartPointer<vtkScalarBarWidget> EdgeScalarBar;
vtkSmartPointer<vtkRemoveHiddenData> RemoveHiddenGraph;
//ETX
vtkSetStringMacro(VertexColorArrayNameInternal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment