[Paraview-developers] "LabelRangeForX" not available in ParaView 4.3.1?

anton.piccardo-selg at stfc.ac.uk anton.piccardo-selg at stfc.ac.uk
Tue Jun 23 12:14:00 EDT 2015


Hi,

Our group migrated recently from PV 3.98.1 to PV 4.3.1. We found a migration issue relating to vtkFieldData which is produced by one of our plugins.

The field data makes use of "LabelRangeForX" , "LabelRangeActiveFlag", "LinearTransformForX" , etc. We use these properties to set the range of the axes in our application.

We have something like this:
...
double boundingBox[6];
m_inputData->GetBounds(boundingBox);
vtkFieldData *fieldData = m_outputData->GetFieldData();
...
vtkNew<vtkFloatArray> uLabelRange;
uLabelRange->SetNumberOfComponents(2);
uLabelRange->SetNumberOfTuples(1);
uLabelRange->SetName("LabelRangeForX");
double labelRangeX[2] = {boundingBox[0], boundingBox[1]};
uLabelRange->SetTuple(0, labelRangeX);
fieldData->AddArray(uLabelRange.GetPointer());
...


A grep showed that PV3.98.1 contains references to these properties (e.g. in  vtkCubeAxesRepresentation.cxx) while PV4.3.1 does not seem to contain this any longer.

What are the appropriate properties in PV4.3.1? Or is it not possible to apply this kind of mechanism in PV4.3.1?

Many thanks and best regards,

Anton





More information about the Paraview-developers mailing list