VTK
vtkProgrammableGlyphFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkProgrammableGlyphFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
64#ifndef vtkProgrammableGlyphFilter_h
65#define vtkProgrammableGlyphFilter_h
66
67#define VTK_COLOR_BY_INPUT 0
68#define VTK_COLOR_BY_SOURCE 1
69
70#include "vtkFiltersProgrammableModule.h" // For export macro
72
73class vtkPointData;
74
75class VTKFILTERSPROGRAMMABLE_EXPORT vtkProgrammableGlyphFilter : public vtkPolyDataAlgorithm
76{
77public:
79 void PrintSelf(ostream& os, vtkIndent indent);
80
86
93
95
103
112 typedef void (*ProgrammableMethodCallbackType)(void *arg);
113
117 void SetGlyphMethod(void (*f)(void *), void *arg);
118
123 void SetGlyphMethodArgDelete(void (*f)(void *));
124
126
130 vtkGetMacro(PointId, vtkIdType);
132
134
138 vtkGetVector3Macro(Point,double);
140
142
147 vtkGetObjectMacro(PointData,vtkPointData);
149
151
154 vtkSetMacro(ColorMode,int);
155 vtkGetMacro(ColorMode,int);
157 {this->SetColorMode(VTK_COLOR_BY_INPUT);};
159 {this->SetColorMode(VTK_COLOR_BY_SOURCE);};
160 const char *GetColorModeAsString();
162
163protected:
166
169
170 double Point[3]; // Coordinates of point
171 vtkIdType PointId; // Current point id during processing
174
175 ProgrammableMethodCallbackType GlyphMethod; // Support GlyphMethod
176 ProgrammableMethodCallbackType GlyphMethodArgDelete;
178
179private:
180 vtkProgrammableGlyphFilter(const vtkProgrammableGlyphFilter&) VTK_DELETE_FUNCTION;
181 void operator=(const vtkProgrammableGlyphFilter&) VTK_DELETE_FUNCTION;
182};
183
184#endif
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:38
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
control the generation and placement of glyphs at input points
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
ProgrammableMethodCallbackType GlyphMethodArgDelete
const char * GetColorModeAsString()
void SetSourceConnection(vtkAlgorithmOutput *output)
Setup a connection for the source to use as the glyph.
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
void SetGlyphMethodArgDelete(void(*f)(void *))
Set the arg delete method.
void SetSourceData(vtkPolyData *source)
Set/Get the source to use for this glyph.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetGlyphMethod(void(*f)(void *), void *arg)
Specify function to be called for each input point.
static vtkProgrammableGlyphFilter * New()
Construct object with NULL GlyphMethod() and no source object.
ProgrammableMethodCallbackType GlyphMethod
vtkPolyData * GetSource()
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_COLOR_BY_SOURCE
#define VTK_COLOR_BY_INPUT
int vtkIdType
Definition: vtkType.h:287