33#include <NDEVR/QTDesignObject.h>
35#include <NDEVR/Model.h>
36#include <NDEVR/DesignParameter.h>
37#include <NDEVR/Pointer.h>
38#include <QAbstractTableModel>
39#include <QItemDelegate>
50 bool editorEvent(QEvent* event, QAbstractItemModel* model,
const QStyleOptionViewItem& option,
const QModelIndex& index)
override;
74 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
75 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
76 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
77 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
78 Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
79 void onClicked(
const QModelIndex& index, QRect rect);
80 void onHovered(
const QModelIndex& index, QRect rect);
82 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
99 bool m_is_editable =
false;
100 bool m_is_global =
false;
101 bool m_has_vertex_edit_column =
false;
102 bool m_has_primitive_edit_column =
false;
103 bool m_is_linework =
false;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
A Qt compatible AbstractTableModel for showing properties around a series of Geometry Vertex objects.
Definition QTVertexManagerView.h:57
void setParametersToLocalLocations()
bool isEditable() const
Definition QTVertexManagerView.h:85
Buffer< DesignParameterAccumulator > m_properties
Definition QTVertexManagerView.h:96
QTVertexManagerView(const DynamicPointer< QTDesignObject > &root, QObject *parent=nullptr)
void displayLineworkEditor(uint04 vertex_index, PopupInfo info)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
bool isSpecialCallbackIndex(const QModelIndex &index) const
void setParametersToGlobalLinework()
void autoPopulateColumns()
void setTarget(const DynamicPointer< QTDesignObject > &root)
void setParameters(const Buffer< DesignParameter > ¶ms, bool enable_edit, bool enable_primitive_edit)
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void setEditable(bool editable)
Qt::ItemFlags flags(const QModelIndex &index) const override
QTVertexManagerView(QObject *parent=nullptr)
uint04 m_num_of_decimal
Definition QTVertexManagerView.h:98
virtual ~QTVertexManagerView()
void setUseGlobalTransform(bool toggle)
Definition QTVertexManagerView.h:69
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
void onHovered(const QModelIndex &index, QRect rect)
DynamicPointer< QTDesignObject > target() const
Buffer< uint04 > m_cached_indices
Definition QTVertexManagerView.h:95
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
void onClicked(const QModelIndex &index, QRect rect)
int columnCount(const QModelIndex &parent=QModelIndex()) const override
void setParametersToGlobalLocations()
DynamicPointer< QTDesignObject > m_root
Definition QTVertexManagerView.h:97
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
A Qt compatible ItemDelegate for showing properties around a Geometry Vertex object.
Definition QTVertexManagerView.h:46
VertexTableDelegate(QObject *parent=nullptr)
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233