Commit f2a7df46 authored by Karthik Krishnan's avatar Karthik Krishnan
Browse files

ENH: Add method to retrieve the polydata contour representation

parent 2ab377f4
......@@ -40,7 +40,7 @@
#include "vtkFocalPlanePointPlacer.h"
#include "vtkBezierContourLineInterpolator.h"
vtkCxxRevisionMacro(vtkOrientedGlyphContourRepresentation, "1.2");
vtkCxxRevisionMacro(vtkOrientedGlyphContourRepresentation, "1.3");
vtkStandardNewMacro(vtkOrientedGlyphContourRepresentation);
//----------------------------------------------------------------------
......@@ -493,6 +493,14 @@ void vtkOrientedGlyphContourRepresentation::BuildLines()
lines->Delete();
}
//----------------------------------------------------------------------
const vtkPolyData * const
vtkOrientedGlyphContourRepresentation::GetContourRepresentationAsPolyData() const
{
// Get the points in this contour as a vtkPolyData.
return this->Lines;
}
//----------------------------------------------------------------------
void vtkOrientedGlyphContourRepresentation::BuildRepresentation()
{
......
......@@ -103,6 +103,10 @@ public:
virtual int RenderOpaqueGeometry(vtkViewport *viewport);
virtual int RenderTranslucentGeometry(vtkViewport *viewport);
// Description:
// Get the points in this contour as a vtkPolyData.
virtual const vtkPolyData * const GetContourRepresentationAsPolyData() const;
protected:
vtkOrientedGlyphContourRepresentation();
~vtkOrientedGlyphContourRepresentation();
......
Supports Markdown
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