![]() |
PeriDyno 1.2.1
|
#include <WtNode.h>
Public Member Functions | |
| WtNodeGeometry (std::unique_ptr< WtNodeDataModel > const &dataModel, Wt::WPaintDevice *paintDevice) | |
| ~WtNodeGeometry () | |
| unsigned int | height () const |
| void | setHeight (unsigned int h) |
| unsigned int | width () const |
| void | setWidth (unsigned int w) |
| unsigned int | entryHeight () const |
| void | setEntryHeight (unsigned int h) |
| unsigned int | entryWidth () const |
| void | setEntryWidth (unsigned int w) |
| unsigned int | hotkeyWidth () const |
| void | setHotkeyWidth (unsigned int w) |
| unsigned int | hotkeyIncline () const |
| void | setHotkeyIncline (unsigned int inc) |
| unsigned int | hotkeyOffset () const |
| void | setHotkeyOffset (unsigned int offset) |
| unsigned int | spacing () const |
| unsigned int | captionHeightSpacing () const |
| void | setSpacing (unsigned int s) |
| bool | hovered () const |
| void | setHovered (unsigned int h) |
| unsigned int | nSources () const |
| unsigned int | nSinks () const |
| Wt::WPointF const & | draggingPos () const |
| void | setDraggingPosition (Wt::WPointF const &pos) |
| void | ShowTips () const |
| void | HideTips () const |
| bool | getPortTipsState () const |
| void | ShowPortTips () const |
| void | HidePortTips () const |
| std::string | strFormat (std::string str) const |
| Wt::WRectF | entryBoundingRect () const |
| Wt::WRectF | boundingRect () const |
| void | recalculateSize () const |
| double | calculateWidth (std::string) const |
| double | calculateWidth (int num) const |
| Wt::WPointF | portScenePosition (PortIndex index, PortType portType, Wt::WTransform const &t=Wt::WTransform()) const |
| PortIndex | checkHitScenePoint (PortType portType, Wt::WPointF point, Wt::WTransform const &t=Wt::WTransform()) const |
| PortIndex | hoverHitScenePoint (PortType portType, Wt::WPointF point, Wt::WTransform const &t=Wt::WTransform()) const |
| PortIndex | hoverHitPortArea (PortType portType, Wt::WPointF const scenePoint, Wt::WTransform const &sceneTransform, WtNodeGeometry const &geom, WtNodeDataModel const *mode, Wt::WFontMetrics const &metrics) const |
| PortIndex | findHitPort (PortType portType, Wt::WPointF const scenePoint, Wt::WTransform const &sceneTransform, WtNodeGeometry const &geom, WtNodeDataModel const *model) const |
| bool | checkHitHotKey0 (Wt::WPointF point, Wt::WTransform const &t=Wt::WTransform()) const |
| bool | checkHitHotKey1 (Wt::WPointF point, Wt::WTransform const &t=Wt::WTransform()) const |
| Wt::WRectF | resizeRect () const |
| Wt::WPointF | widgetPosition () const |
| int | equivalentWidgetHeight () const |
| unsigned int | validationHeight () const |
| unsigned int | validationWidth () const |
| unsigned int | captionHeight () const |
| unsigned int | captionWidth () const |
Public Attributes | |
| PortType | hoverport_type |
| PortIndex | hoverport_id |
| bool * | isPortTipsShow |
| bool * | isNodeTipsShow |
Private Member Functions | |
| unsigned int | portWidth (PortType portType) const |
Private Attributes | |
| unsigned int | _width |
| unsigned int | _height |
| unsigned int | _entryWidth |
| unsigned int | _inputPortWidth |
| unsigned int | _outputPortWidth |
| unsigned int | _entryHeight |
| unsigned int | _spacing |
| unsigned int | _captionHeightSpacing |
| unsigned int | _hotkeyWidth |
| unsigned int | _hotkeyIncline |
| unsigned int | _hotkeyOffset |
| bool | _hovered |
| unsigned int | _nSources |
| unsigned int | _nSinks |
| Wt::WPointF | _draggingPos |
| std::unique_ptr< WtNodeDataModel > const & | _dataModel |
| Wt::WFontMetrics | _fontMetrics |
| WtNodeGeometry::WtNodeGeometry | ( | std::unique_ptr< WtNodeDataModel > const & | dataModel, |
| Wt::WPaintDevice * | paintDevice ) |
| WtNodeGeometry::~WtNodeGeometry | ( | ) |
Definition at line 37 of file WtNode.cpp.
| Wt::WRectF WtNodeGeometry::boundingRect | ( | ) | const |
| double WtNodeGeometry::calculateWidth | ( | int | num | ) | const |
| double WtNodeGeometry::calculateWidth | ( | std::string | str | ) | const |
Definition at line 539 of file WtNode.cpp.


