\chinese TCP 贡献模型 此接口提供在 AuboScope 中添加、更新和删除 TCP 的功能。
更多...
#include <tcp_contribution_model.h>
|
| | TcpContributionModel (TcpContributionModel &f) |
| | TcpContributionModel (TcpContributionModel &&f) |
| virtual | ~TcpContributionModel () |
| TCPPtr | addTcp (const std::string &idKey, const std::string &suggested_name, const std::vector< double > &offset) |
| | TCP \chinese 向当前AuboScope安装中添加一个TCP。添加后终端用户可选择该TCP,但不可修改。
|
| TCPPtr | getTcp (const std::string &idKey) |
| | TCP \chinese 返回此前由此AuboCap使用相同idKey添加的TCP。
|
| void | updateTcp (const std::string &idKey, const std::vector< double > &newOffset) |
| | \chinese 更新此AuboCap已添加TCP的偏移量。
|
| void | removeTcp (const std::string &idKey) |
| | \chinese 从此AuboCap中移除已添加的TCP。使用该TCP的程序节点将变为未定义。
|
\chinese TCP 贡献模型 此接口提供在 AuboScope 中添加、更新和删除 TCP 的功能。
注意:此接口只能在安装贡献中使用。 \endchinese \english TcpContributionModel This interface provides functionality for adding, updating and removing TCPs in AuboScope.
Note: This interface must only be used in an installation contribution. \endenglish
在文件 tcp_contribution_model.h 第 27 行定义.
◆ TcpContributionModel() [1/3]
| arcs::aubo_scope::TcpContributionModel::TcpContributionModel |
( |
TcpContributionModel & | f | ) |
|
◆ TcpContributionModel() [2/3]
| arcs::aubo_scope::TcpContributionModel::TcpContributionModel |
( |
TcpContributionModel && | f | ) |
|
◆ ~TcpContributionModel()
| virtual arcs::aubo_scope::TcpContributionModel::~TcpContributionModel |
( |
| ) |
|
|
virtual |
◆ TcpContributionModel() [3/3]
| arcs::aubo_scope::TcpContributionModel::TcpContributionModel |
( |
| ) |
|
|
private |
◆ addTcp()
| TCPPtr arcs::aubo_scope::TcpContributionModel::addTcp |
( |
const std::string & | idKey, |
|
|
const std::string & | suggested_name, |
|
|
const std::vector< double > & | offset ) |
TCP \chinese 向当前AuboScope安装中添加一个TCP。添加后终端用户可选择该TCP,但不可修改。
- 参数
-
| idKey | 用于标识此TCP的键。该键仅对此AuboCap有效。 |
| suggested_name | 建议的TCP名称。 |
| offset | TCP相对于工具输出法兰的偏移量。 |
- 返回
- 在AuboScope中创建并注册的TCP。
- 异常
-
| TCPAlreadyAddedException | 如果已使用相同idKey添加过TCP。 |
| IllegalTCPNameException | 如果建议的名称不匹配所需正则表达式。 |
| IllegalArgumentException | 如果偏移量超出有效范围。 \endchinese \english Add a TCP to the current AuboScope installation. This makes it selectable by the end user. The TCP is not modifiable by the end user. |
- 参数
-
| idKey | The key to identify this TCP by. |
| suggested_name | Suggested name for the TCP. |
| offset | The offset of the TCP with respect to the tool output flange. |
- 返回
- The TCP created and registered in AuboScope.
- 异常
-
| TCPAlreadyAddedException | If called twice using the same idKey. |
| IllegalTCPNameException | If the suggested name does not match regex. |
| IllegalArgumentException | If the offset is invalid. \endenglish |
◆ getTcp()
| TCPPtr arcs::aubo_scope::TcpContributionModel::getTcp |
( |
const std::string & | idKey | ) |
|
TCP \chinese 返回此前由此AuboCap使用相同idKey添加的TCP。
- 参数
-
- 返回
- 此前添加的TCP,如果不存在则返回
null。 \endchinese \english Returns the TCP previously added by this AuboCap using the same idKey.
- 参数
-
| idKey | The key to identify this TCP by. |
- 返回
- The TCP previously added by this AuboCap. \endenglish
◆ removeTcp()
| void arcs::aubo_scope::TcpContributionModel::removeTcp |
( |
const std::string & | idKey | ) |
|
\chinese 从此AuboCap中移除已添加的TCP。使用该TCP的程序节点将变为未定义。
- 参数
-
- 异常
-
| TCPNotFoundException | 如果不存在对应idKey的TCP。 \endchinese \english Remove a TCP added by this AuboCap from AuboScope. |
- 参数
-
| idKey | The key used to add the TCP with. |
- 异常
-
| TCPNotFoundException | If no TCP exists with the provided idKey. \endenglish |
◆ updateTcp()
| void arcs::aubo_scope::TcpContributionModel::updateTcp |
( |
const std::string & | idKey, |
|
|
const std::vector< double > & | newOffset ) |
\chinese 更新此AuboCap已添加TCP的偏移量。
- 参数
-
| idKey | TCP标识符键。 |
| newOffset | TCP的新偏移量。 |
- 异常
-
| TCPNotFoundException | 如果不存在对应idKey的TCP。 |
| IllegalArgumentException | 如果偏移量超出有效范围。 \endchinese \english Update the offset of a TCP already added by this AuboCap. |
- 参数
-
| idKey | The key to identify the TCP. |
| newOffset | The new offset to set for the TCP. |
- 异常
-
| TCPNotFoundException | If no TCP exists with the provided idKey. |
| IllegalArgumentException | If the offset is invalid. \endenglish |
◆ DataSwitch
◆ d_
| void* arcs::aubo_scope::TcpContributionModel::d_ { nullptr } |
|
private |
该类的文档由以下文件生成: