Commit e9dd6eaf authored by Andrew Bauer's avatar Andrew Bauer
Browse files

Make protected setter method public

Setter method should probably have originally been public but
was instead protected. Changing it to public now.
parent df8317f8
Pipeline #204001 running with stage
...@@ -43,21 +43,27 @@ public: ...@@ -43,21 +43,27 @@ public:
vtkTypeMacro(vtkProcessIdScalars, vtkDataSetAlgorithm); vtkTypeMacro(vtkProcessIdScalars, vtkDataSetAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) override; void PrintSelf(ostream& os, vtkIndent indent) override;
//@{
/** /**
* Option to centerate cell scalars of points scalars. Default is point * Option to centerate cell scalars of points scalars. Default is point
* scalars. * scalars (0).
*/ */
void SetScalarModeToCellData() { this->SetCellScalarsFlag(1); } void SetScalarModeToCellData() { this->SetCellScalarsFlag(1); }
void SetScalarModeToPointData() { this->SetCellScalarsFlag(0); } void SetScalarModeToPointData() { this->SetCellScalarsFlag(0); }
vtkSetMacro(CellScalarsFlag, int);
int GetScalarMode() { return this->CellScalarsFlag; } int GetScalarMode() { return this->CellScalarsFlag; }
//@}
// Dscription: //@{
// This option uses a random mapping between pieces and scalar values. /**
// The scalar values are chosen between 0 and 1. By default, random * This option uses a random mapping between pieces and scalar values.
// mode is off. * The scalar values are chosen between 0 and 1. By default, random
* mode is off.
*/
vtkSetMacro(RandomMode, vtkTypeBool); vtkSetMacro(RandomMode, vtkTypeBool);
vtkGetMacro(RandomMode, vtkTypeBool); vtkGetMacro(RandomMode, vtkTypeBool);
vtkBooleanMacro(RandomMode, vtkTypeBool); vtkBooleanMacro(RandomMode, vtkTypeBool);
//@}
//@{ //@{
/** /**
...@@ -78,7 +84,6 @@ protected: ...@@ -78,7 +84,6 @@ protected:
vtkIntArray* MakeProcessIdScalars(int piece, vtkIdType numScalars); vtkIntArray* MakeProcessIdScalars(int piece, vtkIdType numScalars);
vtkFloatArray* MakeRandomScalars(int piece, vtkIdType numScalars); vtkFloatArray* MakeRandomScalars(int piece, vtkIdType numScalars);
vtkSetMacro(CellScalarsFlag, int);
int CellScalarsFlag; int CellScalarsFlag;
vtkTypeBool RandomMode; vtkTypeBool RandomMode;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment