Commit 6a39398f authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH: Working properly.

parent 2d76469e
......@@ -15,10 +15,18 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
=========================================================================*/
// .NAME vtkDashedStreamLine - generate constant-time dashed streamline in arbitrary dataset
// .SECTION Description
// vtkStreamLine is a filter that generates a streamline for an arbitrary
// dataset. The streamline consists of a series of dashes, each of which
// represents a constant time increment. (A streamline is a line that is
// everywhere tangent to the vector field (see vtkStreamLine).
// vtkDashedStreamLine is a filter that generates a "dashed" streamline for
// an arbitrary dataset. The streamline consists of a series of dashes, each
// of which represents (approximately) a constant time increment. Thus in the
// resulting visual representation, relatively long dashes represent areas of
// high velocity, and small dashes represent areas of low velocity.
// vtkDashedStreamLine introduces the instance variable DashFactor.
// DashFactor interacts with its superclass' instance variable StepLength to
// create the dashes. DashFactor is the percentage of the StepLength line
// segment that is visible. Thus if DashFactor=0.75, the dashes will be
// "three-quarters on" and "one-quarter off".
// .SECTION See Also
// vtkStreamer, vtkStreamLine, vtkStreamPoints
#ifndef __vtkDashedStreamLine_h
#define __vtkDashedStreamLine_h
......
......@@ -25,10 +25,21 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
// vorticity along the streamline. Vorticity is the projection (i.e., dot
// product) of the flow rotation on the velocity vector, i.e., the rotation
// of flow around the streamline.
//
// While the streamline representation is typically a line, it is also possible
// to generate a dashed line where the dash length is proportional to the
// magnitude of the vector velocity.
// vtkStreamLine defines the instance variable StepLength. This parameter
// controls the length of the line segments used to define the streamline.
// The streamline(s) will consist of one (or more) polylines with line
// segment lengths of size StepLength. Smaller values reduce in more line
// primitives but smoother streamlines. The StepLength instance variable is
// defined in terms of time (i.e., the distance that the particle travels in
// the specified time period) Thus the line segments will be smaller in areas
// of low velocity and larger in regions of high velocity. (NOTE: This is
// different than the IntegrationStepLength defined by the superclass
// vtkStreamer. IntegrationStepLength is used to control integration step
// size and is expressed as a fraction of the cell length). The StepLength
// instance variable is important because subclasses of vtkStreamLine (e.g.,
// vtkDashedStreamLine) depend on this value to build their representation.
// .SECTION See Also
// vtkStreamer, vtkDashedStreamLine, vtkStreamPoints;
#ifndef __vtkStreamLine_h
#define __vtkStreamLine_h
......@@ -44,17 +55,17 @@ public:
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Specify the length of a dash expressed in time. This is the combined
// length of both the "on" and "off" parts of the dash.
vtkSetClampMacro(DashTime,float,0.000001,LARGE_FLOAT);
vtkGetMacro(DashTime,float);
// Specify the length of a line segment. Smaller values result in smoother
// appearing streamlines but greater numbers of line primitives.
vtkSetClampMacro(StepLength,float,0.000001,LARGE_FLOAT);
vtkGetMacro(StepLength,float);
protected:
// Convert streamer array into vtkPolyData
void Execute();
// the combined length of on/off portion of dash
float DashTime;
// the length of line primitives
float StepLength;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment