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
00015
00032
#ifndef __vtkPieceScalars_h
00033
#define __vtkPieceScalars_h
00034
00035
#include "vtkDataSetToDataSetFilter.h"
00036
00037
class vtkFloatArray;
00038
class vtkIntArray;
00039
00040 class VTK_PARALLEL_EXPORT vtkPieceScalars :
public vtkDataSetToDataSetFilter
00041 {
00042
public:
00043
static vtkPieceScalars *
New();
00044
00045 vtkTypeRevisionMacro(vtkPieceScalars,
vtkDataSetToDataSetFilter);
00046
void PrintSelf(ostream& os,
vtkIndent indent);
00047
00049
00051 void SetScalarModeToCellData() {this->SetCellScalarsFlag(1);}
00052 void SetScalarModeToPointData() {this->SetCellScalarsFlag(0);}
00053 int GetScalarMode() {
return this->CellScalarsFlag;}
00055
00056
00057
00058
00059 vtkSetMacro(RandomMode,
int);
00060 vtkGetMacro(RandomMode,
int);
00061 vtkBooleanMacro(RandomMode,
int);
00062
00063
protected:
00064 vtkPieceScalars();
00065 ~vtkPieceScalars();
00066
00067
00068
void Execute();
00069
00070
vtkIntArray *MakePieceScalars(
int piece,
vtkIdType numScalars);
00071
vtkFloatArray *MakeRandomScalars(
int piece,
vtkIdType numScalars);
00072
00073 vtkSetMacro(CellScalarsFlag,
int);
00074 int CellScalarsFlag;
00075 int RandomMode;
00076
private:
00077 vtkPieceScalars(
const vtkPieceScalars&);
00078
void operator=(
const vtkPieceScalars&);
00079 };
00080
00081
#endif