VTK
vtkParametricSuperToroid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricSuperToroid.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 =========================================================================*/
46 #ifndef vtkParametricSuperToroid_h
47 #define vtkParametricSuperToroid_h
48 
49 #include "vtkCommonComputationalGeometryModule.h" // For export macro
50 #include "vtkParametricFunction.h"
51 
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
63  static vtkParametricSuperToroid *New();
64 
66  virtual int GetDimension() {return 2;}
67 
69 
71  vtkSetMacro(RingRadius,double);
72  vtkGetMacro(RingRadius,double);
74 
76 
78  vtkSetMacro(CrossSectionRadius,double);
79  vtkGetMacro(CrossSectionRadius,double);
81 
83 
84  vtkSetMacro(XRadius,double);
85  vtkGetMacro(XRadius,double);
87 
89 
90  vtkSetMacro(YRadius,double);
91  vtkGetMacro(YRadius,double);
93 
95 
96  vtkSetMacro(ZRadius,double);
97  vtkGetMacro(ZRadius,double);
99 
101 
102  vtkSetMacro(N1,double);
103  vtkGetMacro(N1,double);
105 
107 
108  vtkSetMacro(N2,double);
109  vtkGetMacro(N2,double);
111 
117  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
118 
127  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
128 
129 protected:
132 
133  // Variables
134  double RingRadius;
136  double XRadius;
137  double YRadius;
138  double ZRadius;
139  double N1;
140  double N2;
141 
142 private:
143  vtkParametricSuperToroid(const vtkParametricSuperToroid&); // Not implemented.
144  void operator=(const vtkParametricSuperToroid&); // Not implemented.
145 
147  double Power ( double x, double n );
148 
149 };
150 
151 #endif
152 
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
#define N2
#define N1
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:38
Generate a supertoroid.
static vtkObject * New()