ParaView:Live Data Introduction

From KitwarePublic
Revision as of 06:32, 12 June 2007 by GfgMuh (talk | contribs)
Jump to navigationJump to search

order meridia free ringtones xanax online free mtv ringtones fioricet online mp3 ringtones free nextel ringtones cheap adipex cheap xanax free sagem ringtones cheap diazepam clonazepam online polyphonic ringtones cheap carisoprodol buy wellbutrin kyocera ringtones cheap ativan order viagra lorazepam online cheap ultram free kyocera ringtones alprazolam online free alltel ringtones ambien online vicodin online free motorola ringtones free sony ericsson ringtones free punk ringtones viagra online but phentermine cheap xanax buy ultram valium online free cingular ringtones buy adipex cheap cyclobenzaprine propecia online tenuate online carisoprodol online cheap ultracet cheap pharmacy online wwe ringtones diazepam online xenical online nokia ringtones free qwest ringtones zanaflex online diazepam online free verizon ringtones free motorola ringtones lortab online buy prozac free ericsson ringtones but ortho cyclobenzaprine online celexa online free ringtones online phentermine cool ringtones prozac online free qwest ringtones cialis online free sprint ringtones nexium online real ringtones sagem ringtones free tracfone ringtones nokia ringtones punk ringtones mp3 ringtones sony ringtones buy ativan hgh midi ringtones alltel ringtones flexeril online free sony ericsson ringtones free motorola ringtones vicodin online free tracfone ringtones soma online levitra online free motorola ringtones didrex online sildenafil online pharmacy online online cheap zoloft hydrocodone online free sony ringtones cingular ringtones online viagra paxil online buy ambien buy lortab order hydrocodone vigrx online cheap ativan hgh online sildenafil online buy viagra ortho online nextel ringtones lisinopril free funny ringtones free sony ericsson ringtones buy vicodin hydrocodone ativan online free mono ringtones clonazepam online levitra online sprint ringtones cialis online sony ringtones levitra online cheap zanaflex but phentermine cheap celexa ultracet online free wwe ringtones free sharp ringtones buy norco soma online ultracet online cingular ringtones adipex online xenical online cheap albuterol tenuate online cheap ortho music ringtones free sagem ringtones cheap lisinopril cheap meridia propecia online order vigrx cheap diethylpropion albuterol online mp3 ringtones meridia online free free ringtones ultram online soma online lortab online sildenafil online nextel ringtones cheap lorazepam free funny ringtones diethylpropion online free free ringtones funny ringtones cingular ringtones cheap soma nokia ringtones clonazepam online zyban online clomid online prozac online valium lisinopril online cheap meridia tramadol online free sharp ringtones free midi ringtones cheap flexeril free real ringtones celexa online zoloft online nextel ringtones ericsson ringtones music ringtones free mtv ringtones cheap ultram buy valium viagra online cheap lorazepam cialis online cheap phentermine nexium online samsung ringtones norco online meridia online sprint ringtones buy rivotril carisoprodol online carisoprodol online buy cyclobenzaprine free qwest ringtones qwest ringtones cheap fioricet verizon ringtones punk ringtones hoodia online cheap pharmacy online tracfone ringtones tramadol online rivotril online cheap tramadol didrex online cheap fioricet == Discussion ==

The livedata feature only works with a pvd file. A brief review: a pvd file lists other files that, together, contain the data for several time steps. The pvd file may also list several files that, together, contain the data for the parts of each time step.

The livedata feature expects the pvd file to describe all time steps even though, at the start, most will not yet exist. PV typically complains about the missing files; those warnings have been disabled. You must create a pvd file that describes all possible time steps. It does not matter if the pvd file references time steps that are never created.

The main change to the code is a new routine, called from the animation play method, that checks whether the next time step (i.e., the file(s) containing that time step) are present. When the files are present the animation continues on to the next step. Otherwise, the animation is stopped. Only the existence of a file is checked - an empty or partial file will fool this feature.

When the animation loop option is off, and the livedata feature stops the animation, it simply stops. However, when the animation loop option is on, the animation restarts so that the most recent N timesteps are shown. N is set in the livedata.txt file.

This incarnation of the livedata feature is not very smart. It does not get information about the pvd file directly. Instead, you must provide information about the pvd file via another file, livedata.txt.

Usage

The file livedata.txt MUST be edited to describe the pvd file and it must be located in the directory from which you start PV. Comments in the sample file explain its contents. The code that reads this file is dumb - you MUST put things on the correct line, as in the sample file, with no extra spaces.

Wait until the application has written the pvd file and the first time step. Then open the pvd file or, if you have one, load a pvs file.

Set the animation loop feature on (a small button with a circular arrow).

Start the animation. This is the time when the file timedata.txt is read. If you stop the animation and then restart it later the file is read again. This is how you can change things, if needed, without restarting PV.

If the file livedata.txt cannot be found the livedata feature is turned off for that execution of the animation; no messages are printed. If the file is found then problems with its content, if any, are printed to the screen. If no problems are found its contents are printed to the screen for your amusement.

You can stop the animation at any time and jump to any desired frame. When you restart the animation it will begin at the current frame. Usually.

One bug (I think it is in the VTK part) causes the value of time that is shown to occasionally jump ahead when at the last one or two time steps. However, the data that is displayed is correct.

DO NOT change the default mode of animation (sequence), the default number of frames (taken from the PVD file) or anything else concerning the animation. If you do and it works I will take credit for doing a good job; if it fails it is your fault!

Changes

The new code is in the vtkAnimationScene class. vtkExecutive and vtkXMLReader.cxx were also changed to supress the warnings caused by the references in the pvd file to files that do not yet exist.

Tested with version 2.4.4. The following files are affected:

  <source>/VTK/Common/vtkAnimationScene.cxx
  <source>/VTK/Common/vtkAnimationScene.h
  <source>/VTK/IO/vtkXMLReader.cxx
  <source>/VTK/Filtering/vtkExecutive.cxx



ParaView: [Welcome | Site Map]