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 "vtkGraphAlgorithm.h"
39 #include "vtkSmartPointer.h" // For ivars
40 
41 class vtkSpline;
42 
44 {
45 public:
46  static vtkSplineGraphEdges *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  virtual void SetSpline(vtkSpline* s);
53  vtkGetObjectMacro(Spline, vtkSpline);
55 
56  //BTX
57  enum
58  {
59  BSPLINE = 0,
60  CUSTOM
61  };
62  //ETX
63 
65 
67  vtkSetMacro(SplineType, int);
68  vtkGetMacro(SplineType, int);
70 
72 
73  vtkSetMacro(NumberOfSubdivisions, vtkIdType);
74  vtkGetMacro(NumberOfSubdivisions, vtkIdType);
76 
77 protected:
80 
81  virtual int RequestData(
85 
86  virtual unsigned long GetMTime();
87 
88  void GeneratePoints(vtkGraph* g, vtkIdType e);
89  void GenerateBSpline(vtkGraph* g, vtkIdType e);
90 
92 
94 
95  //BTX
99  //ETX
100 
102 
103 private:
104  vtkSplineGraphEdges(const vtkSplineGraphEdges&); // Not implemented.
105  void operator=(const vtkSplineGraphEdges&); // Not implemented.
106 };
107 
108 #endif