VTK
vtkSplineGraphEdges.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSplineGraphEdges.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 -------------------------------------------------------------------------*/
35 #ifndef vtkSplineGraphEdges_h
36 #define vtkSplineGraphEdges_h
37 
38 #include "vtkInfovisLayoutModule.h" // For export macro
39 #include "vtkGraphAlgorithm.h"
40 #include "vtkSmartPointer.h" // For ivars
41 
42 class vtkSpline;
43 
45 {
46 public:
47  static vtkSplineGraphEdges *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  virtual void SetSpline(vtkSpline* s);
54  vtkGetObjectMacro(Spline, vtkSpline);
56 
57  //BTX
58  enum
59  {
60  BSPLINE = 0,
61  CUSTOM
62  };
63  //ETX
64 
66 
68  vtkSetMacro(SplineType, int);
69  vtkGetMacro(SplineType, int);
71 
73 
74  vtkSetMacro(NumberOfSubdivisions, vtkIdType);
75  vtkGetMacro(NumberOfSubdivisions, vtkIdType);
77 
78 protected:
81 
82  virtual int RequestData(
86 
87  virtual unsigned long GetMTime();
88 
89  void GeneratePoints(vtkGraph* g, vtkIdType e);
90  void GenerateBSpline(vtkGraph* g, vtkIdType e);
91 
93 
95 
96  //BTX
100  //ETX
101 
103 
104 private:
105  vtkSplineGraphEdges(const vtkSplineGraphEdges&); // Not implemented.
106  void operator=(const vtkSplineGraphEdges&); // Not implemented.
107 };
108 
109 #endif
static vtkGraphAlgorithm * New()
vtkSmartPointer< vtkSpline > ZSpline
subsample graph edges to make smooth curves
Store vtkAlgorithm input/output information.
#define VTKINFOVISLAYOUT_EXPORT
int vtkIdType
Definition: vtkType.h:275
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:288
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSmartPointer< vtkSpline > YSpline
void PrintSelf(ostream &os, vtkIndent indent)
spline abstract class for interpolating splines
Definition: vtkSpline.h:61
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSmartPointer< vtkSpline > XSpline
Store zero or more vtkInformation instances.