create a random cloud of points
More...
#include <vtkPointSource.h>
Inherits vtkPolyDataAlgorithm.
create a random cloud of points
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. The output PolyData has the specified number of points and 1 cell - a vtkPolyVertex containing all of the points.
- Examples:
- vtkPointSource (Examples)
- Tests:
- vtkPointSource (Tests)
Definition at line 41 of file vtkPointSource.h.
vtkPointSource::vtkPointSource |
( |
vtkIdType |
numPts = 10 | ) |
|
|
protected |
vtkPointSource::~vtkPointSource |
( |
| ) |
|
|
inlineprotected |
static int vtkPointSource::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkPointSource::IsA |
( |
const char * |
type | ) |
|
|
virtual |
static vtkPointSource* vtkPointSource::SafeDownCast |
( |
vtkObjectBase * |
o | ) |
|
|
static |
virtual vtkObjectBase* vtkPointSource::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkPointSource::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
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 73 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 75 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 * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protected |
vtkIdType vtkPointSource::NumberOfPoints |
|
protected |
double vtkPointSource::Center[3] |
|
protected |
double vtkPointSource::Radius |
|
protected |
int vtkPointSource::Distribution |
|
protected |
The documentation for this class was generated from the following file: