VTK  9.2.6
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 -------------------------------------------------------------------------*/
42 #ifndef vtkGraphToGlyphs_h
43 #define vtkGraphToGlyphs_h
44 
45 #include "vtkPolyDataAlgorithm.h"
46 #include "vtkRenderingCoreModule.h" // For export macro
47 #include "vtkSmartPointer.h" // for SP ivars
48 
50 class vtkGraphToPoints;
51 class vtkGlyph3D;
52 class vtkGlyphSource2D;
53 class vtkRenderer;
54 class vtkSphereSource;
55 
56 class VTKRENDERINGCORE_EXPORT vtkGraphToGlyphs : public vtkPolyDataAlgorithm
57 {
58 public:
59  static vtkGraphToGlyphs* New();
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
63  enum
64  {
65  VERTEX = 1,
73  SPHERE
74  };
75 
77 
83  vtkSetMacro(GlyphType, int);
84  vtkGetMacro(GlyphType, int);
86 
88 
91  vtkSetMacro(Filled, bool);
92  vtkGetMacro(Filled, bool);
93  vtkBooleanMacro(Filled, bool);
95 
97 
102  vtkSetMacro(ScreenSize, double);
103  vtkGetMacro(ScreenSize, double);
105 
107 
110  virtual void SetRenderer(vtkRenderer* ren);
113 
115 
119  virtual void SetScaling(bool b);
120  virtual bool GetScaling();
122 
126  vtkMTimeType GetMTime() override;
127 
128 protected:
130  ~vtkGraphToGlyphs() override;
131 
136 
141 
148  bool Filled;
149  double ScreenSize;
150 
151 private:
152  vtkGraphToGlyphs(const vtkGraphToGlyphs&) = delete;
153  void operator=(const vtkGraphToGlyphs&) = delete;
154 };
155 
156 #endif
calculates distance from points to the camera.
copy oriented and scaled glyph geometry to every input point
Definition: vtkGlyph3D.h:122
create 2D glyphs represented by vtkPolyData
create glyphs for graph vertices
virtual vtkRenderer * GetRenderer()
The renderer in which the glyphs will be placed.
vtkMTimeType GetMTime() override
The modified time of this filter.
virtual bool GetScaling()
Whether to use the input array to process in order to scale the vertices.
vtkSmartPointer< vtkGlyphSource2D > GlyphSource
static vtkGraphToGlyphs * New()
virtual void SetRenderer(vtkRenderer *ren)
The renderer in which the glyphs will be placed.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Convert the vtkGraph into vtkPolyData.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
~vtkGraphToGlyphs() override
vtkSmartPointer< vtkSphereSource > Sphere
vtkSmartPointer< vtkDistanceToCamera > DistanceToCamera
vtkSmartPointer< vtkGlyph3D > Glyph
virtual void SetScaling(bool b)
Whether to use the input array to process in order to scale the vertices.
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input type of the algorithm to vtkGraph.
convert a vtkGraph a set of points.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
abstract specification for renderers
Definition: vtkRenderer.h:82
create a polygonal sphere centered at the origin
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287