Commit c66e66fc authored by clantz's avatar clantz
Browse files

Reimplemented GetElement for RPD. Added private members and set methods

parent d8c6cc9f
......@@ -23,16 +23,22 @@ class RPD : public Detector{
Channel* GetElement(int row, int column);
void SetnRows(int rows){nRows=rows; nElements = nRows * nColumns; };
void SetnCols(int cols){nColumns=cols; nElements = nRows * nColumns; };
void SetnRows(int rows){nRows=rows; nElements = nRows * nColumns; ResizeSortedElements(); };
void SetnCols(int cols){nColumns=cols; nElements = nRows * nColumns; ResizeSortedElements(); };
void ResizeSortedElements();
virtual void PrintMap( );
private:
/** Number of rows **/
int nRows = 4;
/** Number of columns **/
int nColumns = 4;
/** Total elements **/
int nElements = nRows * nColumns;
/** 2D vector of channels sorted in a [row][column] format **/
std::vector< std::vector< Channel* > > m_SortedElements;
};
};
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment