VTK
vtkProgrammableAttributeDataFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProgrammableAttributeDataFilter.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 =========================================================================*/
80 #ifndef vtkProgrammableAttributeDataFilter_h
81 #define vtkProgrammableAttributeDataFilter_h
82 
83 #include "vtkFiltersProgrammableModule.h" // For export macro
84 #include "vtkDataSetAlgorithm.h"
85 
87 
88 class VTKFILTERSPROGRAMMABLE_EXPORT vtkProgrammableAttributeDataFilter : public vtkDataSetAlgorithm
89 {
90 public:
93  void PrintSelf(ostream& os, vtkIndent indent);
94 
98  void AddInput(vtkDataSet *in);
99 
104 
108  vtkDataSetCollection *GetInputList() {return this->InputList;};
109 
119  typedef void (*ProgrammableMethodCallbackType)(void *arg);
120 
125  void SetExecuteMethod(void (*f)(void *), void *arg);
126 
130  void SetExecuteMethodArgDelete(void (*f)(void *));
131 
132 protected:
135 
137  vtkDataSetCollection *InputList; //list of datasets to process
138  ProgrammableMethodCallbackType ExecuteMethod; //function to invoke
139  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
141 
143 
144 private:
145  // hide the superclass' AddInput() from the user and the compiler
146  void AddInput(vtkDataObject *)
147  { vtkErrorMacro( << "AddInput() must be called with a vtkDataSet not a vtkDataObject."); };
148 
149 private:
151  void operator=(const vtkProgrammableAttributeDataFilter&) VTK_DELETE_FUNCTION;
152 };
153 
154 #endif
155 
156 
vtkProgrammableAttributeDataFilter::vtkProgrammableAttributeDataFilter
vtkProgrammableAttributeDataFilter()
vtkProgrammableAttributeDataFilter::ExecuteMethod
ProgrammableMethodCallbackType ExecuteMethod
Definition: vtkProgrammableAttributeDataFilter.h:138
vtkProgrammableAttributeDataFilter::GetInputList
vtkDataSetCollection * GetInputList()
Return the list of inputs.
Definition: vtkProgrammableAttributeDataFilter.h:108
vtkProgrammableAttributeDataFilter::InputList
vtkDataSetCollection * InputList
Definition: vtkProgrammableAttributeDataFilter.h:137
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkProgrammableAttributeDataFilter::~vtkProgrammableAttributeDataFilter
~vtkProgrammableAttributeDataFilter()
vtkProgrammableAttributeDataFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:52
vtkProgrammableAttributeDataFilter::ExecuteMethodArgDelete
ProgrammableMethodCallbackType ExecuteMethodArgDelete
Definition: vtkProgrammableAttributeDataFilter.h:139
vtkProgrammableAttributeDataFilter::SetExecuteMethodArgDelete
void SetExecuteMethodArgDelete(void(*f)(void *))
Set the arg delete method.
vtkProgrammableAttributeDataFilter
manipulate attribute (cell and point) data via a user-specified function
Definition: vtkProgrammableAttributeDataFilter.h:89
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkProgrammableAttributeDataFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:100
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkProgrammableAttributeDataFilter::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkDataSetAlgorithm.h
vtkProgrammableAttributeDataFilter::AddInput
void AddInput(vtkDataSet *in)
Add a dataset to the list of data to process.
vtkProgrammableAttributeDataFilter::New
static vtkProgrammableAttributeDataFilter * New()
vtkDataSetCollection
maintain an unordered list of dataset objects
Definition: vtkDataSetCollection.h:32
vtkProgrammableAttributeDataFilter::SetExecuteMethod
void SetExecuteMethod(void(*f)(void *), void *arg)
Specify the function to use to operate on the point attribute data.
vtkProgrammableAttributeDataFilter::RemoveInput
void RemoveInput(vtkDataSet *in)
Remove a dataset from the list of data to process.
vtkProgrammableAttributeDataFilter::ExecuteMethodArg
void * ExecuteMethodArg
Definition: vtkProgrammableAttributeDataFilter.h:140
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65