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

Method GetData

src/widgets.cpp:5181–5189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5179 }
5180
5181 void GetData(matrix_t<double> &data)
5182 {
5183 int nr = Grid->GetNumberRows();
5184 int nc = Grid->GetNumberCols();
5185 data.resize_fill( nr, nc, 0.0f );
5186 for (int r=0;r<nr;r++)
5187 for (int c=0;c<nc;c++)
5188 data.at(r,c) = (double)wxAtof( Grid->GetCellValue(r,c) );
5189 }
5190
5191 void OnCellChange(wxGridEvent &evt)
5192 {

Callers

nothing calls this directly

Calls 4

resize_fillMethod · 0.80
GetCellValueMethod · 0.80
GetNumberRowsMethod · 0.45
GetNumberColsMethod · 0.45

Tested by

no test coverage detected