本文整理汇总了C++中StHandle::getValue方法的典型用法代码示例。如果您正苦于以下问题:C++ StHandle::getValue方法的具体用法?C++ StHandle::getValue怎么用?C++ StHandle::getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StHandle
的用法示例。
在下文中一共展示了StHandle::getValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StTrackedFloatParam
StTrackedFloatParam(const StHandle<StFloat32Param>& theTracked1,
const StHandle<StFloat32Param>& theTracked2)
: StFloat32Param(theTracked1->getValue(),
theTracked1->getMinValue(),
theTracked1->getMaxValue(),
theTracked1->getDefValue(),
theTracked1->getStep(),
theTracked1->getTolerance()),
myTracked1(theTracked1),
myTracked2(theTracked2) {}
示例2: anAutoLock
StHandle<StStereoParams> StPlayList::openRecent(const size_t theItemId) {
StMutexAuto anAutoLock(myMutex);
if(theItemId >= myRecent.size()) {
return StHandle<StStereoParams>();
}
const StHandle<StRecentItem> aRecent = myRecent[theItemId];
const StHandle<StFileNode> aFile = aRecent->File;
if(aFile->size() == 2) {
// stereo pair from two files
clear();
addOneFile(aFile->getValue(0)->getPath(),
aFile->getValue(1)->getPath());
} else if(aFile->size() == 1) {
// playlist
open(aFile->getPath(), aFile->getValue(0)->getSubPath());
} else {
// single file
open(aFile->getPath());
}
return aRecent->Params;
}
示例3: doOpenFile
void StCADViewerGUI::doOpenFile(const size_t ) {
StGLOpenFile* aDialog = new StGLOpenFile(this, tr(DIALOG_OPEN_FILE), tr(BUTTON_CLOSE));
aDialog->setMimeList(StCADLoader::ST_CAD_MIME_LIST);
#if defined(_WIN32)
//
#else
aDialog->addHotItem("/", "Root");
#endif
aDialog->addHotItem(getResourceManager()->getFolder(StResourceManager::FolderId_SdCard));
aDialog->addHotItem(getResourceManager()->getFolder(StResourceManager::FolderId_Downloads));
aDialog->addHotItem(getResourceManager()->getFolder(StResourceManager::FolderId_Pictures));
aDialog->addHotItem(getResourceManager()->getFolder(StResourceManager::FolderId_Photos));
aDialog->signals.onFileSelected = stSlot(myPlugin, &StCADViewer::doOpen1FileFromGui);
if(myPlugin->params.LastFolder.isEmpty()) {
StHandle<StFileNode> aCurrFile = myPlugin->myPlayList->getCurrentFile();
if(!aCurrFile.isNull()) {
myPlugin->params.LastFolder = aCurrFile->isEmpty() ? aCurrFile->getFolderPath() : aCurrFile->getValue(0)->getFolderPath();
}
}
aDialog->openFolder(myPlugin->params.LastFolder);
setModalDialog(aDialog);
}