![]() |
PeriDyno 1.2.1
|
#include <WtNodeFlowScene.h>


Public Member Functions | |
| WtNodeFlowScene (std::shared_ptr< WtDataModelRegistry > registry, Wt::WPainter *painter) | |
| WtNodeFlowScene (Wt::WPainter *painter, std::shared_ptr< dyno::SceneGraph > scene, int selectType, int selectNum) | |
| ~WtNodeFlowScene () | |
| void | addNode (WtNode &n) |
| void | addNodeByString (std::string NodeName) |
| void | enableEditing () |
| void | disableEditing () |
| void | setDx (float dx) |
| void | setDy (float dy) |
| float | dx () |
| float | dy () |
| void | createNodeGraphView () |
| create a QT-based view for the active scene graph. | |
| void | updateNodeGraphView () |
| Update the view only for the active scene graph, the data model will not be changed. | |
| void | fieldUpdated (dyno::FBase *field, int status) |
| void | createWtNode (std::shared_ptr< dyno::Node > node) |
| void | enableRendering (WtNode &n, bool checked) |
| void | enablePhysics (WtNode &n, bool checked) |
| void | showContextMenu (WtNode &n, const Wt::WPointF &pos) |
| void | showHelper (WtNode &n) |
| void | reorderAllNodes () |
Public Member Functions inherited from WtFlowScene | |
| WtFlowScene () | |
| WtFlowScene (std::shared_ptr< WtDataModelRegistry > registry) | |
| ~WtFlowScene () | |
| std::shared_ptr< WtConnection > | createConnection (PortType connectedPort, WtNode &node, PortIndex portIndex, Wt::WPainter *painter) |
| std::shared_ptr< WtConnection > | createConnection (WtNode &nodeIn, PortIndex portIndexIn, WtNode &nodeOut, PortIndex portIndexOut, Wt::WPainter *painter, TypeConverter const &converter=TypeConverter{}) |
| void | deleteConnection (WtConnection &connection) |
| WtNode & | createNode (std::unique_ptr< WtNodeDataModel > &&dataModel, Wt::WPainter *painter, int selectType) |
| WtDataModelRegistry & | registry () const |
| void | setRegistry (std::shared_ptr< WtDataModelRegistry > registry) |
| void | iterateOverNodes (std::function< void(WtNode *)> const &visitor) |
| void | iterateOverNodeData (std::function< void(WtNodeDataModel *)> const &visitor) |
| void | iterateOverNodeDataDependentOrder (std::function< void(WtNodeDataModel *)> const &visitor) |
| Wt::WPointF | getNodePosition (WtNode const &node) const |
| void | setNodePosition (WtNode &node, Wt::WPointF const &pos) const |
| void | removeNode (WtNode &node) |
| void | clearNode (WtNode &node) |
| std::map< dyno::ObjectId, WtNode * > | getNodeMap () |
| std::unordered_map< Wt::Guid, std::unique_ptr< WtNode > > const & | nodes () const |
| std::unordered_map< Wt::Guid, std::shared_ptr< WtConnection > > const & | connections () const |
| std::vector< WtNode * > | allNodes () const |
| std::vector< WtNode * > | selectedNodes () const |
| void | clearScene () |
| void | save () const |
| void | load () |
Private Member Functions | |
| void | showThisNodeOnly (WtNode &n) |
| void | showAllNodes () |
| void | activateThisNodeOnly (WtNode &n) |
| void | activateAllNodes () |
| void | autoSyncAllNodes (bool autoSync) |
| void | autoSyncAllDescendants (WtNode &n, bool autoSync) |
Private Attributes | |
| SceneGraph * | m_scene = nullptr |
| bool | mEditingEnabled = true |
| Wt::WPainter * | _painter |
| float | mDx = 100.0f |
| float | mDy = 50.0f |
| std::shared_ptr< dyno::SceneGraph > | mScene = nullptr |
| int | _selectType |
| int | _selectNum |
| bool | _isSelectedPoint |
| Wt::WPointF | _mousePoint = Wt::WPointF(0, 0) |
Additional Inherited Members | |
Public Attributes inherited from WtFlowScene | |
| std::map< dyno::ObjectId, WtNode * > | OutNodeMap |
Definition at line 16 of file WtNodeFlowScene.h.
| WtNodeFlowScene::WtNodeFlowScene | ( | std::shared_ptr< WtDataModelRegistry > | registry, |
| Wt::WPainter * | painter ) |

| WtNodeFlowScene::WtNodeFlowScene | ( | Wt::WPainter * | painter, |
| std::shared_ptr< dyno::SceneGraph > | scene, | ||
| int | selectType, | ||
| int | selectNum ) |
| WtNodeFlowScene::~WtNodeFlowScene | ( | ) |
Definition at line 21 of file WtNodeFlowScene.cpp.
|
private |
|
private |
| void WtNodeFlowScene::addNode | ( | WtNode & | n | ) |
| void WtNodeFlowScene::addNodeByString | ( | std::string | NodeName | ) |
|
private |
|
private |
| void WtNodeFlowScene::createNodeGraphView | ( | ) |
create a QT-based view for the active scene graph.
Definition at line 23 of file WtNodeFlowScene.cpp.


| void WtNodeFlowScene::createWtNode | ( | std::shared_ptr< dyno::Node > | node | ) |
| void WtNodeFlowScene::disableEditing | ( | ) |
Definition at line 214 of file WtNodeFlowScene.cpp.


|
inline |
|
inline |
| void WtNodeFlowScene::enableEditing | ( | ) |
Definition at line 198 of file WtNodeFlowScene.cpp.


| void WtNodeFlowScene::enablePhysics | ( | WtNode & | n, |
| bool | checked ) |
Definition at line 335 of file WtNodeFlowScene.cpp.


| void WtNodeFlowScene::enableRendering | ( | WtNode & | n, |
| bool | checked ) |
Definition at line 324 of file WtNodeFlowScene.cpp.


| void WtNodeFlowScene::fieldUpdated | ( | dyno::FBase * | field, |
| int | status ) |
| void WtNodeFlowScene::reorderAllNodes | ( | ) |
Auto layout for the node graph
Definition at line 470 of file WtNodeFlowScene.cpp.

|
inline |
|
inline |
|
private |
| void WtNodeFlowScene::showContextMenu | ( | WtNode & | n, |
| const Wt::WPointF & | pos ) |
Definition at line 345 of file WtNodeFlowScene.cpp.
| void WtNodeFlowScene::showHelper | ( | WtNode & | n | ) |
Definition at line 465 of file WtNodeFlowScene.cpp.
|
private |
| void WtNodeFlowScene::updateNodeGraphView | ( | ) |
Update the view only for the active scene graph, the data model will not be changed.
Definition at line 174 of file WtNodeFlowScene.cpp.


|
private |
Definition at line 94 of file WtNodeFlowScene.h.
|
private |
Definition at line 95 of file WtNodeFlowScene.h.
|
private |
Definition at line 82 of file WtNodeFlowScene.h.
|
private |
Definition at line 92 of file WtNodeFlowScene.h.
|
private |
Definition at line 91 of file WtNodeFlowScene.h.
|
private |
Definition at line 78 of file WtNodeFlowScene.h.
|
private |
Definition at line 84 of file WtNodeFlowScene.h.
|
private |
Definition at line 85 of file WtNodeFlowScene.h.
|
private |
Definition at line 80 of file WtNodeFlowScene.h.
|
private |
Definition at line 87 of file WtNodeFlowScene.h.