35 #ifndef vtkParametricRandomHills_h 36 #define vtkParametricRandomHills_h 38 #include "vtkCommonComputationalGeometryModule.h" 79 vtkSetMacro(NumberOfHills,
int);
80 vtkGetMacro(NumberOfHills,
int);
88 vtkSetMacro(HillXVariance,
double);
89 vtkGetMacro(HillXVariance,
double);
97 vtkSetMacro(HillYVariance,
double);
98 vtkGetMacro(HillYVariance,
double);
106 vtkSetMacro(HillAmplitude,
double);
107 vtkGetMacro(HillAmplitude,
double);
117 vtkSetMacro(RandomSeed,
int);
118 vtkGetMacro(RandomSeed,
int);
135 vtkSetClampMacro(AllowRandomGeneration,
vtkTypeBool, 0, 1);
137 vtkBooleanMacro(AllowRandomGeneration,
vtkTypeBool);
145 vtkSetMacro(XVarianceScaleFactor,
double);
146 vtkGetMacro(XVarianceScaleFactor,
double);
154 vtkSetMacro(YVarianceScaleFactor,
double);
155 vtkGetMacro(YVarianceScaleFactor,
double);
163 vtkSetMacro(AmplitudeScaleFactor,
double);
164 vtkGetMacro(AmplitudeScaleFactor,
double);
175 void Evaluate(
double uvw[3],
double Pt[3],
double Duvw[9])
override;
190 double EvaluateScalar(
double uvw[3],
double Pt[3],
double Duvw[9])
override;
225 void InitRNG(
int RandomSeed);
243 void MakeTheHillData(
void);
248 bool ParametersChanged();
253 void CopyParameters();
int previousNumberOfHills
vtkTypeBool AllowRandomGeneration
Generate a surface covered with randomly placed hills.
double XVarianceScaleFactor
int previousAllowRandomGeneration
double previousAmplitudeScaleFactor
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
Performs the mapping $f(uvw)->(Pt,Duvw)$f.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDimension() override
Return the parametric dimension of the class.
dynamic, self-adjusting array of double
double previousHillXVariance
abstract interface for parametric functions
a simple class to control print indentation
double previousHillYVariance
Park and Miller Sequence of pseudo random numbers.
double AmplitudeScaleFactor
double YVarianceScaleFactor
double previousXVarianceScaleFactor
double previousHillAmplitude
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
double previousYVarianceScaleFactor