VTK/Information Keys: Difference between revisions

From KitwarePublic
< VTK
Jump to navigationJump to search
(New page: <font color="green"> This page is under construction. This should eventually gather documentation for all keys used by VTK pipeline</font> ==Fast Path Related Keys== Fast path mechanism ...)
 
No edit summary
 
Line 1: Line 1:
<font color="green"> This page is under construction. This should eventually gather documentation for all keys used by VTK pipeline</font>
<font color="green"> This page is under construction. This should eventually gather documentation for all keys used by VTK pipeline</font>
Abbreviations:
* SDDP: vtkStreamingDemandDrivenPipeline
* DDP : vtkDemandDrivenPipeline


==Fast Path Related Keys==
==Fast Path Related Keys==


Fast path mechanism is designed for providing some means for quickly
Fast path mechanism is designed for providing some means for quickly accessing the data values associated with a cell or point over time instead of having to request the full dataset for each timestep and the pick the cell or point of interest.
accessing the data values associated with a cell or point over time
instead of having to request the full dataset for each timestep and
the pick the cell or point of interest.


> vtkInformationIntegerKey* vtkStreamingDemandDrivenPipeline::FAST_PATH_FOR_TEMPORAL_DATA();
=== SDDP::FAST_PATH_FOR_TEMPORAL_DATA() [vtkInformationIntegerKey] ===
A boolean (0, 1) value set in output information by a vtkAlgorithm subclass during
: A boolean (0, 1) value set in output information by a vtkAlgorithm subclass during RequestInformation() pass to indicate that the algorithm supports fast path.
RequestInformation() pass to indicate that the algorithm supports fast
path.


All the other keys are set by consumers in RequestUpdateExtent() to
: All the other keys are set by consumers in RequestUpdateExtent() to request a particular cell or point from the input.
request a particular cell or point from the input.


> vtkInformationStringKey* vtkStreamingDemandDrivenPipeline:: FAST_PATH_OBJECT_TYPE();
=== SDDP:: FAST_PATH_OBJECT_TYPE() [vtkInformationStringKey] ===
Set by consumer in input information during RequestUpdateExtent() pass
: Set by consumer in input information during RequestUpdateExtent() pass to indicate the type of the item being requested i.e. "CELL" or "POINT". "Face"/"Edge" are mentioned, but not really supported.
to indicate the type of the item being requested i.e. "CELL" or
"POINT". "Face"/"Edge" are mentioned, but not really supported.


>  vtkInformationStringKey* vtkStreamingDemandDrivenPipeline:: FAST_PATH_ID_TYPE()
=== SDDP:: FAST_PATH_ID_TYPE() [vtkInformationStringKey] ===
Used to indicate the index type i.e. GLOBAL ID or VTK id (local id).
: Used to indicate the index type i.e. GLOBAL ID or VTK id (local id). vtkExodusIIReader (the only reader supporting fast path) only supports GLOBAL ids.
vtkExodusIIReader (the only reader supporting fast path) only supports
GLOBAL ids.


> vtkInformationIdTypeKey* vtkStreamingDemandDrivenPipeline:: FAST_PATH_OBJECT_ID()
=== SDDP:: FAST_PATH_OBJECT_ID()[vtkInformationIdTypeKey] ===
The actual id being requested.
: The actual id being requested.


When the reader finds all the 3 keys in the output information in
: When the reader finds all the 3 keys in the output information in RequestData() it should information about the requested cell/point in field data of the output. Simply put, vtkExodusIIReader simply adds arrays named "<ArrayName>OverTime" associated with each point (or cell) array for the point (or cell) and with number of tuples == number of timesteps in the dataset and values of the tuples == the value for the array at that point (or cell) for the corresponding timestep.
RequestData() it should information about the requested cell/point in
field data of the output. Simply put, vtkExodusIIReader simply adds
arrays named "<ArrayName>OverTime" associated with each point (or
cell) array for the point (or cell) and with number of tuples ==
number of timesteps in the dataset and values of the tuples == the
value for the array at that point (or cell) for the corresponding
timestep.


Currently used by:
Currently used by:
Line 42: Line 29:
* vtkExtractArraysOverTime
* vtkExtractArraysOverTime


Note that the these keys are not propagated across filters. So if you
Note that the these keys are not propagated across filters. So if you put any other filter between vtkExodusIIReader and vtkExtractArraysOverTime, fast path cannot be used.
put any other filter between vtkExodusIIReader and
vtkExtractArraysOverTime, fast path cannot be used.

Latest revision as of 14:31, 18 December 2009

This page is under construction. This should eventually gather documentation for all keys used by VTK pipeline

Abbreviations:

  • SDDP: vtkStreamingDemandDrivenPipeline
  • DDP : vtkDemandDrivenPipeline

Fast Path Related Keys

Fast path mechanism is designed for providing some means for quickly accessing the data values associated with a cell or point over time instead of having to request the full dataset for each timestep and the pick the cell or point of interest.

SDDP::FAST_PATH_FOR_TEMPORAL_DATA() [vtkInformationIntegerKey]

A boolean (0, 1) value set in output information by a vtkAlgorithm subclass during RequestInformation() pass to indicate that the algorithm supports fast path.
All the other keys are set by consumers in RequestUpdateExtent() to request a particular cell or point from the input.

SDDP:: FAST_PATH_OBJECT_TYPE() [vtkInformationStringKey]

Set by consumer in input information during RequestUpdateExtent() pass to indicate the type of the item being requested i.e. "CELL" or "POINT". "Face"/"Edge" are mentioned, but not really supported.

SDDP:: FAST_PATH_ID_TYPE() [vtkInformationStringKey]

Used to indicate the index type i.e. GLOBAL ID or VTK id (local id). vtkExodusIIReader (the only reader supporting fast path) only supports GLOBAL ids.

SDDP:: FAST_PATH_OBJECT_ID()[vtkInformationIdTypeKey]

The actual id being requested.
When the reader finds all the 3 keys in the output information in RequestData() it should information about the requested cell/point in field data of the output. Simply put, vtkExodusIIReader simply adds arrays named "<ArrayName>OverTime" associated with each point (or cell) array for the point (or cell) and with number of tuples == number of timesteps in the dataset and values of the tuples == the value for the array at that point (or cell) for the corresponding timestep.

Currently used by:

  • vtkExodusIIReader
  • vtkExtractArraysOverTime

Note that the these keys are not propagated across filters. So if you put any other filter between vtkExodusIIReader and vtkExtractArraysOverTime, fast path cannot be used.