[vtk-developers] Why is GetRange double* even for non double arrays?
David Doria
daviddoria+vtk at gmail.com
Mon May 17 09:51:03 EDT 2010
> That was a typo. I meant "int *GetValueRange()". We need it for the
> wrapper languages.
>
> David
Ok. How does this look? If it's ok, care to commit it?
void GetValueRange(int range[2])
{
double r[2];
this->GetRange(r);
range[0] = static_cast<int>(r[0]);
range[1] = static_cast<int>(r[1]);
}
int* GetValueRange()
{
double r[2];
this->GetRange(r);
int* range = new int[2];
this->GetValueRange(range);
return range;
}
Thanks,
David
More information about the vtk-developers
mailing list