-// 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
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
#ifndef SRC_MEDCALC_CMP_MEDPRESENTATION_CONTOUR_HXX_
#define SRC_MEDCALC_CMP_MEDPRESENTATION_CONTOUR_HXX_
class MEDCALC_EXPORT MEDPresentationContour : public MEDPresentation
{
public:
- MEDPresentationContour(const MEDCALC::ContourParameters& params) :
- MEDPresentation(params.fieldHandlerId, "MEDPresentationContour")
- {}
+ static const std::string TYPE_NAME;
+ static const std::string PROP_NB_CONTOUR;
+ static const std::string PROB_CONTOUR_COMPONENT_ID;
+
+ MEDPresentationContour(const MEDCALC::ContourParameters& params, const MEDCALC::ViewModeType viewMode);
virtual ~MEDPresentationContour() {}
+ virtual void initFieldMeshInfos();
+
+ void updatePipeline(const MEDCALC::ContourParameters& params);
+
+ void getParameters(MEDCALC::ContourParameters & params) const { params = _params; } ;
+ void setParameters(const MEDCALC::ContourParameters & params) { _params = params; } ;
+
protected:
+ void initProgFilter();
+ void updateNbContours(const int nbContours);
+ void updateContourComponent(const std::string& newCompo);
virtual void internalGeneratePipeline();
+ int getContourComponentId() const;
+ std::string getContourComponentName() const;
+ void setNumberContours();
+ std::string getFieldName() const override;
+ void scalarBarTitle() override;
private:
MEDCALC::ContourParameters _params;
+ std::string _countourProgrammableVar;
};
#endif