modified v2.0 md
add some images as comment
This commit is contained in:
parent
98acd52e25
commit
c1c1cf1e38
27
README.md
27
README.md
@ -4,6 +4,14 @@ STNodeEditor 是一个轻量且功能强大的节点编辑器 使用方式非常
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
项目主页 (Project home): [DebugST.github.io/DotNet_WinForm_NodeEditor](https://DebugST.github.io/DotNet_WinForm_NodeEditor) (简体中文, English)
|
||||||
|
|
||||||
|
教程文档: [DebugST.github.io/DotNet_WinForm_NodeEditor/doc_cn.html](https://DebugST.github.io/DotNet_WinForm_NodeEditor/doc_cn.html)
|
||||||
|
|
||||||
|
Tutorials and API: [DebugST.github.io/DotNet_WinForm_NodeEditor/doc_en.html](https://DebugST.github.io/DotNet_WinForm_NodeEditor/doc_en.html)
|
||||||
|
|
||||||
|
Mail: (2212233137@qq.com)
|
||||||
|
|
||||||
# STNodeEditor
|
# STNodeEditor
|
||||||
|
|
||||||

|

|
||||||
@ -17,9 +25,9 @@ STNodeEditor 是一个轻量且功能强大的节点编辑器 使用方式非常
|
|||||||
* 中键拖动移动画布 (若笔记本触摸板支持 可二指拖动)
|
* 中键拖动移动画布 (若笔记本触摸板支持 可二指拖动)
|
||||||
* CTRL+鼠标滚轮 缩放画布
|
* CTRL+鼠标滚轮 缩放画布
|
||||||
|
|
||||||
注:节点Body区域进行的操作编辑器不会响应 因为在节点客户区内部的操作将被转换为节点的事件
|
__注:节点Body区域进行的操作编辑器不会响应 因为在节点客户区内部的操作将被转换为节点的事件__
|
||||||
|
|
||||||
因为作者将一个节点视为一个`Form` 而编辑器容器则为`Desktop` 开发者可以像开发`WinForm`程序一样去开发一个节点
|
__因为作者将一个节点视为一个`Form` 而编辑器容器则为`Desktop` 开发者可以像开发`WinForm`程序一样去开发一个节点__
|
||||||
|
|
||||||
# STNodeHub
|
# STNodeHub
|
||||||
|
|
||||||
@ -29,7 +37,7 @@ STNodeEditor 是一个轻量且功能强大的节点编辑器 使用方式非常
|
|||||||
|
|
||||||
HUB的输入输出默认为`object`类型 当一个连接被连入时候将会自动更换数据类型并增加新行
|
HUB的输入输出默认为`object`类型 当一个连接被连入时候将会自动更换数据类型并增加新行
|
||||||
|
|
||||||
注:仅`STNodeHub`可以修改连接点的数据类型 因为相应字段被`internal`标记 而作为第三方扩展的STNode中是无法修改已添加连接点的数据类型的
|
__注:仅`STNodeHub`可以修改连接点的数据类型 因为相应字段被`internal`标记 而作为第三方扩展的STNode中是无法修改已添加连接点的数据类型的__
|
||||||
|
|
||||||
## STNodeTreeView
|
## STNodeTreeView
|
||||||
|
|
||||||
@ -41,7 +49,7 @@ HUB的输入输出默认为`object`类型 当一个连接被连入时候将会
|
|||||||
|
|
||||||
通过使用`STNodeAttribute`标记继承的`STNode`可直接设置需要在`STNodeTreeView`中显示的路径 以及希望在`STNodePropertyGrid`中显示的信息
|
通过使用`STNodeAttribute`标记继承的`STNode`可直接设置需要在`STNodeTreeView`中显示的路径 以及希望在`STNodePropertyGrid`中显示的信息
|
||||||
|
|
||||||
注:若希望节点能够在`STNodeTreeView`中显示 必须使用`STNodeAttribute`标记`STNode`子类
|
__注:若希望节点能够在`STNodeTreeView`中显示 必须使用`STNodeAttribute`标记`STNode`子类__
|
||||||
|
|
||||||
# STNodePropertyGrid
|
# STNodePropertyGrid
|
||||||
|
|
||||||
@ -49,7 +57,9 @@ HUB的输入输出默认为`object`类型 当一个连接被连入时候将会
|
|||||||
|
|
||||||
若`STNode`中的属性被`STNodePropertyAttribute`标记则会在`STNodePropertyGrid`中显示 默认情况下支持`int,float,double,bool,string,enum`以及上述数据类型的`Array` 若希望显示的属性数据类型不被支持 可以对`DescriptorType`进行扩展重写 详细请参考DEMO
|
若`STNode`中的属性被`STNodePropertyAttribute`标记则会在`STNodePropertyGrid`中显示 默认情况下支持`int,float,double,bool,string,enum`以及上述数据类型的`Array` 若希望显示的属性数据类型不被支持 可以对`DescriptorType`进行扩展重写 详细请参考DEMO
|
||||||
|
|
||||||
可以看到在`STNodePropertyGrid`的面板中可以显示节点的一些信息 作者认为提供给大家的是一套框架 大家可以基于这套框架打造一套自己的框架 而为框架编写节点的`Coder`应该有权利选择是否留下个人信息
|
可以看到在`STNodePropertyGrid`的面板中可以显示节点的一些信息 作者认为提供给大家的是一套框架 大家可以基于这套框架打造一套自己的框架
|
||||||
|
|
||||||
|
__而为框架编写节点的`Coder`应该有权利选择是否留下个人信息__
|
||||||
|
|
||||||
# STNodeEditorPannel
|
# STNodeEditorPannel
|
||||||
|
|
||||||
@ -59,13 +69,6 @@ HUB的输入输出默认为`object`类型 当一个连接被连入时候将会
|
|||||||
|
|
||||||
可以通过拖动手柄控制布局
|
可以通过拖动手柄控制布局
|
||||||
|
|
||||||
|
|
||||||
更多细节请参考文档
|
|
||||||
|
|
||||||
项目主页: [DebugST.github.io/DotNet_WinForm_NodeEditor](https://DebugST.github.io/DotNet_WinForm_NodeEditor)
|
|
||||||
|
|
||||||
开发文档: [DebugST.github.io/DotNet_WinForm_NodeEditor/doc.html](https://DebugST.github.io/DotNet_WinForm_NodeEditor/doc.html)
|
|
||||||
|
|
||||||
## 关于作者
|
## 关于作者
|
||||||
* Github: [DebugST](https://github.com/DebugST/)
|
* Github: [DebugST](https://github.com/DebugST/)
|
||||||
* Blog: [Crystal_lz](http://st233.com)
|
* Blog: [Crystal_lz](http://st233.com)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user