42#ifndef vtkPlaneSource_h 
   43#define vtkPlaneSource_h 
   45#include "vtkFiltersSourcesModule.h"  
   48VTK_ABI_NAMESPACE_BEGIN
 
   65  vtkSetMacro(XResolution, 
int);
 
   66  vtkGetMacro(XResolution, 
int);
 
   73  vtkSetMacro(YResolution, 
int);
 
   74  vtkGetMacro(YResolution, 
int);
 
   84    xR = this->XResolution;
 
   85    yR = this->YResolution;
 
   93  vtkSetVector3Macro(Origin, 
double);
 
   94  vtkGetVectorMacro(Origin, 
double, 3);
 
  103  vtkGetVectorMacro(Point1, 
double, 3);
 
  112  vtkGetVectorMacro(Point2, 
double, 3);
 
  133  vtkGetVectorMacro(Center, 
double, 3);
 
  144  vtkGetVectorMacro(Normal, 
double, 3);
 
  159  void Rotate(
double angle, 
double rotationAxis[3]);
 
  167  vtkSetMacro(OutputPointsPrecision, 
int);
 
  168  vtkGetMacro(OutputPointsPrecision, 
int);
 
a simple class to control print indentation
 
create an array of quadrilaterals located in a plane
 
void SetNormal(double nx, double ny, double nz)
Set/Get the plane normal.
 
void SetPoint1(double pnt[3])
Specify a point defining the first axis of the plane.
 
void GetResolution(int &xR, int &yR)
Set the number of x-y subdivisions in the plane.
 
void Rotate(double angle, double rotationAxis[3])
Rotate plane at center around a given axis If the absolute value of the angle is inferior to the defi...
 
void Push(double distance)
Translate the plane in the direction of the normal by the distance specified.
 
void SetPoint2(double pnt[3])
Specify a point defining the second axis of the plane.
 
~vtkPlaneSource() override=default
 
void SetCenter(double x, double y, double z)
Set/Get the center of the plane.
 
void SetResolution(int xR, int yR)
Set the number of x-y subdivisions in the plane.
 
void GetAxis1(double a1[3])
Convenience methods to retrieve the axes of the plane; that is axis a1 is the vector (Point1-Origin),...
 
int UpdatePlane(double v1[3], double v2[3])
 
static vtkPlaneSource * New()
Construct plane perpendicular to z-axis, resolution 1x1, width and height 1.0, and centered at the or...
 
void SetNormal(double n[3])
Set/Get the plane normal.
 
void SetCenter(double center[3])
Set/Get the center of the plane.
 
void SetPoint1(double x, double y, double z)
Specify a point defining the first axis of the plane.
 
void SetPoint2(double x, double y, double z)
Specify a point defining the second axis of the plane.
 
void GetAxis2(double a2[3])
Convenience methods to retrieve the axes of the plane; that is axis a1 is the vector (Point1-Origin),...
 
int OutputPointsPrecision
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
 
Superclass for algorithms that produce only polydata as output.