BrownPts.hh 1.44 KB
Newer Older
Will Schroeder's avatar
Will Schroeder committed
1
2
/*=========================================================================

Ken Martin's avatar
Ken Martin committed
3
  Program:   Visualization Toolkit
Will Schroeder's avatar
Will Schroeder committed
4
5
6
7
8
  Module:    BrownPts.hh
  Language:  C++
  Date:      9/14/94
  Version:   1.1

Ken Martin's avatar
Ken Martin committed
9
This file is part of the Visualization Toolkit. No part of this file
Will Schroeder's avatar
Will Schroeder committed
10
11
12
13
14
15
or its contents may be copied, reproduced or altered in any way
without the express written consent of the authors.

Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994 

=========================================================================*/
Ken Martin's avatar
Ken Martin committed
16
// .NAME vtkBrownianPoints - assign random vector to points
Will Schroeder's avatar
Will Schroeder committed
17
// .SECTION Description
Ken Martin's avatar
Ken Martin committed
18
// vtkBrownianPoints is a filter object that assigns a random vector (i.e.,
Will Schroeder's avatar
Will Schroeder committed
19
20
21
// magnitude and direction) to each point. The minimum and maximum speed
// values can be controlled by the user.

Ken Martin's avatar
Ken Martin committed
22
23
#ifndef __vtkBrownianPoints_h
#define __vtkBrownianPoints_h
Will Schroeder's avatar
Will Schroeder committed
24
25
26

#include "DS2DSF.hh"

Ken Martin's avatar
Ken Martin committed
27
class vtkBrownianPoints : public vtkDataSetToDataSetFilter
Will Schroeder's avatar
Will Schroeder committed
28
29
{
public:
Ken Martin's avatar
Ken Martin committed
30
31
32
33
  vtkBrownianPoints();
  ~vtkBrownianPoints() {};
  char *GetClassName() {return "vtkBrownianPoints";};
  void PrintSelf(ostream& os, vtkIndent indent);
Will Schroeder's avatar
Will Schroeder committed
34
35
36

  // Description:
  // Set the minimum speed value.
Ken Martin's avatar
Ken Martin committed
37
38
  vtkSetClampMacro(MinimumSpeed,float,0.0,LARGE_FLOAT);
  vtkGetMacro(MinimumSpeed,float);
Will Schroeder's avatar
Will Schroeder committed
39
40
41

  // Description:
  // Set the maximum speed value.
Ken Martin's avatar
Ken Martin committed
42
43
  vtkSetClampMacro(MaximumSpeed,float,0.0,LARGE_FLOAT);
  vtkGetMacro(MaximumSpeed,float);
Will Schroeder's avatar
Will Schroeder committed
44
45
46
47
48
49
50
51
52
53

protected:
  void Execute();
  float MinimumSpeed;
  float MaximumSpeed;
};

#endif