PeriDyno 1.0.0
Loading...
Searching...
No Matches
WNodeDataModel Class Reference

#include <WSceneDataModel.h>

Inheritance diagram for WNodeDataModel:
Collaboration diagram for WNodeDataModel:

Classes

struct  NodeItem
 

Public Member Functions

 WNodeDataModel ()
 
void setScene (std::shared_ptr< dyno::SceneGraph > scene)
 
virtual Wt::WModelIndex parent (const Wt::WModelIndex &index) const
 
virtual Wt::WModelIndex index (int row, int column, const Wt::WModelIndex &parent=Wt::WModelIndex()) const
 
virtual int columnCount (const Wt::WModelIndex &parent=Wt::WModelIndex()) const
 
virtual int rowCount (const Wt::WModelIndex &parent=Wt::WModelIndex()) const
 
virtual Wt::cpp17::any data (const Wt::WModelIndex &index, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
 
virtual Wt::cpp17::any headerData (int section, Wt::Orientation orientation=Wt::Orientation::Horizontal, Wt::ItemDataRole role=Wt::ItemDataRole::Display) const
 
std::shared_ptr< dyno::NodegetNode (const Wt::WModelIndex &index)
 

Private Attributes

std::shared_ptr< dyno::SceneGraphmScene
 
std::vector< NodeItem * > mNodeList
 

Detailed Description

Definition at line 20 of file WSceneDataModel.h.

Constructor & Destructor Documentation

◆ WNodeDataModel()

WNodeDataModel::WNodeDataModel ( )

Definition at line 5 of file WSceneDataModel.cpp.

Member Function Documentation

◆ columnCount()

int WNodeDataModel::columnCount ( const Wt::WModelIndex & parent = Wt::WModelIndex()) const
virtual

Definition at line 49 of file WSceneDataModel.cpp.

Here is the call graph for this function:

◆ data()

Wt::cpp17::any WNodeDataModel::data ( const Wt::WModelIndex & index,
Wt::ItemDataRole role = Wt::ItemDataRole::Display ) const
virtual

Definition at line 61 of file WSceneDataModel.cpp.

Here is the call graph for this function:

◆ getNode()

std::shared_ptr< dyno::Node > WNodeDataModel::getNode ( const Wt::WModelIndex & index)

Definition at line 113 of file WSceneDataModel.cpp.

Here is the call graph for this function:

◆ headerData()

Wt::cpp17::any WNodeDataModel::headerData ( int section,
Wt::Orientation orientation = Wt::Orientation::Horizontal,
Wt::ItemDataRole role = Wt::ItemDataRole::Display ) const
virtual

Definition at line 97 of file WSceneDataModel.cpp.

◆ index()

Wt::WModelIndex WNodeDataModel::index ( int row,
int column,
const Wt::WModelIndex & parent = Wt::WModelIndex() ) const
virtual

Definition at line 40 of file WSceneDataModel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parent()

Wt::WModelIndex WNodeDataModel::parent ( const Wt::WModelIndex & index) const
virtual

Definition at line 35 of file WSceneDataModel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowCount()

int WNodeDataModel::rowCount ( const Wt::WModelIndex & parent = Wt::WModelIndex()) const
virtual

Definition at line 54 of file WSceneDataModel.cpp.

Here is the call graph for this function:

◆ setScene()

void WNodeDataModel::setScene ( std::shared_ptr< dyno::SceneGraph > scene)

Definition at line 10 of file WSceneDataModel.cpp.

Member Data Documentation

◆ mNodeList

std::vector<NodeItem*> WNodeDataModel::mNodeList
private

Definition at line 57 of file WSceneDataModel.h.

◆ mScene

std::shared_ptr<dyno::SceneGraph> WNodeDataModel::mScene
private

Definition at line 44 of file WSceneDataModel.h.


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