/usr/include/vtk-5.8/vtkProcessObject.h is in libvtk5-dev 5.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkProcessObject.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkProcessObject - abstract class specifies interface for visualization filters
//
// .SECTION Description
// vtkProcessObject is an abstract object that specifies behavior and
// interface of visualization network process objects (sources, filters,
// mappers). Source objects are creators of visualization data; filters
// input, process, and output visualization data; and mappers transform data
// into another form (like rendering primitives or write data to a file).
//
// vtkProcessObject fires events for Start and End events before and after
// object execution (via Execute()). These events can be used for any purpose
// (e.g., debugging info, highlighting/notifying user interface, etc.)
//
// Another event, Progress, can be observed. Some filters fire this
// event periodically during their execution. The use is similar to that of
// Start and End events. Filters may also check their AbortExecute
// flag to determine whether to prematurely end their execution.
//
// An important feature of subclasses of vtkProcessObject is that it is
// possible to control the memory-management model (i.e., retain output
// versus delete output data). If enabled the ReleaseDataFlag enables the
// deletion of the output data once the downstream process object finishes
// processing the data (please see text).
//
// .SECTION See Also
// vtkDataObject vtkSource vtkFilter vtkMapper vtkWriter
#ifndef __vtkProcessObject_h
#define __vtkProcessObject_h
#include "vtkAlgorithm.h"
class vtkDataObject;
class VTK_FILTERING_EXPORT vtkProcessObject : public vtkAlgorithm
{
public:
vtkTypeMacro(vtkProcessObject,vtkAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Return an array with all the inputs of this process object.
// This is useful for tracing back in the pipeline to construct
// graphs etc.
vtkDataObject **GetInputs();
int GetNumberOfInputs();
// Description:
// This method will rearrange the input array so that all NULL entries
// are removed.
void SqueezeInputArray();
// Description:
// Remove all the input data.
void RemoveAllInputs();
// Description:
// Reimplemented from vtkAlgorithm to maintain backward
// compatibility for vtkProcessObject.
virtual void SetInputConnection(vtkAlgorithmOutput* input) {
this->vtkAlgorithm::SetInputConnection(input); }
virtual void SetInputConnection(int port, vtkAlgorithmOutput* input);
virtual void AddInputConnection(int port, vtkAlgorithmOutput* input);
virtual void AddInputConnection(vtkAlgorithmOutput* input)
{
this->AddInputConnection(0, input);
}
virtual void RemoveInputConnection(int port, vtkAlgorithmOutput* input);
virtual void SetNthInputConnection(int port, int index,
vtkAlgorithmOutput* input);
virtual void SetNumberOfInputConnections(int port, int n);
protected:
vtkProcessObject();
~vtkProcessObject();
int NumberOfInputs;
int NumberOfRequiredInputs;
vtkDataObject **Inputs; //An array of the inputs to the filter
// Called to allocate the input array. Copies old inputs.
void SetNumberOfInputs(int num);
// protected methods for setting inputs.
virtual void SetNthInput(int num, vtkDataObject *input);
virtual void AddInput(vtkDataObject *input);
virtual void RemoveInput(vtkDataObject *input);
virtual void ReportReferences(vtkGarbageCollector*);
// Implement methods required by vtkAlgorithm.
virtual int FillInputPortInformation(int, vtkInformation*);
virtual int FillOutputPortInformation(int, vtkInformation*);
// Helper methods for compatibility layer.
void AddInputInternal(vtkDataObject* input);
void RemoveInputInternal(vtkDataObject* input);
void SetupInputs();
private:
vtkProcessObject(const vtkProcessObject&); // Not implemented.
void operator=(const vtkProcessObject&); // Not implemented.
};
#endif
|