VTK  9.3.1
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
17 #ifndef vtkGraphToGlyphs_h
18 #define vtkGraphToGlyphs_h
19 
20 #include "vtkPolyDataAlgorithm.h"
21 #include "vtkRenderingCoreModule.h" // For export macro
22 #include "vtkSmartPointer.h" // for SP ivars
23 
24 VTK_ABI_NAMESPACE_BEGIN
26 class vtkGraphToPoints;
27 class vtkGlyph3D;
28 class vtkGlyphSource2D;
29 class vtkRenderer;
30 class vtkSphereSource;
31 
32 class VTKRENDERINGCORE_EXPORT vtkGraphToGlyphs : public vtkPolyDataAlgorithm
33 {
34 public:
35  static vtkGraphToGlyphs* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39  enum
40  {
41  VERTEX = 1,
49  SPHERE
50  };
51 
53 
59  vtkSetMacro(GlyphType, int);
60  vtkGetMacro(GlyphType, int);
62 
64 
67  vtkSetMacro(Filled, bool);
68  vtkGetMacro(Filled, bool);
69  vtkBooleanMacro(Filled, bool);
71 
73 
78  vtkSetMacro(ScreenSize, double);
79  vtkGetMacro(ScreenSize, double);
81 
83 
86  virtual void SetRenderer(vtkRenderer* ren);
87  virtual vtkRenderer* GetRenderer();
89 
91 
95  virtual void SetScaling(bool b);
96  virtual bool GetScaling();
98 
102  vtkMTimeType GetMTime() override;
103 
104 protected:
106  ~vtkGraphToGlyphs() override;
107 
112 
116  int FillInputPortInformation(int port, vtkInformation* info) override;
117 
124  bool Filled;
125  double ScreenSize;
126 
127 private:
128  vtkGraphToGlyphs(const vtkGraphToGlyphs&) = delete;
129  void operator=(const vtkGraphToGlyphs&) = delete;
130 };
131 
132 VTK_ABI_NAMESPACE_END
133 #endif
vtkSmartPointer< vtkGlyph3D > Glyph
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
abstract specification for renderers
Definition: vtkRenderer.h:61
static vtkPolyDataAlgorithm * New()
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
vtkSmartPointer< vtkGlyphSource2D > GlyphSource
a simple class to control print indentation
Definition: vtkIndent.h:28
copy oriented and scaled glyph geometry to every input point
Definition: vtkGlyph3D.h:101
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSmartPointer< vtkDistanceToCamera > DistanceToCamera
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.