VTK  9.7.20260909
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
45
46#ifndef vtkGraphToGlyphs_h
47#define vtkGraphToGlyphs_h
48
50#include "vtkRenderingCoreModule.h" // For export macro
51#include "vtkSmartPointer.h" // for SP ivars
52#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
53
54VTK_ABI_NAMESPACE_BEGIN
57class vtkGlyph3D;
59class vtkRenderer;
60class vtkSphereSource;
61
62class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkGraphToGlyphs : public vtkPolyDataAlgorithm
63{
64public:
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
69 enum
70 {
71 VERTEX = 1,
80 };
81
83
89 vtkSetMacro(GlyphType, int);
90 vtkGetMacro(GlyphType, int);
92
94
97 vtkSetMacro(Filled, bool);
98 vtkGetMacro(Filled, bool);
99 vtkBooleanMacro(Filled, bool);
101
103
108 vtkSetMacro(ScreenSize, double);
109 vtkGetMacro(ScreenSize, double);
111
113
116 virtual void SetRenderer(vtkRenderer* ren);
119
121
125 virtual void SetScaling(bool b);
126 virtual bool GetScaling();
128
133
134protected:
137
142
146 int FillInputPortInformation(int port, vtkInformation* info) override;
147
154 bool Filled;
156
157private:
158 vtkGraphToGlyphs(const vtkGraphToGlyphs&) = delete;
159 void operator=(const vtkGraphToGlyphs&) = delete;
160};
161
162VTK_ABI_NAMESPACE_END
163#endif
calculates distance from points to the camera.
copy oriented and scaled glyph geometry to every input point
Definition vtkGlyph3D.h:212
create 2D glyphs represented by vtkPolyData
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
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
virtual vtkRenderer * GetRenderer()
The renderer in which the glyphs will be placed.
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.
static vtkGraphToGlyphs * New()
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.
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
create a polygonal sphere centered at the origin
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:318
#define VTK_MARSHALAUTO