MCPcopy Create free account
hub / github.com/CloudCompare/CloudCompare / getScale

Method getScale

libs/CCPluginAPI/src/ccColorScaleSelector.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93ccColorScale::Shared ccColorScaleSelector::getScale(int index) const
94{
95 if (!m_comboBox || index < 0 || index >= m_comboBox->count())
96 return ccColorScale::Shared(nullptr);
97
98 //get UUID associated to the combo-box item
99 QString UUID = m_comboBox->itemData(index).toString();
100
101 return m_manager ? m_manager->getScale(UUID) : ccColorScale::Shared(nullptr);
102}
103
104void ccColorScaleSelector::setSelectedScale(QString uuid)
105{

Callers 3

colorScaleChangedMethod · 0.45
deleteCurrentScaleMethod · 0.45
importScaleMethod · 0.45

Calls 3

countMethod · 0.80
itemDataMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected