dox/Parallel/vtkPieceScalars.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00028
#ifndef __vtkPieceScalars_h
00029
#define __vtkPieceScalars_h
00030
00031
#include "vtkDataSetToDataSetFilter.h"
00032
00033
class vtkFloatArray;
00034
class vtkIntArray;
00035
00036 class VTK_PARALLEL_EXPORT vtkPieceScalars :
public vtkDataSetToDataSetFilter
00037 {
00038
public:
00039
static vtkPieceScalars *
New();
00040
00041 vtkTypeRevisionMacro(vtkPieceScalars,
vtkDataSetToDataSetFilter);
00042
void PrintSelf(ostream& os,
vtkIndent indent);
00043
00045
00047 void SetScalarModeToCellData() {this->SetCellScalarsFlag(1);}
00048 void SetScalarModeToPointData() {this->SetCellScalarsFlag(0);}
00049 int GetScalarMode() {
return this->CellScalarsFlag;}
00051
00052
00053
00054
00055 vtkSetMacro(RandomMode,
int);
00056 vtkGetMacro(RandomMode,
int);
00057 vtkBooleanMacro(RandomMode,
int);
00058
00059
protected:
00060 vtkPieceScalars();
00061 ~vtkPieceScalars();
00062
00063
00064
void Execute();
00065
00066
vtkIntArray *MakePieceScalars(
int piece,
vtkIdType numScalars);
00067
vtkFloatArray *MakeRandomScalars(
int piece,
vtkIdType numScalars);
00068
00069 vtkSetMacro(CellScalarsFlag,
int);
00070 int CellScalarsFlag;
00071 int RandomMode;
00072
private:
00073 vtkPieceScalars(
const vtkPieceScalars&);
00074
void operator=(
const vtkPieceScalars&);
00075 };
00076
00077
#endif