Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
SnapshotTableModel Class Reference

#include <SnapshotTableModel.h>

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

Public Member Functions

 SnapshotTableModel (QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent) const override
 
int columnCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
void setSnapshots (const std::vector< ObjectSnapshot > &snaps)
 

Detailed Description

Definition at line 8 of file SnapshotTableModel.h.

Constructor & Destructor Documentation

◆ SnapshotTableModel()

SnapshotTableModel::SnapshotTableModel ( QObject *  parent = nullptr)
explicit

Definition at line 4 of file SnapshotTableModel.cpp.

Member Function Documentation

◆ columnCount()

int SnapshotTableModel::columnCount ( const QModelIndex &  parent) const
override

Definition at line 16 of file SnapshotTableModel.cpp.

◆ data()

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

Definition at line 20 of file SnapshotTableModel.cpp.

◆ headerData()

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

Definition at line 37 of file SnapshotTableModel.cpp.

◆ rowCount()

int SnapshotTableModel::rowCount ( const QModelIndex &  parent) const
override

Definition at line 12 of file SnapshotTableModel.cpp.

◆ setSnapshots()

void SnapshotTableModel::setSnapshots ( const std::vector< ObjectSnapshot > &  snaps)

Definition at line 6 of file SnapshotTableModel.cpp.


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