-// Copyright (C) 2016 CEA/DEN, EDF R&D
+// Copyright (C) 2016-2024 CEA, EDF
//
// 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_SCALARMAP_HXX_
#define SRC_MEDCALC_CMP_MEDPRESENTATION_SCALARMAP_HXX_
#include "MEDCALC.hxx"
#include "MEDPresentation.hxx"
+#include <string>
class MEDCALC_EXPORT MEDPresentationScalarMap : public MEDPresentation
{
public:
- MEDPresentationScalarMap(MEDCALC::FieldHandler* fieldHdl, bool wireframe) :
- MEDPresentation(fieldHdl, "MEDPresentationScalarMap"),
- _isWireframe(wireframe)
- {}
+ static const std::string TYPE_NAME;
+
+ MEDPresentationScalarMap(const MEDCALC::ScalarMapParameters& params, const MEDCALC::ViewModeType viewMode);
virtual ~MEDPresentationScalarMap() {}
+ void updatePipeline(const MEDCALC::ScalarMapParameters& params);
+
+ void getParameters(MEDCALC::ScalarMapParameters & params) const { params = _params; } ;
+ void setParameters(const MEDCALC::ScalarMapParameters & params) { _params = params; } ;
+
+// MEDCALC::ViewModeType getViewMode() { return _params.viewMode; }
+
protected:
virtual void internalGeneratePipeline();
private:
- bool _isWireframe;
+ MEDCALC::ScalarMapParameters _params;
};
#endif