66 #ifndef vtkImageToPolyDataFilter_h
67 #define vtkImageToPolyDataFilter_h
72 #define VTK_STYLE_PIXELIZE 0
73 #define VTK_STYLE_POLYGONALIZE 1
74 #define VTK_STYLE_RUN_LENGTH 2
76 #define VTK_COLOR_MODE_LUT 0
77 #define VTK_COLOR_MODE_LINEAR_256 1
106 vtkGetMacro(OutputStyle,
int);
118 vtkGetMacro(ColorMode,
int);
135 vtkSetMacro(Smoothing,
int);
136 vtkGetMacro(Smoothing,
int);
137 vtkBooleanMacro(Smoothing,
int);
143 vtkSetClampMacro(NumberOfSmoothingIterations,
int,0,
VTK_INT_MAX);
144 vtkGetMacro(NumberOfSmoothingIterations,
int);
150 vtkSetMacro(Decimation,
int);
151 vtkGetMacro(Decimation,
int);
152 vtkBooleanMacro(Decimation,
int);
161 vtkGetMacro(DecimationError,
double);
169 vtkGetMacro(Error,
int);
179 vtkGetMacro(SubImageSize,
int);
200 double origin[3],
double spacing[3],
203 double origin[3],
double spacing[3],
206 double origin[3],
double spacing[3],
220 void BuildTable(
unsigned char *inPixels);
222 int type,
int dims[3],
int ext[4]);
236 int GetNeighbors(
unsigned char *ptr,
int &i,
int &j,
int dims[3],
237 unsigned char *neighbors[4],
int mode);
239 void GetIJ(
int id,
int &i,
int &j,
int dims[3]);
240 unsigned char *GetColor(
unsigned char *rgb);
241 int IsSameColor(
unsigned char *p1,
unsigned char *p2);
generate linear primitives (vtkPolyData) from an image
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTK_STYLE_RUN_LENGTH
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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 PrintSelf(ostream &os, vtkIndent indent)
dynamic, self-adjusting array of int
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
#define VTKFILTERSHYBRID_EXPORT
#define VTK_STYLE_PIXELIZE
void SetColorModeToLinear256()
appends one or more polygonal datasets together
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of unsigned char
int NumberOfSmoothingIterations
void SetOutputStyleToRunLength()
#define VTK_STYLE_POLYGONALIZE
void SetOutputStyleToPixelize()
#define VTK_COLOR_MODE_LINEAR_256
#define VTK_COLOR_MODE_LUT
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
void SetOutputStyleToPolygonalize()
vtkScalarsToColors * LookupTable