#ifndef ONF_ADJUSTPLOTPOSITIONCYLINDERDRAWMANAGER_H #define ONF_ADJUSTPLOTPOSITIONCYLINDERDRAWMANAGER_H #include "ct_itemdrawable/tools/drawmanager/ct_standardabstractshapedrawmanager.h" #include "ct_itemdrawable/ct_cylinder.h" class ONF_AdjustPlotPositionCylinderDrawManager : public CT_StandardAbstractShapeDrawManager { public: ONF_AdjustPlotPositionCylinderDrawManager(QString drawConfigurationName = ""); virtual ~ONF_AdjustPlotPositionCylinderDrawManager(); virtual void draw(GraphicsViewInterface &view, PainterInterface &painter, const CT_AbstractItemDrawable &itemDrawable) const; void setTranslation(double x, double y); void setParameters(bool circles, bool fixedH, double h, double radiusFactor); void setColor(QColor color); void setSelectionColor(QColor color); void setHighlightColor(QColor color); void setMovedColor(QColor color); void setselectedCylinder(CT_Cylinder* selectedCylinder); void setHighlightedCylinder(QList selectedCylinder); void setRefZ(double refZ); void setMode3D(bool mode3D); void setColorBySpecies(bool colorBySpecies); void addCylinderColor(const CT_Cylinder* cylinder, QColor color); private: double _transX; double _transY; QColor _color; QColor _selectionColor; QColor _highlightColor; QColor _movedColor; bool _circles; bool _fixedH; double _h; double _refZ; bool _mode3D; double _radiusFactor; bool _colorBySpecies; CT_Cylinder* _selectedCylinder; QList _highlightedCylinders; QMap _spCylindersColors; protected: virtual CT_ItemDrawableConfiguration createDrawConfiguration(QString drawConfigurationName) const; }; #endif // ONF_ADJUSTPLOTPOSITIONCYLINDERDRAWMANAGER_H