| unsigned int WtNodeGeometry::captionHeight | ( | ) | const |
Definition at line 516 of file WtNode.cpp.


|
inline |
| unsigned int WtNodeGeometry::captionWidth | ( | ) | const |
Definition at line 526 of file WtNode.cpp.


| bool WtNodeGeometry::checkHitHotKey0 | ( | Wt::WPointF | point, |
| Wt::WTransform const & | t = Wt::WTransform() ) const |
| bool WtNodeGeometry::checkHitHotKey1 | ( | Wt::WPointF | point, |
| Wt::WTransform const & | t = Wt::WTransform() ) const |
|
inline |
| Wt::WRectF WtNodeGeometry::entryBoundingRect | ( | ) | const |
Definition at line 211 of file WtNode.cpp.
| int WtNodeGeometry::equivalentWidgetHeight | ( | ) | const |
| PortIndex WtNodeGeometry::findHitPort | ( | PortType | portType, |
| Wt::WPointF const | scenePoint, | ||
| Wt::WTransform const & | sceneTransform, | ||
| WtNodeGeometry const & | geom, | ||
| WtNodeDataModel const * | model ) const |

| bool WtNodeGeometry::getPortTipsState | ( | ) | const |
Definition at line 78 of file WtNode.cpp.
|
inline |
| void WtNodeGeometry::HidePortTips | ( | ) | const |
Definition at line 70 of file WtNode.cpp.
| void WtNodeGeometry::HideTips | ( | ) | const |
Definition at line 63 of file WtNode.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
| PortIndex WtNodeGeometry::hoverHitPortArea | ( | PortType | portType, |
| Wt::WPointF const | scenePoint, | ||
| Wt::WTransform const & | sceneTransform, | ||
| WtNodeGeometry const & | geom, | ||
| WtNodeDataModel const * | mode, | ||
| Wt::WFontMetrics const & | metrics ) const |

| unsigned int WtNodeGeometry::nSinks | ( | ) | const |
Definition at line 112 of file WtNode.cpp.
| unsigned int WtNodeGeometry::nSources | ( | ) | const |
Definition at line 107 of file WtNode.cpp.
| Wt::WPointF WtNodeGeometry::portScenePosition | ( | PortIndex | index, |
| PortType | portType, | ||
| Wt::WTransform const & | t = Wt::WTransform() ) const |
Definition at line 270 of file WtNode.cpp.


|
private |
Definition at line 552 of file WtNode.cpp.


| void WtNodeGeometry::recalculateSize | ( | ) | const |
Definition at line 233 of file WtNode.cpp.


| Wt::WRectF WtNodeGeometry::resizeRect | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void WtNodeGeometry::ShowPortTips | ( | ) | const |
Definition at line 80 of file WtNode.cpp.
| void WtNodeGeometry::ShowTips | ( | ) | const |
Definition at line 42 of file WtNode.cpp.
| std::string WtNodeGeometry::strFormat | ( | std::string | str | ) | const |
| unsigned int WtNodeGeometry::validationHeight | ( | ) | const |
| unsigned int WtNodeGeometry::validationWidth | ( | ) | const |
Definition at line 184 of file WtNode.cpp.


| Wt::WPointF WtNodeGeometry::widgetPosition | ( | ) | const |
|
inline |
|
private |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |