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 "vtkRenderingCoreModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 #include "vtkSmartPointer.h" // for SP ivars
38 
40 class vtkGraphToPoints;
41 class vtkGlyph3D;
42 class vtkGlyphSource2D;
43 class vtkRenderer;
44 class vtkSphereSource;
45 
47 {
48 public:
49  static vtkGraphToGlyphs *New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
53  //BTX
54  enum
55  {
56  VERTEX = 1,
64  SPHERE
65  };
66  //ETX
67 
69 
73  vtkSetMacro(GlyphType, int);
74  vtkGetMacro(GlyphType, int);
76 
78 
79  vtkSetMacro(Filled, bool);
80  vtkGetMacro(Filled, bool);
81  vtkBooleanMacro(Filled, bool);
83 
85 
88  vtkSetMacro(ScreenSize, double);
89  vtkGetMacro(ScreenSize, double);
91 
93 
94  virtual void SetRenderer(vtkRenderer* ren);
95  virtual vtkRenderer* GetRenderer();
97 
99 
101  virtual void SetScaling(bool b);
102  virtual bool GetScaling();
104 
106  virtual unsigned long GetMTime();
107 
108 protected:
110  ~vtkGraphToGlyphs();
111 
114 
117 
118  //BTX
125  bool Filled;
126  double ScreenSize;
127  //ETX
128 
129 private:
130  vtkGraphToGlyphs(const vtkGraphToGlyphs&); // Not implemented.
131  void operator=(const vtkGraphToGlyphs&); // Not implemented.
132 };
133 
134 #endif
vtkSmartPointer< vtkGlyph3D > Glyph
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
abstract specification for renderers
Definition: vtkRenderer.h:63
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
vtkSmartPointer< vtkGlyphSource2D > GlyphSource
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
copy oriented and scaled glyph geometry to every input point
Definition: vtkGlyph3D.h:110
vtkSmartPointer< vtkDistanceToCamera > DistanceToCamera
#define VTKRENDERINGCORE_EXPORT
vtkSmartPointer< vtkSphereSource > Sphere
convert a vtkGraph a set of points.
Store zero or more vtkInformation instances.
create 2D glyphs represented by vtkPolyData
create glyphs for graph vertices
calculates distance from points to the camera.