55 #ifndef vtkImageToPolyDataFilter_h
56 #define vtkImageToPolyDataFilter_h
58 #include "vtkFiltersHybridModule.h"
61 #define VTK_STYLE_PIXELIZE 0
62 #define VTK_STYLE_POLYGONALIZE 1
63 #define VTK_STYLE_RUN_LENGTH 2
65 #define VTK_COLOR_MODE_LUT 0
66 #define VTK_COLOR_MODE_LINEAR_256 1
68 VTK_ABI_NAMESPACE_BEGIN
99 vtkGetMacro(OutputStyle,
int);
110 vtkGetMacro(ColorMode,
int);
139 vtkSetClampMacro(NumberOfSmoothingIterations,
int, 0,
VTK_INT_MAX);
140 vtkGetMacro(NumberOfSmoothingIterations,
int);
161 vtkGetMacro(DecimationError,
double);
171 vtkGetMacro(
Error,
int);
182 vtkSetClampMacro(SubImageSize,
int, 10,
VTK_INT_MAX);
183 vtkGetMacro(SubImageSize,
int);
220 void BuildTable(
unsigned char* inPixels);
234 unsigned char* ptr,
int& i,
int& j,
int dims[2],
unsigned char* neighbors[4],
int mode);
236 void GetIJ(
int id,
int& i,
int& j,
int dims[2]);
237 unsigned char* GetColor(
unsigned char* rgb);
238 int IsSameColor(
unsigned char* p1,
unsigned char* p2);
244 VTK_ABI_NAMESPACE_END
generate linear primitives (vtkPolyData) from an image
#define VTK_STYLE_RUN_LENGTH
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
record modification and/or execution time
dynamic, self-adjusting array of vtkIdType
concrete dataset represents vertices, lines, polygons, and triangle strips
keep track of edges (edge is pair of integer id's)
static vtkPolyDataAlgorithm * New()
Superclass for mapping scalar values to colors.
void SetColorModeToLUT()
Specify how to quantize color.
dynamic, self-adjusting array of int
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
#define VTK_STYLE_PIXELIZE
void SetColorModeToLinear256()
Specify how to quantize color.
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of unsigned char
int NumberOfSmoothingIterations
void SetOutputStyleToRunLength()
Specify how to create the output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
#define VTK_STYLE_POLYGONALIZE
void SetOutputStyleToPixelize()
Specify how to create the output.
#define VTK_COLOR_MODE_LINEAR_256
#define VTK_COLOR_MODE_LUT
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetOutputStyleToPolygonalize()
Specify how to create the output.
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
vtkScalarsToColors * LookupTable