Glyph3D.hh 1.55 KB
Newer Older
Will Schroeder's avatar
Will Schroeder committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*=========================================================================

  Program:   Visualization Library
  Module:    Glyph3D.hh
  Language:  C++
  Date:      $Date$
  Version:   $Revision$

Description:
---------------------------------------------------------------------------
This file is part of the Visualization Library. No part of this file
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 

=========================================================================*/
//
// Copy PolyData at every input point.
//
#ifndef __vlGlyph3D_h
#define __vlGlyph3D_h

#include "DS2PolyF.hh"

#define SCALE_BY_SCALAR 0
#define SCALE_BY_VECTOR 1

class vlGlyph3D : public vlDataSetToPolyFilter
{
public:
  vlGlyph3D();
33
  ~vlGlyph3D();
Will Schroeder's avatar
Will Schroeder committed
34
35
36
  char *GetClassName() {return "vlGlyph3D";};
  void PrintSelf(ostream& os, vlIndent indent);

37
38
  vlSetObjectMacro(Source,vlPolyData);
  vlGetObjectMacro(Source,vlPolyData);
Will Schroeder's avatar
Will Schroeder committed
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66

  vlBooleanMacro(Scaling,int);
  vlSetMacro(Scaling,int);
  vlGetMacro(Scaling,int);

  vlSetMacro(ScaleMode,int);
  vlGetMacro(ScaleMode,int);
  void ScaleByScalar() {this->SetScaleMode(SCALE_BY_SCALAR);};
  void ScaleByVector() {this->SetScaleMode(SCALE_BY_VECTOR);};

  vlSetMacro(ScaleFactor,float);
  vlGetMacro(ScaleFactor,float);

  vlSetVector2Macro(Range,float);
  vlGetVectorMacro(Range,float);

protected:
  void Execute();
  vlPolyData *Source;
  int Scaling;
  int ScaleMode;
  float ScaleFactor;
  float Range[2];
};

#endif