// 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_SLICES_HXX_
#define SRC_MEDCALC_CMP_MEDPRESENTATION_SLICES_HXX_
class MEDCALC_EXPORT MEDPresentationSlices : public MEDPresentation
{
public:
- MEDPresentationSlices(MEDCALC::FieldHandler* fieldHdl, bool wireframe) :
- MEDPresentation(fieldHdl, "MEDPresentationSlices"),
- _isWireframe(wireframe)
- {}
+ 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 deleteGroup();
+ void setSliceParametersAndGroup();
+ void adaptNumberOfSlices();
+ void generateAndDisplay();
+ void selectSliceOrientation(const std::string & obj);
+
+ std::string getNormalVector() const;
+
private:
- bool _isWireframe;
+ MEDCALC::SlicesParameters _params;
+ std::string _sliceListVar;
};
#endif