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

anton.piccardo-selg at stfc.ac.uk anton.piccardo-selg at stfc.ac.uk
Wed Jun 24 05:50:35 EDT 2015


Hi,

We figured it out. So, just for reference: We needed to create a Change-of-Basis-Matrix as well as a Bounding-Box-In-Basis and add that to the output data using the functions provided by vtkPVChangeOfBasisHelper.

Thanks and best regards,

Anton

________________________________
From: Piccardo-Selg, Anton (-,RAL,ISIS)
Sent: 23 June 2015 17:14
To: paraview-developers at paraview.org
Subject: "LabelRangeForX" not available in ParaView 4.3.1?

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