VTK
vtkGraphToGlyphs.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphToGlyphs.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
32 #ifndef __vtkGraphToGlyphs_h
33 #define __vtkGraphToGlyphs_h
34 
35 #include "vtkPolyDataAlgorithm.h"
36 #include "vtkSmartPointer.h" // for SP ivars
37 
39 class vtkGraphToPoints;
40 class vtkGlyph3D;
41 class vtkGlyphSource2D;
42 class vtkRenderer;
43 class vtkSphereSource;
44 
46 {
47 public:
48  static vtkGraphToGlyphs *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
52  //BTX
53  enum
54  {
55  VERTEX = 1,
63  SPHERE
64  };
65  //ETX
66 
68 
72  vtkSetMacro(GlyphType, int);
73  vtkGetMacro(GlyphType, int);
75 
77 
78  vtkSetMacro(Filled, bool);
79  vtkGetMacro(Filled, bool);
80  vtkBooleanMacro(Filled, bool);
82 
84 
87  vtkSetMacro(ScreenSize, double);
88  vtkGetMacro(ScreenSize, double);
90 
92 
93  virtual void SetRenderer(vtkRenderer* ren);
94  virtual vtkRenderer* GetRenderer();
96 
98 
100  virtual void SetScaling(bool b);
101  virtual bool GetScaling();
103 
105  virtual unsigned long GetMTime();
106 
107 protected:
109  ~vtkGraphToGlyphs();
110 
113 
116 
117  //BTX
124  bool Filled;
125  double ScreenSize;
126  //ETX
127 
128 private:
129  vtkGraphToGlyphs(const vtkGraphToGlyphs&); // Not implemented.
130  void operator=(const vtkGraphToGlyphs&); // Not implemented.
131 };
132 
133 #endif