MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / SetData

Method SetData

src/widgets.cpp:1802–1818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1800 }
1801
1802 void SetData(const std::vector<double> &data)
1803 {
1804 mData = data;
1805
1806 if (GridTable) GridTable->SetArray(NULL);
1807 Grid->SetTable( NULL );
1808
1809 GridTable = new AFFloatArrayTable(&mData, mMode, mLabel);
1810 GridTable->SetAttrProvider( new wxExtGridCellAttrProvider );
1811
1812 Grid->SetTable( GridTable, true );
1813 Grid->SetColSize(0, (int)(130*wxGetScreenHDScale()));
1814
1815 Grid->Layout();
1816 Grid->Refresh();
1817
1818 }
1819
1820 void GetData(std::vector<double> &data)
1821 {

Callers

nothing calls this directly

Calls 1

SetArrayMethod · 0.45

Tested by

no test coverage detected