[Paraview-developers] Selection Changes in ParaView Master
Mathieu Westphal
mathieu.westphal at kitware.com
Thu Oct 8 12:12:52 EDT 2015
Hi
Indeed, see pqView.h ( as hinted by your compiler error )
enum SelectionModifier {
PV_SELECTION_DEFAULT = 0,
PV_SELECTION_ADDITION,
PV_SELECTION_SUBTRACTION,
PV_SELECTION_TOGGLE
};
so
pqRenderView::PV_SELECTION_MERGE -> pqView::PV_SELECTION_ADDITION,
pqRenderView::PV_SELECTION_NEW -> pqView::PV_SELECTION_DEFAULT
I do not know what is the context of *pqCMBRubberBandHelper,* but there is
now a pqRenderViewSelectionReaction::getSelectionModifier() that could help
you simplify this code.
Mathieu
Mathieu Westphal
On Thu, Oct 8, 2015 at 6:02 PM, Bob Obara <bob.obara at kitware.com> wrote:
> Hi All,
>
> I'm trying to update CMB to use ParaView master and I'm running into the
> following problem:
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/cmb/src/cmb/Source/Applications/AppCommon/pqCMBRubberBandHelper.cxx:445:17:
> **error: **no type named 'pqSelectionOperator' in 'pqRenderView'*
>
> pqRenderView::pqSelectionOperator selOp = ctrl ?
> pqRenderView::PV_SELECTION_MERGE : pqRenderView::PV_SELECTION_NEW;
>
> * ~~~~~~~~~~~~~~^*
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/cmb/src/cmb/Source/Applications/AppCommon/pqCMBRubberBandHelper.cxx:445:66:
> **error: **no member named 'PV_SELECTION_MERGE' in 'pqRenderView'; did
> you mean*
>
> * 'PV_SELECTION_TOGGLE'?*
>
> pqRenderView::pqSelectionOperator selOp = ctrl ?
> pqRenderView::PV_SELECTION_MERGE : pqRenderView::PV_SELECTION_NEW;
>
> *
> ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~*
>
>
> PV_SELECTION_TOGGLE
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/paraview/src/paraview/Qt/Core/pqView.h:64:5:
> note: *'PV_SELECTION_TOGGLE' declared here
>
> PV_SELECTION_TOGGLE
>
> * ^*
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/cmb/src/cmb/Source/Applications/AppCommon/pqCMBRubberBandHelper.cxx:445:101:
> **error: **no member named 'PV_SELECTION_NEW' in 'pqRenderView'*
>
> pqRenderView::pqSelectionOperator selOp = ctrl ?
> pqRenderView::PV_SELECTION_MERGE : pqRenderView::PV_SELECTION_NEW;
>
> *
> ~~~~~~~~~~~~~~^*
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/cmb/src/cmb/Source/Applications/AppCommon/pqCMBRubberBandHelper.cxx:590:19:
> **error: **no type named 'pqSelectionOperator' in 'pqRenderView'*
>
> pqRenderView::pqSelectionOperator selOp = ctrl ?
> pqRenderView::PV_SELECTION_MERGE : pqRenderView::PV_SELECTION_NEW;
>
> * ~~~~~~~~~~~~~~^*
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/cmb/src/cmb/Source/Applications/AppCommon/pqCMBRubberBandHelper.cxx:590:68:
> **error: **no member named 'PV_SELECTION_MERGE' in 'pqRenderView'; did
> you mean*
>
> * 'PV_SELECTION_TOGGLE'?*
>
> pqRenderView::pqSelectionOperator selOp = ctrl ?
> pqRenderView::PV_SELECTION_MERGE : pqRenderView::PV_SELECTION_NEW;
>
> *
> ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~*
>
>
> PV_SELECTION_TOGGLE
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/paraview/src/paraview/Qt/Core/pqView.h:64:5:
> note: *'PV_SELECTION_TOGGLE' declared here
>
> PV_SELECTION_TOGGLE
>
> * ^*
>
> */Users/obara/Projects/Builds/CMBSuperBuildV4ParaViewMaster/cmb/src/cmb/Source/Applications/AppCommon/pqCMBRubberBandHelper.cxx:590:103:
> **error: **no member named 'PV_SELECTION_NEW' in 'pqRenderView'*
>
> pqRenderView::pqSelectionOperator selOp = ctrl ?
> pqRenderView::PV_SELECTION_MERGE : pqRenderView::PV_SELECTION_NEW;
>
> *
> ~~~~~~~~~~~~~~^*
>
>
>
> It seems that PV_SELECTION_MERGE and PV_SELECTION_NEW no longer exists -
> what is proper replacements for them?
>
> Thanks!
>
> Bob
> --
> Robert M. O'Bara, MEng.
> Assistant Director of Scientific Computing
>
> Kitware Inc.
> 28 Corporate Drive
> Suite 101
> Clifton Park, NY 12065
>
> Phone: (518) 881- 4931
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20151008/84b07f56/attachment.html>
More information about the Paraview-developers
mailing list