Mercurial > hg > svgui
comparison layer/RegionLayer.h @ 412:d332ad1ca66b
* Add segmentation plot type to region layer (plotting not implemented yet)
author | Chris Cannam |
---|---|
date | Fri, 19 Sep 2008 12:55:35 +0000 |
parents | 96e4d7b9e165 |
children | 1304dbe4542e |
comparison
equal
deleted
inserted
replaced
411:96e4d7b9e165 | 412:d332ad1ca66b |
---|---|
82 }; | 82 }; |
83 | 83 |
84 void setVerticalScale(VerticalScale scale); | 84 void setVerticalScale(VerticalScale scale); |
85 VerticalScale getVerticalScale() const { return m_verticalScale; } | 85 VerticalScale getVerticalScale() const { return m_verticalScale; } |
86 | 86 |
87 enum PlotStyle { | |
88 PlotLines, | |
89 PlotSegmentation | |
90 }; | |
91 | |
92 void setPlotStyle(PlotStyle style); | |
93 PlotStyle getPlotStyle() const { return m_plotStyle; } | |
94 | |
87 virtual bool isLayerScrollable(const View *v) const; | 95 virtual bool isLayerScrollable(const View *v) const; |
88 | 96 |
89 virtual bool isLayerEditable() const { return true; } | 97 virtual bool isLayerEditable() const { return true; } |
90 | 98 |
91 virtual int getCompletion(View *) const { return m_model->getCompletion(); } | 99 virtual int getCompletion(View *) const { return m_model->getCompletion(); } |
113 bool m_editing; | 121 bool m_editing; |
114 RegionModel::Point m_originalPoint; | 122 RegionModel::Point m_originalPoint; |
115 RegionModel::Point m_editingPoint; | 123 RegionModel::Point m_editingPoint; |
116 RegionModel::EditCommand *m_editingCommand; | 124 RegionModel::EditCommand *m_editingCommand; |
117 VerticalScale m_verticalScale; | 125 VerticalScale m_verticalScale; |
126 PlotStyle m_plotStyle; | |
118 | 127 |
119 void finish(RegionModel::EditCommand *command) { | 128 void finish(RegionModel::EditCommand *command) { |
120 Command *c = command->finish(); | 129 Command *c = command->finish(); |
121 if (c) CommandHistory::getInstance()->addCommand(c, false); | 130 if (c) CommandHistory::getInstance()->addCommand(c, false); |
122 } | 131 } |