<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello vtkuseres,<BR>
<BR>
<DIV id=result_box dir=ltr>I would like to create streamlines with real time generated data. In the examples the data are in the files. Someone could tell me how these data are formatted inside these files. How could I do to read values without using scalar and vector files, reading real time generated data?</DIV>
<BR>This is the example:<BR>
<BR>
vtkPLOT3DReader pl3d<BR> pl3d SetXYZFileName "$VTK_DATA_ROOT/Data/combxyz.bin" ----- file<BR> pl3d SetQFileName "$VTK_DATA_ROOT/Data/combq.bin" ----- file <BR> pl3d SetScalarFunctionNumber 100<BR> pl3d SetVectorFunctionNumber 202<BR> pl3d Update<BR>
# The line widget is used seed the streamlines.<BR>#<BR>vtkLineWidget lineWidget<BR>vtkPolyData seeds<BR>lineWidget SetInput [pl3d GetOutput]<BR>lineWidget SetAlignToYAxis<BR>lineWidget PlaceWidget<BR>lineWidget GetPolyData seeds<BR>lineWidget ClampToBoundsOn<BR>
vtkRungeKutta4 rk4<BR>vtkStreamLine streamer<BR> streamer SetInputConnection [pl3d GetOutputPort]<BR> streamer SetSource seeds<BR> streamer SetMaximumPropagationTime 100<BR> streamer SetIntegrationStepLength .2<BR> streamer SetStepLength .001<BR> streamer SetNumberOfThreads 1<BR> streamer SetIntegrationDirectionToForward<BR> streamer VorticityOn<BR> streamer SetIntegrator rk4<BR>
<BR>
<BR>
B. Regards,<BR>
<BR>
Pompeu<BR><br /><hr />Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! <a href='http://www.livemaps.com.br/index.aspx?tr=true' target='_new'>Experimente já!</a></body>
</html>