MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / GetText

Method GetText

Rtxpt/SampleUI.cpp:1859–1870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1857 bool IsSelected() const { return (PropOptions != nullptr)?(true):((PropVar != nullptr)?(*PropVar):(PropNode->IsSelected())); }
1858 void SetSelected( bool selected ) { if( PropVar != nullptr ) *PropVar = selected; else if (PropNode != nullptr ) PropNode->SetSelected(selected); else *PropOptionIndex = ( ((*PropOptionIndex)+1) % PropOptions->size() ); }
1859 std::string GetText() const
1860 {
1861 if (PropOptions != nullptr)
1862 {
1863 if (GetItemName!=nullptr)
1864 return Name + (((*PropOptionIndex) >= 0) ? (GetItemName((*PropOptions)[*PropOptionIndex])) : (std::string("other")));
1865 else
1866 return Name + (((*PropOptionIndex)>=0)?((*PropOptions)[*PropOptionIndex]):(std::string("other")));
1867 }
1868 else
1869 return Name;
1870 }
1871
1872 };
1873 std::vector<BigButton> buttons;

Callers 1

buildUIMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected