本文整理汇总了C++中Output::GetConnectionPath方法的典型用法代码示例。如果您正苦于以下问题:C++ Output::GetConnectionPath方法的具体用法?C++ Output::GetConnectionPath怎么用?C++ Output::GetConnectionPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Output
的用法示例。
在下文中一共展示了Output::GetConnectionPath方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ReadActionParameters
/* Reads parameters required for action to execute */
bool AddConnection::ReadActionParameters() {
Input* pIn = mAppManager->GetInput();
Output* pOut = mAppManager->GetOutput();
if (!mIsLoaded) {
mAppManager->SetSelectionOfComponents(false);
mAppManager->UpdateInterface();
pOut->PrintMsg("Connection: select the source pin");
pIn->WaitMouseClick(mGfxInfo.x1, mGfxInfo.y1);
pOut->ClearStatusBar();
}
if (!DetectSourceComponent()) {
if (!mIsLoaded) pOut->PrintMsg("Invalid source pin. Operation was cancelled");
return false;
}
if (!mIsLoaded) {
pOut->PrintMsg("Connection: select the destination pin");
pIn->WaitMouseClick(mGfxInfo.x2, mGfxInfo.y2);
pOut->ClearStatusBar();
}
if (!DetectDestinationComponent()) {
if (!mIsLoaded) pOut->PrintMsg("Invalid destination pin. Operation was cancelled");
return false;
}
mPath = pOut->GetConnectionPath(mGfxInfo);
if (mPath == NULL) {
if (!mIsLoaded) pOut->PrintMsg("There is no available path. Operation was cancelled");
return false;
}
return true;
}