64 #ifndef vtkImageToPolyDataFilter_h
65 #define vtkImageToPolyDataFilter_h
67 #include "vtkFiltersHybridModule.h"
70 #define VTK_STYLE_PIXELIZE 0
71 #define VTK_STYLE_POLYGONALIZE 1
72 #define VTK_STYLE_RUN_LENGTH 2
74 #define VTK_COLOR_MODE_LUT 0
75 #define VTK_COLOR_MODE_LINEAR_256 1
107 vtkGetMacro(OutputStyle,
int);
121 vtkGetMacro(ColorMode,
int);
143 vtkGetMacro(Smoothing,
int);
152 vtkSetClampMacro(NumberOfSmoothingIterations,
int,0,
VTK_INT_MAX);
153 vtkGetMacro(NumberOfSmoothingIterations,
int);
162 vtkGetMacro(Decimation,
int);
174 vtkGetMacro(DecimationError,
double);
184 vtkGetMacro(Error,
int);
196 vtkGetMacro(SubImageSize,
int);
204 int FillInputPortInformation(
int port, vtkInformation *
info) VTK_OVERRIDE;
209 int NumberOfSmoothingIterations;
211 double DecimationError;
217 double origin[3],
double spacing[3],
220 double origin[3],
double spacing[3],
223 double origin[3],
double spacing[3],
235 void BuildTable(
unsigned char *inPixels);
237 int type,
int dims[3],
int ext[4]);
251 int GetNeighbors(
unsigned char *ptr,
int &i,
int &j,
int dims[3],
252 unsigned char *neighbors[4],
int mode);
254 void GetIJ(
int id,
int &i,
int &j,
int dims[2]);
255 unsigned char *GetColor(
unsigned char *rgb);
256 int IsSameColor(
unsigned char *p1,
unsigned char *p2);
generate linear primitives (vtkPolyData) from an image
#define VTK_STYLE_RUN_LENGTH
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
dynamic, self-adjusting array of unsigned char
void SetOutputStyleToRunLength()
Specify how to create the output.
#define VTK_STYLE_POLYGONALIZE
void SetOutputStyleToPixelize()
Specify how to create the output.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#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.
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
void SetOutputStyleToPolygonalize()
Specify how to create the output.