VTK  9.3.20240329
vtkGraphToGlyphs.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
46 #ifndef vtkGraphToGlyphs_h
47 #define vtkGraphToGlyphs_h
48 
49 #include "vtkPolyDataAlgorithm.h"
50 #include "vtkRenderingCoreModule.h" // For export macro
51 #include "vtkSmartPointer.h" // for SP ivars
52 
53 VTK_ABI_NAMESPACE_BEGIN
55 class vtkGraphToPoints;
56 class vtkGlyph3D;
57 class vtkGlyphSource2D;
58 class vtkRenderer;
59 class vtkSphereSource;
60 
61 class VTKRENDERINGCORE_EXPORT vtkGraphToGlyphs : public vtkPolyDataAlgorithm
62 {
63 public:
64  static vtkGraphToGlyphs* New();
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
68  enum
69  {
70  VERTEX = 1,
78  SPHERE
79  };
80 
82 
88  vtkSetMacro(GlyphType, int);
89  vtkGetMacro(GlyphType, int);
91 
93 
96  vtkSetMacro(Filled, bool);
97  vtkGetMacro(Filled, bool);
98  vtkBooleanMacro(Filled, bool);
100 
102 
107  vtkSetMacro(ScreenSize, double);
108  vtkGetMacro(ScreenSize, double);
110 
112 
115  virtual void SetRenderer(vtkRenderer* ren);
118 
120 
124  virtual void SetScaling(bool b);
125  virtual bool GetScaling();
127 
131  vtkMTimeType GetMTime() override;
132 
133 protected:
135  ~vtkGraphToGlyphs() override;
136 
141 
146 
153  bool Filled;
154  double ScreenSize;
155 
156 private:
157  vtkGraphToGlyphs(const vtkGraphToGlyphs&) = delete;
158  void operator=(const vtkGraphToGlyphs&) = delete;
159 };
160 
161 VTK_ABI_NAMESPACE_END
162 #endif
calculates distance from points to the camera.
copy oriented and scaled glyph geometry to every input point
Definition: vtkGlyph3D.h:211
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:108
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:172
create a polygonal sphere centered at the origin
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270