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 -------------------------------------------------------------------------*/
33 #ifndef vtkGraphToGlyphs_h
34 #define vtkGraphToGlyphs_h
35 
36 #include "vtkRenderingCoreModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 #include "vtkSmartPointer.h" // for SP ivars
39 
41 class vtkGraphToPoints;
42 class vtkGlyph3D;
43 class vtkGlyphSource2D;
44 class vtkRenderer;
45 class vtkSphereSource;
46 
47 class VTKRENDERINGCORE_EXPORT vtkGraphToGlyphs : public vtkPolyDataAlgorithm
48 {
49 public:
50  static vtkGraphToGlyphs *New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
54  enum
55  {
56  VERTEX = 1,
64  SPHERE
65  };
66 
68 
74  vtkSetMacro(GlyphType, int);
75  vtkGetMacro(GlyphType, int);
77 
79 
82  vtkSetMacro(Filled, bool);
83  vtkGetMacro(Filled, bool);
84  vtkBooleanMacro(Filled, bool);
86 
88 
93  vtkSetMacro(ScreenSize, double);
94  vtkGetMacro(ScreenSize, double);
96 
98 
101  virtual void SetRenderer(vtkRenderer* ren);
102  virtual vtkRenderer* GetRenderer();
104 
106 
110  virtual void SetScaling(bool b);
111  virtual bool GetScaling();
113 
117  vtkMTimeType GetMTime() override;
118 
119 protected:
121  ~vtkGraphToGlyphs() override;
122 
127 
131  int FillInputPortInformation(int port, vtkInformation* info) override;
132 
139  bool Filled;
140  double ScreenSize;
141 
142 private:
143  vtkGraphToGlyphs(const vtkGraphToGlyphs&) = delete;
144  void operator=(const vtkGraphToGlyphs&) = delete;
145 };
146 
147 #endif
vtkGraphToGlyphs::DIAMOND
Definition: vtkGraphToGlyphs.h:63
vtkGlyphSource2D
create 2D glyphs represented by vtkPolyData
Definition: vtkGlyphSource2D.h:62
vtkGraphToGlyphs::Filled
bool Filled
Definition: vtkGraphToGlyphs.h:139
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkGraphToGlyphs::GraphToPoints
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
Definition: vtkGraphToGlyphs.h:133
vtkGraphToGlyphs::GlyphType
int GlyphType
Definition: vtkGraphToGlyphs.h:138
vtkSmartPointer< vtkGraphToPoints >
vtkGraphToGlyphs::DistanceToCamera
vtkSmartPointer< vtkDistanceToCamera > DistanceToCamera
Definition: vtkGraphToGlyphs.h:137
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkGraphToGlyphs::TRIANGLE
Definition: vtkGraphToGlyphs.h:60
vtkGraphToGlyphs
create glyphs for graph vertices
Definition: vtkGraphToGlyphs.h:47
vtkGraphToPoints
convert a vtkGraph a set of points.
Definition: vtkGraphToPoints.h:40
vtkX3D::port
Definition: vtkX3D.h:447
vtkGraphToGlyphs::ScreenSize
double ScreenSize
Definition: vtkGraphToGlyphs.h:140
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSphereSource
create a polygonal sphere centered at the origin
Definition: vtkSphereSource.h:46
vtkGraphToGlyphs::DASH
Definition: vtkGraphToGlyphs.h:57
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer.h
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkGraphToGlyphs::THICKCROSS
Definition: vtkGraphToGlyphs.h:59
vtkGraphToGlyphs::GlyphSource
vtkSmartPointer< vtkGlyphSource2D > GlyphSource
Definition: vtkGraphToGlyphs.h:134
vtkGlyph3D
copy oriented and scaled glyph geometry to every input point
Definition: vtkGlyph3D.h:111
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkGraphToGlyphs::CIRCLE
Definition: vtkGraphToGlyphs.h:62
vtkDistanceToCamera
calculates distance from points to the camera.
Definition: vtkDistanceToCamera.h:43
vtkGraphToGlyphs::Sphere
vtkSmartPointer< vtkSphereSource > Sphere
Definition: vtkGraphToGlyphs.h:135
vtkGraphToGlyphs::CROSS
Definition: vtkGraphToGlyphs.h:58
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkGraphToGlyphs::Glyph
vtkSmartPointer< vtkGlyph3D > Glyph
Definition: vtkGraphToGlyphs.h:136
vtkGraphToGlyphs::SQUARE
Definition: vtkGraphToGlyphs.h:61
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44