Misc Stream
vtkStreamingDemandDrivenPipeline
Executive supporting partial updates.
vtkStreamingDemandDrivenPipeline is an executive that supports updating only a portion of the dataset in the pipeline. This is the style of pipeline update that is provided by the old-style VTK 4.x pipeline. Instead of always updating an entire dataset, this executive supports asking for pieces or sub-extents.
範例:
vtkStreamingDemandDrivenPipeline *exec=
vtkStreamingDemandDrivenPipeline::SafeDownCast(elev->GetExecutive());
exec->SetUpdateNumberOfPieces(exec->GetOutputInformation(0), numProcs);
exec->SetUpdatePiece(exec->GetOutputInformation(0), myid);
APIs:
int PropagateUpdateExtent(int outputPort) int SetUpdateExtentToWholeExtent(vtkInformation *) virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) virtual int Update() virtual int Update(int port) virtual int UpdateWholeExtent() int SetMaximumNumberOfPieces(vtkInformation *, int n) int GetMaximumNumberOfPieces(vtkInformation *) int SetWholeExtent(vtkInformation *, int extent[6]) void GetWholeExtent(vtkInformation *, int extent[6]) int *GetWholeExtent(vtkInformation *) int SetUpdateExtent(vtkInformation *, int extent[6]) void GetUpdateExtent(vtkInformation *, int extent[6]) int *GetUpdateExtent(vtkInformation *) int SetUpdateExtent(vtkInformation *, int piece, int numPieces, int ghostLevel) int SetUpdatePiece(vtkInformation *, int piece) int GetUpdatePiece(vtkInformation *) int SetUpdateNumberOfPieces(vtkInformation *, int n) int GetUpdateNumberOfPieces(vtkInformation *) int SetUpdateGhostLevel(vtkInformation *, int n) int GetUpdateGhostLevel(vtkInformation *) int SetRequestExactExtent(int port, int flag) int GetRequestExactExtent(int port) int SetExtentTranslator(vtkInformation *, vtkExtentTranslator *translator) vtkExtentTranslator *GetExtentTranslator(vtkInformation *info) int SetWholeBoundingBox(int port, double bb[6]) void GetWholeBoundingBox(int port, double bb[6]) double *GetWholeBoundingBox(int port)