class MEDCALC_EXPORT MEDPresentationSlices : public MEDPresentation
{
public:
- MEDPresentationSlices(const MEDCALC::SlicesParameters& params) :
- MEDPresentation(params.fieldHandlerId, "MEDPresentationSlices"), _params(params)
- {}
+ static const std::string TYPE_NAME;
+ static const std::string PROP_NB_SLICES;
+ static const std::string PROP_SLICE_ORIENTATION;
+
+ MEDPresentationSlices(const MEDCALC::SlicesParameters& params, const MEDCALC::ViewModeType viewMode);
virtual ~MEDPresentationSlices() {}
+ void updatePipeline(const MEDCALC::SlicesParameters& params);
+
+ void getParameters(MEDCALC::SlicesParameters & params) const { params = _params; } ;
+ void setParameters(const MEDCALC::SlicesParameters & params) { _params = params; } ;
+
protected:
+ void updateNbSlices(const int nbSlices);
+ void updateOrientation(const MEDCALC::SliceOrientationType orientation);
virtual void internalGeneratePipeline();
+ void setNumberOfSlices();
+ void selectSliceOrientation();
+
private:
MEDCALC::SlicesParameters _params;
};