/usr/include/vtk-6.1/vtkDemandDrivenPipeline.h is in libvtk6-dev 6.1.0+dfsg2-6.
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 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkDemandDrivenPipeline.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 vtkDemandDrivenPipeline - Executive supporting on-demand execution.
// .SECTION Description
// vtkDemandDrivenPipeline is an executive that will execute an
// algorithm only when its outputs are out-of-date with respect to its
// inputs.
#ifndef __vtkDemandDrivenPipeline_h
#define __vtkDemandDrivenPipeline_h
#include "vtkCommonExecutionModelModule.h" // For export macro
#include "vtkExecutive.h"
class vtkAbstractArray;
class vtkDataArray;
class vtkDataSetAttributes;
class vtkDemandDrivenPipelineInternals;
class vtkFieldData;
class vtkInformation;
class vtkInformationIntegerKey;
class vtkInformationVector;
class vtkInformationKeyVectorKey;
class vtkInformationUnsignedLongKey;
class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDemandDrivenPipeline : public vtkExecutive
{
public:
static vtkDemandDrivenPipeline* New();
vtkTypeMacro(vtkDemandDrivenPipeline,vtkExecutive);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Generalized interface for asking the executive to fulfill update
// requests.
virtual int ProcessRequest(vtkInformation* request,
vtkInformationVector** inInfo,
vtkInformationVector* outInfo);
// Description:
// Implement the pipeline modified time request.
virtual int
ComputePipelineMTime(vtkInformation* request,
vtkInformationVector** inInfoVec,
vtkInformationVector* outInfoVec,
int requestFromOutputPort,
unsigned long* mtime);
// Description:
// Bring the algorithm's outputs up-to-date. Returns 1 for success
// and 0 for failure.
virtual int Update();
virtual int Update(int port);
// Description:
// Get the PipelineMTime for this exective.
vtkGetMacro(PipelineMTime, unsigned long);
// Description:
// Set whether the given output port releases data when it is
// consumed. Returns 1 if the the value changes and 0 otherwise.
virtual int SetReleaseDataFlag(int port, int n);
// Description:
// Get whether the given output port releases data when it is consumed.
virtual int GetReleaseDataFlag(int port);
// Description:
// Bring the PipelineMTime up to date.
virtual int UpdatePipelineMTime();
// Description:
// Bring the output data object's existence up to date. This does
// not actually produce data, but does create the data object that
// will store data produced during the UpdateData step.
virtual int UpdateDataObject();
// Description:
// Bring the output information up to date.
virtual int UpdateInformation();
// Description:
// Bring the output data up to date. This should be called only
// when information is up to date. Use the Update method if it is
// not known that the information is up to date.
virtual int UpdateData(int outputPort);
// Description:
// Key defining a request to make sure the output data objects exist.
static vtkInformationRequestKey* REQUEST_DATA_OBJECT();
// Description:
// Key defining a request to make sure the output information is up to date.
static vtkInformationRequestKey* REQUEST_INFORMATION();
// Description:
// Key defining a request to make sure the output data are up to date.
static vtkInformationRequestKey* REQUEST_DATA();
// Description:
// Key defining a request to mark outputs that will NOT be generated
// during a REQUEST_DATA.
static vtkInformationRequestKey* REQUEST_DATA_NOT_GENERATED();
// Description:
// Key to specify in pipeline information the request that data be
// released after it is used.
static vtkInformationIntegerKey* RELEASE_DATA();
// Description:
// Key to store a mark for an output that will not be generated.
// Algorithms use this to tell the executive that they will not
// generate certain outputs for a REQUEST_DATA.
static vtkInformationIntegerKey* DATA_NOT_GENERATED();
// Description:
// Create (New) and return a data object of the given type.
// This is here for backwards compatibility. Use
// vtkDataObjectTypes::NewDataObject() instead.
static vtkDataObject* NewDataObject(const char* type);
// Description:
// Key to be used for REQUEST_INFORMATION and REQUEST_DATA_OBJECT
// passes when you modification time should not be taken into account.
static vtkInformationIntegerKey* REQUEST_REGENERATE_INFORMATION();
protected:
vtkDemandDrivenPipeline();
~vtkDemandDrivenPipeline();
// Helper methods to send requests to the algorithm.
virtual int ExecuteDataObject(vtkInformation* request,
vtkInformationVector** inInfo,
vtkInformationVector* outInfo);
virtual int ExecuteInformation(vtkInformation* request,
vtkInformationVector** inInfo,
vtkInformationVector* outInfo);
virtual int ExecuteData(vtkInformation* request,
vtkInformationVector** inInfo,
vtkInformationVector* outInfo);
// Reset the pipeline update values in the given output information object.
virtual void ResetPipelineInformation(int, vtkInformation*);
// Check whether the data object in the pipeline information for an
// output port exists and has a valid type.
virtual int CheckDataObject(int port, vtkInformationVector* outInfo);
// Input connection validity checkers.
int InputCountIsValid(vtkInformationVector **);
int InputCountIsValid(int port,vtkInformationVector **);
int InputTypeIsValid(vtkInformationVector **);
int InputTypeIsValid(int port,vtkInformationVector **);
virtual int InputTypeIsValid(int port, int index,vtkInformationVector **);
int InputFieldsAreValid(vtkInformationVector **);
int InputFieldsAreValid(int port,vtkInformationVector **);
virtual int InputFieldsAreValid(int port, int index,vtkInformationVector **);
// Field existence checkers.
int DataSetAttributeExists(vtkDataSetAttributes* dsa, vtkInformation* field);
int FieldArrayExists(vtkFieldData* data, vtkInformation* field);
int ArrayIsValid(vtkAbstractArray* array, vtkInformation* field);
// Input port information checkers.
int InputIsOptional(int port);
int InputIsRepeatable(int port);
// Decide whether the output data need to be generated.
virtual int NeedToExecuteData(int outputPort,
vtkInformationVector** inInfoVec,
vtkInformationVector* outInfoVec);
// Handle before/after operations for ExecuteData method.
virtual void ExecuteDataStart(vtkInformation* request,
vtkInformationVector** inInfoVec,
vtkInformationVector* outInfoVec);
virtual void ExecuteDataEnd(vtkInformation* request,
vtkInformationVector** inInfoVec,
vtkInformationVector* outInfoVec);
virtual void MarkOutputsGenerated(vtkInformation* request,
vtkInformationVector** inInfoVec,
vtkInformationVector* outInfoVec);
// Largest MTime of any algorithm on this executive or preceding
// executives.
unsigned long PipelineMTime;
// Time when information or data were last generated.
vtkTimeStamp DataObjectTime;
vtkTimeStamp InformationTime;
vtkTimeStamp DataTime;
//BTX
friend class vtkCompositeDataPipeline;
//ETX
vtkInformation *InfoRequest;
vtkInformation *DataObjectRequest;
vtkInformation *DataRequest;
private:
vtkDemandDrivenPipeline(const vtkDemandDrivenPipeline&); // Not implemented.
void operator=(const vtkDemandDrivenPipeline&); // Not implemented.
};
#endif
|