vtkPlaneSource - create an array of quadrilaterals located in a plane
Super Class: vtkPolyDataSource
Description:
vtkPlaneSource creates an m x n array of quadrilaterals arranged as a regular tiling in a plane. The plane is defined by specifying an origin point, and then two other points that, together with the origin, define two axes for the plane. These axes do not have to be orthogonal - so you can create a parallelogram. (The axes must not be parallel.) By default, the plane is centered at the origin and perpendicular to the z-axis, with width and height of length 1. The resolution of the plane (i.e., number of subdivisions) is controlled by the ivars XResolution and YResolution. There are three conveience methods that allow you to easily move the plane. The first, SetNormal(), allows you to specify the plane normal. The effect of this method is to rotate the plane around the center of the plane, aligning the plane normal with the specified normal. The second, SetCenter(), translates the center of the plane to the specified center point. The third method, Push(), allows you to translate the plane along the plane normal by the distance specified. (Negative Push values translate the plane in the negative normal direction.) Note that the SetNormal(), SetCenter() and Push() methods modify the Origin, Point1, and/or Point2 ivars.
Caveats:
The normal to the plane will point in the direction of the cross product of the first axis (Origin->Point1) with the second (Origin->Point2). This also affects the normals to the generated polygons.
Methods:
void vtkPlaneSource () | |
void PrintSelf (unknown & ,vtkIndent ) | |
const char *GetClassName () | |
static vtkPlaneSource *New () | |
void SetXResolution (int ) | |
int GetXResolution () | |
void SetYResolution (int ) | |
int GetYResolution () | |
void SetResolution (const int ,const int ) | |
void GetResolution (int & ,int &) | |
void SetOrigin (float ,float ,float ) | |
void SetOrigin (float *) | |
float *GetOrigin () | |
void SetPoint1 (float ,float ,float ) | |
void SetPoint1 (float ) | |
float *GetPoint1 () | |
void SetPoint2 (float ,float ,float ) | |
void SetPoint2 (float ) | |
float *GetPoint2 () | |
void SetCenter (float ,float ,float ) | |
void SetCenter (float ) | |
float *GetCenter () | |
void SetNormal (float ,float ,float ) | |
void SetNormal (float ) | |
float *GetNormal () | |
void Push (float ) | |
void Execute () | |
int UpdatePlane (float ,float ) |
Detailed Method Descriptions:
static vtkPlaneSource *New () |
void SetXResolution (int ) | |
int GetXResolution () |
void SetYResolution (int ) | |
int GetYResolution () |
void SetResolution (const int ,const int ) | |
void GetResolution (int & ,int &) |
void SetOrigin (float ,float ,float ) | |
void SetOrigin (float *) | |
float *GetOrigin () |
void SetPoint1 (float ,float ,float ) | |
void SetPoint1 (float ) | |
float *GetPoint1 () |
void SetPoint2 (float ,float ,float ) | |
void SetPoint2 (float ) | |
float *GetPoint2 () |
void SetCenter (float ,float ,float ) | |
void SetCenter (float ) | |
float *GetCenter () |
void SetNormal (float ,float ,float ) | |
void SetNormal (float ) | |
float *GetNormal () |
void Push (float ) |