54 #ifndef vtkSuperquadricSource_h 55 #define vtkSuperquadricSource_h 57 #include "vtkFiltersSourcesModule.h" 60 #define VTK_MAX_SUPERQUADRIC_RESOLUTION 1024 61 #define VTK_MIN_SUPERQUADRIC_THICKNESS 1e-4 62 #define VTK_MIN_SUPERQUADRIC_ROUNDNESS 1e-24 81 vtkSetVector3Macro(Center,
double);
82 vtkGetVectorMacro(Center,
double,3);
89 vtkSetVector3Macro(Scale,
double);
90 vtkGetVectorMacro(Scale,
double,3);
97 vtkGetMacro(ThetaResolution,
int);
98 void SetThetaResolution(
int i);
105 vtkGetMacro(PhiResolution,
int);
106 void SetPhiResolution(
int i);
115 vtkGetMacro(Thickness,
double);
125 vtkGetMacro(PhiRoundness,
double);
126 void SetPhiRoundness(
double e);
135 vtkGetMacro(ThetaRoundness,
double);
136 void SetThetaRoundness(
double e);
143 vtkSetMacro(Size,
double);
144 vtkGetMacro(Size,
double);
151 vtkSetMacro(AxisOfSymmetry,
int);
152 vtkGetMacro(AxisOfSymmetry,
int);
174 vtkSetMacro(OutputPointsPrecision,
int);
175 vtkGetMacro(OutputPointsPrecision,
int);
void SetYAxisOfSymmetry()
Set/Get axis of symmetry for superquadric (x axis: 0, y axis: 1, z axis: 2).
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
create a polygonal superquadric centered at the origin
void SetZAxisOfSymmetry()
Set/Get axis of symmetry for superquadric (x axis: 0, y axis: 1, z axis: 2).
~vtkSuperquadricSource() override
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
void SetXAxisOfSymmetry()
Set/Get axis of symmetry for superquadric (x axis: 0, y axis: 1, z axis: 2).
#define VTK_MIN_SUPERQUADRIC_THICKNESS
int OutputPointsPrecision
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.