Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkPointSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPointSource.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00043 #ifndef __vtkPointSource_h
00044 #define __vtkPointSource_h
00045 
00046 #include "vtkPolyDataSource.h"
00047 
00048 #define VTK_POINT_UNIFORM   1
00049 #define VTK_POINT_SHELL     0
00050 
00051 class VTK_GRAPHICS_EXPORT vtkPointSource : public vtkPolyDataSource 
00052 {
00053 public:
00054   static vtkPointSource *New();
00055   vtkTypeRevisionMacro(vtkPointSource,vtkPolyDataSource);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057   
00059 
00060   vtkSetClampMacro(NumberOfPoints,vtkIdType,1,VTK_LARGE_ID);
00061   vtkGetMacro(NumberOfPoints,vtkIdType);
00063 
00065 
00066   vtkSetVector3Macro(Center,double);
00067   vtkGetVectorMacro(Center,double,3);
00069 
00071 
00074   vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
00075   vtkGetMacro(Radius,double);
00077 
00079 
00082   vtkSetMacro(Distribution,int);
00083   void SetDistributionToUniform() {
00084     this->SetDistribution(VTK_POINT_UNIFORM);};
00085   void SetDistributionToShell() {
00086     this->SetDistribution(VTK_POINT_SHELL);};
00087   vtkGetMacro(Distribution,int);
00089 
00090 protected:
00091   vtkPointSource(vtkIdType numPts=10);
00092   ~vtkPointSource() {};
00093 
00094   void Execute();
00095   void ExecuteInformation();
00096 
00097   vtkIdType NumberOfPoints;
00098   double Center[3];
00099   double Radius;
00100   int Distribution;
00101 
00102 private:
00103   vtkPointSource(const vtkPointSource&);  // Not implemented.
00104   void operator=(const vtkPointSource&);  // Not implemented.
00105 };
00106 
00107 #endif