mirror of https://github.com/CGAL/cgal
Add an attribue rendering_mode in Polyhedron_entry.
This commit is contained in:
parent
b91a56535c
commit
ad787d98c0
|
|
@ -247,7 +247,7 @@ Scene::columnCount(const QModelIndex & parent) const
|
|||
if (parent.isValid())
|
||||
return 0;
|
||||
else
|
||||
return AfterLastColumn;
|
||||
return NumberOfColumns;
|
||||
}
|
||||
|
||||
QVariant
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ private:
|
|||
QString name;
|
||||
QColor color;
|
||||
bool activated;
|
||||
RenderingMode rendering_mode;
|
||||
};
|
||||
|
||||
public:
|
||||
|
|
@ -70,9 +71,11 @@ public:
|
|||
void draw();
|
||||
CGAL::Bbox_3 bbox();
|
||||
|
||||
enum RenderingMode { Fill = 0, Wireframe, LastRenderingMode = Wireframe,
|
||||
NumberOfRenderingMode = Wireframe+1};
|
||||
enum Columns { NameColumn = 0, ColorColumn, ActivatedColumn,
|
||||
LastColumn = ActivatedColumn,
|
||||
AfterLastColumn = LastColumn + 1};
|
||||
NumberOfColumns = LastColumn + 1};
|
||||
|
||||
// QAbstractItemModel functions
|
||||
int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue