34#include "vtkCommonDataModelModule.h"
67 vtkGetMacro(Radius,
double);
74 vtkSetVector3Macro(Center,
double);
75 vtkGetVectorMacro(Center,
double,3);
117 void operator=(
const vtkSphere&) VTK_DELETE_FUNCTION;
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
a simple class to control print indentation
implicit function for a sphere
void EvaluateGradient(double x[3], double n[3]) override
Evaluate sphere gradient.
double EvaluateFunction(double x, double y, double z)
static void ComputeBoundingSphere(double **spheres, vtkIdType numSpheres, double sphere[4], vtkIdType hints[2])
static void ComputeBoundingSphere(double *pts, vtkIdType numPts, double sphere[4], vtkIdType hints[2])
double EvaluateFunction(double x[3]) override
Evaluate sphere equation ((x-x0)^2 + (y-y0)^2 + (z-z0)^2) - R^2.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSphere * New()
Construct sphere with center at (0,0,0) and radius=0.5.
static void ComputeBoundingSphere(float *pts, vtkIdType numPts, float sphere[4], vtkIdType hints[2])
Create a bounding sphere from a set of points.
static void ComputeBoundingSphere(float **spheres, vtkIdType numSpheres, float sphere[4], vtkIdType hints[2])
Create a bounding sphere from a set of spheres.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.