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 =========================================================================*/
63 #ifndef vtkProgrammableGlyphFilter_h
64 #define vtkProgrammableGlyphFilter_h
65 
66 #define VTK_COLOR_BY_INPUT 0
67 #define VTK_COLOR_BY_SOURCE 1
68 
69 #include "vtkFiltersProgrammableModule.h" // For export macro
70 #include "vtkPolyDataAlgorithm.h"
71 
72 class vtkPointData;
73 
75 {
76 public:
78  void PrintSelf(ostream& os, vtkIndent indent);
79 
83 
88 
90 
95 
102  typedef void (*ProgrammableMethodCallbackType)(void *arg);
103 
105  void SetGlyphMethod(void (*f)(void *), void *arg);
106 
109  void SetGlyphMethodArgDelete(void (*f)(void *));
110 
112 
117 
119 
122  vtkGetVector3Macro(Point,double);
124 
126 
131 
133 
134  vtkSetMacro(ColorMode,int);
135  vtkGetMacro(ColorMode,int);
137  {this->SetColorMode(VTK_COLOR_BY_INPUT);};
139  {this->SetColorMode(VTK_COLOR_BY_SOURCE);};
140  const char *GetColorModeAsString();
142 
143 protected:
146 
149 
150  double Point[3]; // Coordinates of point
151  vtkIdType PointId; // Current point id during processing
154 
155  ProgrammableMethodCallbackType GlyphMethod; // Support GlyphMethod
156  ProgrammableMethodCallbackType GlyphMethodArgDelete;
158 
159 private:
160  vtkProgrammableGlyphFilter(const vtkProgrammableGlyphFilter&); // Not implemented.
161  void operator=(const vtkProgrammableGlyphFilter&); // Not implemented.
162 };
163 
164 #endif
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkProgrammableGlyphFilter::GlyphMethod
ProgrammableMethodCallbackType GlyphMethod
Definition: vtkProgrammableGlyphFilter.h:155
vtkProgrammableGlyphFilter::PointId
vtkIdType PointId
Definition: vtkProgrammableGlyphFilter.h:151
vtkProgrammableGlyphFilter::New
static vtkProgrammableGlyphFilter * New()
vtkProgrammableGlyphFilter::SetSourceData
void SetSourceData(vtkPolyData *source)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkProgrammableGlyphFilter::vtkProgrammableGlyphFilter
vtkProgrammableGlyphFilter()
VTK_COLOR_BY_SOURCE
#define VTK_COLOR_BY_SOURCE
Definition: vtkProgrammableGlyphFilter.h:67
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkProgrammableGlyphFilter::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)
vtkFiltersProgrammableModule.h
vtkProgrammableGlyphFilter::SetGlyphMethodArgDelete
void SetGlyphMethodArgDelete(void(*f)(void *))
vtkProgrammableGlyphFilter
control the generation and placement of glyphs at input points
Definition: vtkProgrammableGlyphFilter.h:75
vtkProgrammableGlyphFilter::~vtkProgrammableGlyphFilter
~vtkProgrammableGlyphFilter()
vtkProgrammableGlyphFilter::GlyphMethodArgDelete
ProgrammableMethodCallbackType GlyphMethodArgDelete
Definition: vtkProgrammableGlyphFilter.h:156
vtkPolyDataAlgorithm.h
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:821
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkProgrammableGlyphFilter::SetSourceConnection
void SetSourceConnection(vtkAlgorithmOutput *output)
VTK_COLOR_BY_INPUT
#define VTK_COLOR_BY_INPUT
Definition: vtkProgrammableGlyphFilter.h:66
vtkProgrammableGlyphFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkProgrammableGlyphFilter::GetColorModeAsString
const char * GetColorModeAsString()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTKFILTERSPROGRAMMABLE_EXPORT
#define VTKFILTERSPROGRAMMABLE_EXPORT
Definition: vtkFiltersProgrammableModule.h:15
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkgl::f
GLclampf f
Definition: vtkgl.h:14181
vtkProgrammableGlyphFilter::ColorMode
int ColorMode
Definition: vtkProgrammableGlyphFilter.h:153
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkProgrammableGlyphFilter::PointData
vtkPointData * PointData
Definition: vtkProgrammableGlyphFilter.h:152
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkProgrammableGlyphFilter::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkProgrammableGlyphFilter::SetColorModeToColorByInput
void SetColorModeToColorByInput()
Definition: vtkProgrammableGlyphFilter.h:136
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
vtkProgrammableGlyphFilter::GetSource
vtkPolyData * GetSource()
vtkProgrammableGlyphFilter::SetGlyphMethod
void SetGlyphMethod(void(*f)(void *), void *arg)
vtkProgrammableGlyphFilter::SetColorModeToColorBySource
void SetColorModeToColorBySource()
Definition: vtkProgrammableGlyphFilter.h:138
vtkProgrammableGlyphFilter::GlyphMethodArg
void * GlyphMethodArg
Definition: vtkProgrammableGlyphFilter.h:157
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44