ParaView:Live Data Introduction

From KitwarePublic
Revision as of 20:46, 10 June 2007 by GfgMuh (talk | contribs)
Jump to navigationJump to search

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