#include <vtkPointSource.h>
vtkPointSource is a source object that creates a user-specified number of points within a specified radius about a specified center point. By default location of the points is random within the sphere. It is also possible to generate random points only on the surface of the sphere.
Definition at line 39 of file vtkPointSource.h.
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetNumberOfPoints (vtkIdType) |
virtual vtkIdType | GetNumberOfPoints () |
virtual void | SetCenter (double, double, double) |
virtual void | SetCenter (double[3]) |
virtual double * | GetCenter () |
virtual void | GetCenter (double data[3]) |
virtual void | SetRadius (double) |
virtual double | GetRadius () |
virtual void | SetDistribution (int) |
void | SetDistributionToUniform () |
void | SetDistributionToShell () |
virtual int | GetDistribution () |
Static Public Member Functions | |
static vtkPointSource * | New () |
static int | IsTypeOf (const char *type) |
static vtkPointSource * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPointSource (vtkIdType numPts=10) | |
~vtkPointSource () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
vtkIdType | NumberOfPoints |
double | Center [3] |
double | Radius |
int | Distribution |
vtkPointSource::vtkPointSource | ( | vtkIdType | numPts = 10 |
) | [protected] |
vtkPointSource::~vtkPointSource | ( | ) | [inline, protected] |
Definition at line 80 of file vtkPointSource.h.
static vtkPointSource* vtkPointSource::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataAlgorithm.
virtual const char* vtkPointSource::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPolyDataAlgorithm.
static int vtkPointSource::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkPointSource::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
static vtkPointSource* vtkPointSource::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
void vtkPointSource::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPolyDataAlgorithm.
virtual void vtkPointSource::SetNumberOfPoints | ( | vtkIdType | ) | [virtual] |
Set the number of points to generate.
virtual vtkIdType vtkPointSource::GetNumberOfPoints | ( | ) | [virtual] |
Set the number of points to generate.
virtual void vtkPointSource::SetCenter | ( | double | , | |
double | , | |||
double | ||||
) | [virtual] |
Set the center of the point cloud.
virtual void vtkPointSource::SetCenter | ( | double | [3] | ) | [virtual] |
Set the center of the point cloud.
virtual double* vtkPointSource::GetCenter | ( | ) | [virtual] |
Set the center of the point cloud.
virtual void vtkPointSource::GetCenter | ( | double | data[3] | ) | [virtual] |
Set the center of the point cloud.
virtual void vtkPointSource::SetRadius | ( | double | ) | [virtual] |
Set the radius of the point cloud. If you are generating a Gaussian distribution, then this is the standard deviation for each of x, y, and z.
virtual double vtkPointSource::GetRadius | ( | ) | [virtual] |
Set the radius of the point cloud. If you are generating a Gaussian distribution, then this is the standard deviation for each of x, y, and z.
virtual void vtkPointSource::SetDistribution | ( | int | ) | [virtual] |
Specify the distribution to use. The default is a uniform distribution. The shell distribution produces random points on the surface of the sphere, none in the interior.
void vtkPointSource::SetDistributionToUniform | ( | ) | [inline] |
Specify the distribution to use. The default is a uniform distribution. The shell distribution produces random points on the surface of the sphere, none in the interior.
Definition at line 71 of file vtkPointSource.h.
void vtkPointSource::SetDistributionToShell | ( | ) | [inline] |
Specify the distribution to use. The default is a uniform distribution. The shell distribution produces random points on the surface of the sphere, none in the interior.
Definition at line 73 of file vtkPointSource.h.
virtual int vtkPointSource::GetDistribution | ( | ) | [virtual] |
Specify the distribution to use. The default is a uniform distribution. The shell distribution produces random points on the surface of the sphere, none in the interior.
int vtkPointSource::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
vtkIdType vtkPointSource::NumberOfPoints [protected] |
Definition at line 84 of file vtkPointSource.h.
double vtkPointSource::Center[3] [protected] |
Definition at line 85 of file vtkPointSource.h.
double vtkPointSource::Radius [protected] |
Definition at line 86 of file vtkPointSource.h.
int vtkPointSource::Distribution [protected] |
Definition at line 87 of file vtkPointSource.h.