Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
ab4e1e8a
Commit
ab4e1e8a
authored
Jul 24, 1995
by
Will Schroeder
Browse files
ENH: Added comments.
parent
6a39398f
Changes
1
Hide whitespace changes
Inline
Sidebyside
include/Streamer.hh
View file @
ab4e1e8a
...
@@ 19,10 +19,11 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
...
@@ 19,10 +19,11 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
// field. The integration is performed using 2cnd order RungeKutta method.
// field. The integration is performed using 2cnd order RungeKutta method.
// vtkStreamer often serves as a base class for other classes that perform
// vtkStreamer often serves as a base class for other classes that perform
// numerical integration through a vector field (e.g., vtkStreamLine).
// numerical integration through a vector field (e.g., vtkStreamLine).
// Note that vtkStreamer can integrate both forward and backward in time,
or
// Note that vtkStreamer can integrate both forward and backward in time,
// in both directions. The length of the streamer time) is controlled by
//
or
in both directions. The length of the streamer time) is controlled by
// specifying an elapsed time. (The elapsed time is the time each particle
// specifying an elapsed time. (The elapsed time is the time each particle
// travels). Otherwise, the integration terminates after exiting the dataset.
// travels). Otherwise, the integration terminates after exiting the dataset or
// if the particle speed is reduced to a value less than the terminal speed.
// vtkStreamer integrates through any type of dataset. Thus if the dataset
// vtkStreamer integrates through any type of dataset. Thus if the dataset
// contains 2D cells such as polygons or triangles, the integration is
// contains 2D cells such as polygons or triangles, the integration is
// constrained to lie on the surface defined by the 2D cells.
// constrained to lie on the surface defined by the 2D cells.
...
@@ 31,11 +32,16 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
...
@@ 31,11 +32,16 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
// at a specified xyz coordinate. Starting from "location" allows you to
// at a specified xyz coordinate. Starting from "location" allows you to
// start at a specified cell, subId, and parametric coordinate. Finally, you
// start at a specified cell, subId, and parametric coordinate. Finally, you
// may specify a source object to start multiple streamers. If you start
// may specify a source object to start multiple streamers. If you start
// streamers using a source object, for each point (that is inside the dataset)
// streamers using a source object, for each point in the source that is
// a streamer is created.
// inside the dataset a streamer is created.
// vtkStreamer implements the Execute() method that its superclass vtkFilter
// vtkStreamer implements the integration process in the Integrate() method.
// requires. However, its subclasses use this method to generate data, and then
// Because vtkStreamer does not implement the Execute() method that its
// build their own data.
// superclass (i.e., Filter) requires, it is an abstract class. Its subclasses
// implement the execute method and use the Integrate() method and then build
// their own representation of the integration path (i.e., lines, dashed
// lines, points, etc.).
// .SECTION See Also
// vtkStreamLine, vtkDashedStreamLine, vtkStreamPoints
#ifndef __vtkStreamer_h
#ifndef __vtkStreamer_h
#define __vtkStreamer_h
#define __vtkStreamer_h
...
@@ 83,10 +89,10 @@ public:
...
@@ 83,10 +89,10 @@ public:
void
Reset
()
{
this
>
MaxId
=

1
;};
void
Reset
()
{
this
>
MaxId
=

1
;};
vtkStreamPoint
*
Array
;
// pointer to data
vtkStreamPoint
*
Array
;
// pointer to data
int
MaxId
;
// maximum index inserted thus far
int
MaxId
;
// maximum index inserted thus far
int
Size
;
// allocated size of data
int
Size
;
// allocated size of data
int
Extend
;
// grow array by this amount
int
Extend
;
// grow array by this amount
float
Direction
;
// integration direction
float
Direction
;
// integration direction
};
};
//ETX  end tcl exclude
//ETX  end tcl exclude
//
//
...
@@ 145,7 +151,9 @@ public:
...
@@ 145,7 +151,9 @@ public:
vtkGetMacro
(
TerminalSpeed
,
float
);
vtkGetMacro
(
TerminalSpeed
,
float
);
// Description:
// Description:
// Turn on/off the computation of vorticity.
// Turn on/off the computation of vorticity. Vorticity is an indication of
// the rotation of the flow. In combination with vtkStreamLine and
// vtkTubeFilter can be used to create rotated tubes.
vtkSetMacro
(
Vorticity
,
int
);
vtkSetMacro
(
Vorticity
,
int
);
vtkGetMacro
(
Vorticity
,
int
);
vtkGetMacro
(
Vorticity
,
int
);
vtkBooleanMacro
(
Vorticity
,
int
);
vtkBooleanMacro
(
Vorticity
,
int
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment