X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Fcmp%2FMEDPresentationVectorField.hxx;h=8aae2b7dafe419e49c44c89740fc5b37ddc5382d;hb=bb9014c6fe3e097edd7009a00dc56f514c680365;hp=3da7403113c2ab6e15240c44b7b04a803acfa9c9;hpb=2150e7c3c1bfbd9a364d197b5ff016914a294c9b;p=modules%2Fmed.git diff --git a/src/MEDCalc/cmp/MEDPresentationVectorField.hxx b/src/MEDCalc/cmp/MEDPresentationVectorField.hxx index 3da740311..8aae2b7da 100644 --- a/src/MEDCalc/cmp/MEDPresentationVectorField.hxx +++ b/src/MEDCalc/cmp/MEDPresentationVectorField.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2016 CEA/DEN, EDF R&D +// Copyright (C) 2016-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -26,19 +26,28 @@ class MEDCALC_EXPORT MEDPresentationVectorField : public MEDPresentation { public: - MEDPresentationVectorField(const MEDCALC::VectorFieldParameters& params) : - MEDPresentation(params.fieldHandlerId, "MEDPresentationVectorField"), _params(params) - {} + static const std::string TYPE_NAME; + static const std::string PROP_SCALE_FACTOR; + static const std::string PROP_CUSTOM_SCALE_FACTOR; + + MEDPresentationVectorField(const MEDCALC::VectorFieldParameters& params, const MEDCALC::ViewModeType viewMode); virtual ~MEDPresentationVectorField() {} + virtual void initFieldMeshInfos(); + void updatePipeline(const MEDCALC::VectorFieldParameters& params); - MEDCALC::MEDPresentationViewMode getViewMode() { return _params.viewMode; } + + void getParameters(MEDCALC::VectorFieldParameters & params) const { params = _params; } ; + void setParameters(const MEDCALC::VectorFieldParameters & params) { _params = params; } ; protected: virtual void internalGeneratePipeline(); - + void updateScaleFactor(const double, const bool); + void autoScale(); + void scale(); private: MEDCALC::VectorFieldParameters _params; + }; #endif