本文整理汇总了C++中ObjectPtr::Name方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectPtr::Name方法的具体用法?C++ ObjectPtr::Name怎么用?C++ ObjectPtr::Name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectPtr
的用法示例。
在下文中一共展示了ObjectPtr::Name方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: configureTab
void PowerSpectrumDialog::configureTab(ObjectPtr object) {
if (!object) {
_powerSpectrumTab->FFTOptionsWidget()->loadWidgetDefaults();
_powerSpectrumTab->curveAppearance()->loadWidgetDefaults();
} else if (PSDPtr psd = kst_cast<PSD>(object)) {
_powerSpectrumTab->setVector(psd->vector());
_powerSpectrumTab->FFTOptionsWidget()->setSampleRate(psd->frequency());
_powerSpectrumTab->FFTOptionsWidget()->setInterleavedAverage(psd->average());
_powerSpectrumTab->FFTOptionsWidget()->setFFTLength(psd->length());
_powerSpectrumTab->FFTOptionsWidget()->setApodize(psd->apodize());
_powerSpectrumTab->FFTOptionsWidget()->setRemoveMean(psd->removeMean());
_powerSpectrumTab->FFTOptionsWidget()->setVectorUnits(psd->vectorUnits());
_powerSpectrumTab->FFTOptionsWidget()->setRateUnits(psd->rateUnits());
_powerSpectrumTab->FFTOptionsWidget()->setApodizeFunction(psd->apodizeFxn());
_powerSpectrumTab->FFTOptionsWidget()->setSigma(psd->gaussianSigma());
_powerSpectrumTab->FFTOptionsWidget()->setOutput(psd->output());
_powerSpectrumTab->FFTOptionsWidget()->setInterpolateOverHoles(psd->interpolateHoles());
_powerSpectrumTab->hideCurveOptions();
if (_editMultipleWidget) {
PSDList objects = _document->objectStore()->getObjects<PSD>();
_editMultipleWidget->clearObjects();
foreach(const PSDPtr &object, objects) {
_editMultipleWidget->addObject(object->Name(), object->descriptionTip());
}
}
示例2: configureTab
void EquationDialog::configureTab(ObjectPtr object) {
if (!object) {
_equationTab->curveAppearance()->loadWidgetDefaults();
_equationTab->setToLastX(_document, _lastXVectorName);
} else if (EquationPtr equation = kst_cast<Equation>(object)) {
_equationTab->setXVector(equation->vXIn());
_equationTab->setEquation(equation->equation());
_equationTab->setDoInterpolation(equation->doInterp());
_equationTab->hideCurveOptions();
if (_editMultipleWidget) {
EquationList objects = _document->objectStore()->getObjects<Equation>();
_editMultipleWidget->clearObjects();
foreach(EquationPtr object, objects) {
_editMultipleWidget->addObject(object->Name(), object->descriptionTip());
}
}
示例3: configureTab
void EventMonitorDialog::configureTab(ObjectPtr object) {
if (EventMonitorEntryPtr eventMonitorEntry = kst_cast<EventMonitorEntry>(object)) {
_eventMonitorTab->setScript(eventMonitorEntry->scriptCode());
_eventMonitorTab->setEvent(eventMonitorEntry->event());
_eventMonitorTab->setDescription(eventMonitorEntry->description());
_eventMonitorTab->setLogLevel(eventMonitorEntry->level());
_eventMonitorTab->setLogDebug(eventMonitorEntry->logDebug());
_eventMonitorTab->setLogEMail(eventMonitorEntry->logEMail());
_eventMonitorTab->setLogELOG(eventMonitorEntry->logELOG());
_eventMonitorTab->setEmailRecipients(eventMonitorEntry->eMailRecipients());
if (_editMultipleWidget) {
EventMonitorEntryList objects = _document->objectStore()->getObjects<EventMonitorEntry>();
_editMultipleWidget->clearObjects();
foreach(EventMonitorEntryPtr object, objects) {
_editMultipleWidget->addObject(object->Name(), object->descriptionTip());
}
}
示例4: configureTab
void HistogramDialog::configureTab(ObjectPtr object) {
if (!object) {
_histogramTab->setRealTimeAutoBin(dialogDefaults().value("histogram/realTimeAutoBin", false).toBool());
_histogramTab->setNormalizationType(Histogram::NormalizationType(dialogDefaults().value("histogram/normalizationType",Histogram::Number).toInt()));
} else if (HistogramPtr histogram = kst_cast<Histogram>(object)) {
_histogramTab->setVector(histogram->vector());
_histogramTab->setMin(histogram->xMin());
_histogramTab->setMax(histogram->xMax());
_histogramTab->setBins(histogram->numberOfBins());
_histogramTab->setRealTimeAutoBin(histogram->realTimeAutoBin());
_histogramTab->setNormalizationType(histogram->normalizationType());
_histogramTab->hideCurveOptions();
if (_editMultipleWidget) {
HistogramList objects = _document->objectStore()->getObjects<Histogram>();
_editMultipleWidget->clearObjects();
foreach(HistogramPtr object, objects) {
_editMultipleWidget->addObject(object->Name(), object->descriptionTip());
}
}
示例5: configureTab
void CurveDialog::configureTab(ObjectPtr object) {
if (!object) {
_curveTab->curveAppearance()->loadWidgetDefaults();
_curveTab->setToLastX();
} else if (CurvePtr curve = kst_cast<Curve>(object)) {
_curveTab->curveAppearance()->loadWidgetDefaults();
_curveTab->setXVector(curve->xVector());
_curveTab->setYVector(curve->yVector());
if (curve->hasXError()) {
_curveTab->setXError(curve->xErrorVector());
}
if (curve->hasYError()) {
_curveTab->setYError(curve->yErrorVector());
}
if (curve->hasXMinusError()) {
_curveTab->setXMinusError(curve->xMinusErrorVector());
}
if (curve->hasYMinusError()) {
_curveTab->setYMinusError(curve->yMinusErrorVector());
}
_curveTab->setIgnoreAutoScale(curve->ignoreAutoScale());
_curveTab->curveAppearance()->setColor(curve->color());
_curveTab->curveAppearance()->setHeadColor(curve->headColor());
_curveTab->curveAppearance()->setShowPoints(curve->hasPoints());
_curveTab->curveAppearance()->setShowLines(curve->hasLines());
_curveTab->curveAppearance()->setShowBars(curve->hasBars());
_curveTab->curveAppearance()->setShowHead(curve->hasHead());
_curveTab->curveAppearance()->setLineWidth(curve->lineWidth());
_curveTab->curveAppearance()->setPointSize(curve->pointSize());
_curveTab->curveAppearance()->setLineStyle(curve->lineStyle());
_curveTab->curveAppearance()->setPointType(curve->pointType());
_curveTab->curveAppearance()->setPointDensity(curve->pointDensity());
_curveTab->curveAppearance()->setBarFillColor(curve->barFillColor());
_curveTab->curveAppearance()->setHeadType(curve->headType());
_curveTab->hidePlacementOptions();
if (_editMultipleWidget) {
CurveList objects = _document->objectStore()->getObjects<Curve>();
_editMultipleWidget->clearObjects();
foreach(CurvePtr object, objects) {
_editMultipleWidget->addObject(object->Name(), object->descriptionTip());
}
}
示例6: configureTab
void ImageDialog::configureTab(ObjectPtr object) {
if (!object) {
} else if (ImagePtr image = kst_cast<Image>(object)) {
_imageTab->setMatrix(image->matrix());
if (image->hasContourMap() && image->hasColorMap()) {
_imageTab->setColorAndContour(true);
_imageTab->setNumberOfContourLines(image->numContourLines());
_imageTab->setContourColor(image->contourColor());
_imageTab->setContourWeight(image->contourWeight());
_imageTab->setLowerThreshold(image->lowerThreshold());
_imageTab->setUpperThreshold(image->upperThreshold());
_imageTab->setRealTimeAutoThreshold(image->autoThreshold());
_imageTab->colorPalette()->setPalette(image->paletteName());
_imageTab->setUseVariableLineWeight(image->contourWeight() == -1);
} else if (image->hasContourMap()) {
_imageTab->setContourOnly(true);
_imageTab->setNumberOfContourLines(image->numContourLines());
_imageTab->setContourColor(image->contourColor());
_imageTab->setContourWeight(image->contourWeight());
_imageTab->setUseVariableLineWeight(image->contourWeight() == -1);
} else {
_imageTab->setColorOnly(true);
_imageTab->setLowerThreshold(image->lowerThreshold());
_imageTab->setUpperThreshold(image->upperThreshold());
_imageTab->setRealTimeAutoThreshold(image->autoThreshold());
_imageTab->colorPalette()->setPalette(image->paletteName());
}
_imageTab->hidePlacementOptions();
if (_editMultipleWidget) {
ImageList objects = _document->objectStore()->getObjects<Image>();
_editMultipleWidget->clearObjects();
foreach(const ImagePtr &object, objects) {
_editMultipleWidget->addObject(object->Name(), object->descriptionTip());
}
}