API Documentation
Loading...
Searching...
No Matches
QTVertexManagerView Class Referencefinal

A Qt compatible AbstractTableModel for showing properties around a series of Geometry Vertex objects. More...

#include <QTVertexManagerView.h>

Inheritance diagram for QTVertexManagerView:
[legend]
Collaboration diagram for QTVertexManagerView:
[legend]

Signals

void contentsChanged ()
 

Public Member Functions

void autoPopulateColumns ()
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
void displayLineworkEditor (uint04 vertex_index, PopupInfo info)
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
bool isEditable () const
 
bool isSpecialCallbackIndex (const QModelIndex &index) const
 
Model model () const
 
void onClicked (const QModelIndex &index, QRect rect)
 
void onHovered (const QModelIndex &index, QRect rect)
 
 QTVertexManagerView (const DynamicPointer< QTDesignObject > &root, QObject *parent=nullptr)
 
 QTVertexManagerView (QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
void setEditable (bool editable)
 
void setParameters (const Buffer< DesignParameter > &params, bool enable_edit, bool enable_primitive_edit)
 
void setParametersToGlobalLinework ()
 
void setParametersToGlobalLocations ()
 
void setParametersToLocalLocations ()
 
void setTarget (const DynamicPointer< QTDesignObject > &root)
 
void setUseGlobalTransform (bool toggle)
 
DynamicPointer< QTDesignObjecttarget () const
 
virtual ~QTVertexManagerView ()
 

Protected Slots

void deletedSlot ()
 
void updateSlot ()
 

Protected Member Functions

void cacheValues ()
 

Protected Attributes

Buffer< uint04m_cached_indices
 
bool m_has_primitive_edit_column = false
 
bool m_has_vertex_edit_column = false
 
bool m_is_editable = false
 
bool m_is_global = false
 
bool m_is_linework = false
 
uint04 m_num_of_decimal
 
Buffer< DesignParameterAccumulatorm_properties
 
DynamicPointer< QTDesignObjectm_root
 
UUID m_vertex_highlight_id = Constant<UUID>::Invalid
 

Detailed Description

A Qt compatible AbstractTableModel for showing properties around a series of Geometry Vertex objects.


Constructor & Destructor Documentation

◆ QTVertexManagerView() [1/2]

QTVertexManagerView ( QObject * parent = nullptr)

◆ QTVertexManagerView() [2/2]

QTVertexManagerView ( const DynamicPointer< QTDesignObject > & root,
QObject * parent = nullptr )

◆ ~QTVertexManagerView()

virtual ~QTVertexManagerView ( )
virtual

Member Function Documentation

◆ autoPopulateColumns()

void autoPopulateColumns ( )

◆ cacheValues()

void cacheValues ( )
protected

◆ columnCount()

int columnCount ( const QModelIndex & parent = QModelIndex()) const
override

◆ contentsChanged

void contentsChanged ( )
signal

◆ data()

QVariant data ( const QModelIndex & index,
int role = Qt::DisplayRole ) const
override

◆ deletedSlot

void deletedSlot ( )
protectedslot

◆ displayLineworkEditor()

void displayLineworkEditor ( uint04 vertex_index,
PopupInfo info )

◆ flags()

Qt::ItemFlags flags ( const QModelIndex & index) const
override

◆ headerData()

QVariant headerData ( int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole ) const
override

◆ isEditable()

bool isEditable ( ) const
inline

◆ isSpecialCallbackIndex()

bool isSpecialCallbackIndex ( const QModelIndex & index) const

◆ model()

Model model ( ) const

◆ onClicked()

void onClicked ( const QModelIndex & index,
QRect rect )

◆ onHovered()

void onHovered ( const QModelIndex & index,
QRect rect )

◆ rowCount()

int rowCount ( const QModelIndex & parent = QModelIndex()) const
override

◆ setData()

bool setData ( const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole )
override

◆ setEditable()

void setEditable ( bool editable)

◆ setParameters()

void setParameters ( const Buffer< DesignParameter > & params,
bool enable_edit,
bool enable_primitive_edit )

◆ setParametersToGlobalLinework()

void setParametersToGlobalLinework ( )

◆ setParametersToGlobalLocations()

void setParametersToGlobalLocations ( )

◆ setParametersToLocalLocations()

void setParametersToLocalLocations ( )

◆ setTarget()

void setTarget ( const DynamicPointer< QTDesignObject > & root)

◆ setUseGlobalTransform()

void setUseGlobalTransform ( bool toggle)
inline

◆ target()

DynamicPointer< QTDesignObject > target ( ) const

◆ updateSlot

void updateSlot ( )
protectedslot

Member Data Documentation

◆ m_cached_indices

Buffer<uint04> m_cached_indices
protected

◆ m_has_primitive_edit_column

bool m_has_primitive_edit_column = false
protected

◆ m_has_vertex_edit_column

bool m_has_vertex_edit_column = false
protected

◆ m_is_editable

bool m_is_editable = false
protected

◆ m_is_global

bool m_is_global = false
protected

◆ m_is_linework

bool m_is_linework = false
protected

◆ m_num_of_decimal

uint04 m_num_of_decimal
protected

◆ m_properties

Buffer<DesignParameterAccumulator> m_properties
protected

◆ m_root

DynamicPointer<QTDesignObject> m_root
protected

◆ m_vertex_highlight_id

UUID m_vertex_highlight_id = Constant<UUID>::Invalid
protected

The documentation for this class was generated from the following file: