PeriDyno 1.0.0
Loading...
Searching...
No Matches
Qt::QtNodeFlowScene Class Reference

Scene holds connections and nodes. More...

#include <QtNodeFlowScene.h>

Inheritance diagram for Qt::QtNodeFlowScene:
Collaboration diagram for Qt::QtNodeFlowScene:

Public Slots

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 addNode (QtNode &n)
 
void deleteNode (QtNode &n)
 
void moveNode (QtNode &n, const QPointF &newLocation)
 
void createQtNode (std::shared_ptr< dyno::Node > node)
 
void enableRendering (QtNode &n, bool checked)
 
void enablePhysics (QtNode &n, bool checked)
 
void showContextMenu (QtNode &n, const QPointF &pos)
 
void showHelper (QtNode &n)
 
void reorderAllNodes ()
 

Public Member Functions

 QtNodeFlowScene (std::shared_ptr< QtDataModelRegistry > registry, QObject *parent=Q_NULLPTR)
 
 QtNodeFlowScene (QObject *parent=Q_NULLPTR)
 
 ~QtNodeFlowScene ()
 
void addNodeByString (std::string NodeName)
 
void enableEditing ()
 
void disableEditing ()
 
void setDx (float dx)
 
void setDy (float dy)
 
float dx ()
 
float dy ()
 

Private Member Functions

void showThisNodeOnly (QtNode &n)
 
void showAllNodes ()
 
void activateThisNodeOnly (QtNode &n)
 
void activateAllNodes ()
 
void autoSyncAllNodes (bool autoSync)
 
void autoSyncAllDescendants (QtNode &n, bool autoSync)
 

Private Attributes

SceneGraphm_scene = nullptr
 
bool mEditingEnabled = true
 
float mDx = 100.0f
 
float mDy = 50.0f
 

Detailed Description

Scene holds connections and nodes.

Definition at line 14 of file QtNodeFlowScene.h.

Constructor & Destructor Documentation

◆ QtNodeFlowScene() [1/2]

Qt::QtNodeFlowScene::QtNodeFlowScene ( std::shared_ptr< QtDataModelRegistry > registry,
QObject * parent = Q_NULLPTR )

Definition at line 24 of file QtNodeFlowScene.cpp.

◆ QtNodeFlowScene() [2/2]

Qt::QtNodeFlowScene::QtNodeFlowScene ( QObject * parent = Q_NULLPTR)

Definition at line 29 of file QtNodeFlowScene.cpp.

Here is the call graph for this function:

◆ ~QtNodeFlowScene()

Qt::QtNodeFlowScene::~QtNodeFlowScene ( )

Definition at line 74 of file QtNodeFlowScene.cpp.

Member Function Documentation

◆ activateAllNodes()

void Qt::QtNodeFlowScene::activateAllNodes ( )
private

Definition at line 572 of file QtNodeFlowScene.cpp.

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

◆ activateThisNodeOnly()

void Qt::QtNodeFlowScene::activateThisNodeOnly ( QtNode & n)
private

Definition at line 550 of file QtNodeFlowScene.cpp.

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

◆ addNode

void Qt::QtNodeFlowScene::addNode ( QtNode & n)
slot

Definition at line 259 of file QtNodeFlowScene.cpp.

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

◆ addNodeByString()

void Qt::QtNodeFlowScene::addNodeByString ( std::string NodeName)

Definition at line 269 of file QtNodeFlowScene.cpp.

Here is the call graph for this function:

◆ autoSyncAllDescendants()

void Qt::QtNodeFlowScene::autoSyncAllDescendants ( QtNode & n,
bool autoSync )
private

Definition at line 601 of file QtNodeFlowScene.cpp.

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

◆ autoSyncAllNodes()

void Qt::QtNodeFlowScene::autoSyncAllNodes ( bool autoSync)
private

Definition at line 585 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ createNodeGraphView

void Qt::QtNodeFlowScene::createNodeGraphView ( )
slot

create a QT-based view for the active scene graph.

Definition at line 79 of file QtNodeFlowScene.cpp.

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

◆ createQtNode

void Qt::QtNodeFlowScene::createQtNode ( std::shared_ptr< dyno::Node > node)
slot

Definition at line 355 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ deleteNode

void Qt::QtNodeFlowScene::deleteNode ( QtNode & n)
slot

Definition at line 343 of file QtNodeFlowScene.cpp.

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

◆ disableEditing()

void Qt::QtNodeFlowScene::disableEditing ( )

Definition at line 327 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ dx()

float Qt::QtNodeFlowScene::dx ( )
inline

Definition at line 35 of file QtNodeFlowScene.h.

Here is the caller graph for this function:

◆ dy()

float Qt::QtNodeFlowScene::dy ( )
inline

Definition at line 36 of file QtNodeFlowScene.h.

Here is the caller graph for this function:

◆ enableEditing()

void Qt::QtNodeFlowScene::enableEditing ( )

Definition at line 311 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ enablePhysics

void Qt::QtNodeFlowScene::enablePhysics ( QtNode & n,
bool checked )
slot

Definition at line 395 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ enableRendering

void Qt::QtNodeFlowScene::enableRendering ( QtNode & n,
bool checked )
slot

Definition at line 385 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ fieldUpdated

void Qt::QtNodeFlowScene::fieldUpdated ( dyno::FBase * field,
int status )
slot

Definition at line 236 of file QtNodeFlowScene.cpp.

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

◆ moveNode

void Qt::QtNodeFlowScene::moveNode ( QtNode & n,
const QPointF & newLocation )
slot

Definition at line 249 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ reorderAllNodes

void Qt::QtNodeFlowScene::reorderAllNodes ( )
slot

Auto layout for the node graph

Definition at line 636 of file QtNodeFlowScene.cpp.

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

◆ setDx()

void Qt::QtNodeFlowScene::setDx ( float dx)
inline

Definition at line 32 of file QtNodeFlowScene.h.

Here is the call graph for this function:

◆ setDy()

void Qt::QtNodeFlowScene::setDy ( float dy)
inline

Definition at line 33 of file QtNodeFlowScene.h.

Here is the call graph for this function:

◆ showAllNodes()

void Qt::QtNodeFlowScene::showAllNodes ( )
private

Definition at line 537 of file QtNodeFlowScene.cpp.

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

◆ showContextMenu

void Qt::QtNodeFlowScene::showContextMenu ( QtNode & n,
const QPointF & pos )
slot

Definition at line 405 of file QtNodeFlowScene.cpp.

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

◆ showHelper

void Qt::QtNodeFlowScene::showHelper ( QtNode & n)
slot

Definition at line 631 of file QtNodeFlowScene.cpp.

Here is the caller graph for this function:

◆ showThisNodeOnly()

void Qt::QtNodeFlowScene::showThisNodeOnly ( QtNode & n)
private

Definition at line 515 of file QtNodeFlowScene.cpp.

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

◆ updateNodeGraphView

void Qt::QtNodeFlowScene::updateNodeGraphView ( )
slot

Update the view only for the active scene graph, the data model will not be changed.

Definition at line 225 of file QtNodeFlowScene.cpp.

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

Member Data Documentation

◆ m_scene

SceneGraph* Qt::QtNodeFlowScene::m_scene = nullptr
private

Definition at line 83 of file QtNodeFlowScene.h.

◆ mDx

float Qt::QtNodeFlowScene::mDx = 100.0f
private

Definition at line 87 of file QtNodeFlowScene.h.

◆ mDy

float Qt::QtNodeFlowScene::mDy = 50.0f
private

Definition at line 88 of file QtNodeFlowScene.h.

◆ mEditingEnabled

bool Qt::QtNodeFlowScene::mEditingEnabled = true
private

Definition at line 85 of file QtNodeFlowScene.h.


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