Skip to content

shapeworks::LandmarkTableModel

Inherits from QAbstractTableModel

Public Slots

Name
void new_landmark()
create a new landmark
void handle_click(const QModelIndex & index)
Handler for when table cells are clicked.
void handle_double_click(const QModelIndex & index)
Handler for when table cells are double clicked.
void handle_header_click(int index)
Handle header click.

Public Functions

Name
LandmarkTableModel(QObject * parent =0)
Constructor.
virtual ~LandmarkTableModel()
Destructor.
void set_session(QSharedPointer< Session > session)
Attach to a session.
void store_landmarks()
Store landmarks back to project.
void set_active_domain(int domain)
Set the currently active domain.
void update_table()
Update the table of landmarks from the project.
void update_cells()
Update table cells.
void remove_rows(const std::vector< int > & rows)
Remove landmarks with specified row indices.
void toggle_visible()
Toggle tri-state button for visibility in horizontal header.
void set_placing_landmark(int row)
Set the currently placing landmark.
void delete_landmarks(const QModelIndexList & list)
delete the selected landmarks
int rowCount(const QModelIndex & index) const override
QAbstractTableModel::rowCount implementation.
int columnCount(const QModelIndex & index) const override
QAbstractTableModel::columnCount implementation.
QVariant data(const QModelIndex & index, int role) const override
QAbstractTableModel::data implementation.
bool setData(const QModelIndex & index, const QVariant & value, int role) override
QAbstractTableModel::setData implementation.
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
QAbstractTableModel::headerData implementation.
Qt::ItemFlags flags(const QModelIndex & index) const override
QAbstractTableModel::flags implementation.

Public Slots Documentation

slot new_landmark

cpp void new_landmark()

create a new landmark

slot handle_click

cpp void handle_click( const QModelIndex & index )

Handler for when table cells are clicked.

slot handle_double_click

cpp void handle_double_click( const QModelIndex & index )

Handler for when table cells are double clicked.

slot handle_header_click

cpp void handle_header_click( int index )

Handle header click.

Public Functions Documentation

function LandmarkTableModel

cpp LandmarkTableModel( QObject * parent =0 )

Constructor.

function ~LandmarkTableModel

cpp virtual ~LandmarkTableModel()

Destructor.

function set_session

cpp void set_session( QSharedPointer< Session > session )

Attach to a session.

function store_landmarks

cpp void store_landmarks()

Store landmarks back to project.

function set_active_domain

cpp void set_active_domain( int domain )

Set the currently active domain.

function update_table

cpp void update_table()

Update the table of landmarks from the project.

function update_cells

cpp void update_cells()

Update table cells.

function remove_rows

cpp void remove_rows( const std::vector< int > & rows )

Remove landmarks with specified row indices.

function toggle_visible

cpp void toggle_visible()

Toggle tri-state button for visibility in horizontal header.

function set_placing_landmark

cpp void set_placing_landmark( int row )

Set the currently placing landmark.

function delete_landmarks

cpp void delete_landmarks( const QModelIndexList & list )

delete the selected landmarks

function rowCount

cpp int rowCount( const QModelIndex & index ) const override

QAbstractTableModel::rowCount implementation.

function columnCount

cpp int columnCount( const QModelIndex & index ) const override

QAbstractTableModel::columnCount implementation.

function data

cpp QVariant data( const QModelIndex & index, int role ) const override

QAbstractTableModel::data implementation.

function setData

cpp bool setData( const QModelIndex & index, const QVariant & value, int role ) override

QAbstractTableModel::setData implementation.

function headerData

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

QAbstractTableModel::headerData implementation.

function flags

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

QAbstractTableModel::flags implementation.


Updated on 2026-03-31 at 16:02:10 +0000