Commit 8b081c7e authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH: Added some new scalar types.

parent 9c95e412
...@@ -34,7 +34,7 @@ public: ...@@ -34,7 +34,7 @@ public:
virtual float GetScalar(int i) = 0; virtual float GetScalar(int i) = 0;
virtual void SetScalar(int i, float s) = 0; // fast insert virtual void SetScalar(int i, float s) = 0; // fast insert
virtual void InsertScalar(int i, float s) = 0; // allocates memory as necessary virtual void InsertScalar(int i, float s) = 0; // allocates memory as necessary
void GetScalars(vlIdList& ptId, vlFloatScalars& fp); void GetScalars(vlIdList& ptId, vlFloatScalars& fs);
char *GetClassName() {return "vlScalars";}; char *GetClassName() {return "vlScalars";};
void PrintSelf(ostream& os, vlIndent indent); void PrintSelf(ostream& os, vlIndent indent);
virtual void ComputeRange(); virtual void ComputeRange();
......
...@@ -26,11 +26,11 @@ vlScalars::vlScalars() ...@@ -26,11 +26,11 @@ vlScalars::vlScalars()
this->Range[1] = 1.0; this->Range[1] = 1.0;
} }
void vlScalars::GetScalars(vlIdList& ptId, vlFloatScalars& fp) void vlScalars::GetScalars(vlIdList& ptId, vlFloatScalars& fs)
{ {
for (int i=0; i<ptId.NumberOfIds(); i++) for (int i=0; i<ptId.NumberOfIds(); i++)
{ {
fp.InsertScalar(i,this->GetScalar(ptId[i])); fs.InsertScalar(i,this->GetScalar(ptId[i]));
} }
} }
void vlScalars::ComputeRange() void vlScalars::ComputeRange()
......
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