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 "vtkParametricFunction.h"
50 
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
62  static vtkParametricSuperToroid *New();
63 
65  virtual int GetDimension() {return 2;}
66 
68 
70  vtkSetMacro(RingRadius,double);
71  vtkGetMacro(RingRadius,double);
73 
75 
77  vtkSetMacro(CrossSectionRadius,double);
78  vtkGetMacro(CrossSectionRadius,double);
80 
82 
83  vtkSetMacro(XRadius,double);
84  vtkGetMacro(XRadius,double);
86 
88 
89  vtkSetMacro(YRadius,double);
90  vtkGetMacro(YRadius,double);
92 
94 
95  vtkSetMacro(ZRadius,double);
96  vtkGetMacro(ZRadius,double);
98 
100 
101  vtkSetMacro(N1,double);
102  vtkGetMacro(N1,double);
104 
106 
107  vtkSetMacro(N2,double);
108  vtkGetMacro(N2,double);
110 
116  virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9]);
117 
126  virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]);
127 
128 protected:
131 
132  // Variables
133  double RingRadius;
135  double XRadius;
136  double YRadius;
137  double ZRadius;
138  double N1;
139  double N2;
140 
141 private:
142  vtkParametricSuperToroid(const vtkParametricSuperToroid&); // Not implemented.
143  void operator=(const vtkParametricSuperToroid&); // Not implemented.
144 
146  double Power ( double x, double n );
147 
148 };
149 
150 #endif
151 
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
void PrintSelf(ostream &os, vtkIndent indent)
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:37
Generate a supertoroid.
#define VTK_COMMON_EXPORT
static vtkObject * New()