New batch of "uninitialized values" bugfix. No issue.

This commit is contained in:
Hombrenatureh.510
2014-03-29 20:15:56 +01:00
parent 3dfc5fc943
commit 91dcdb5530
9 changed files with 95 additions and 157 deletions

View File

@@ -47,6 +47,8 @@ protected:
LabImage* LabBuffer;
PlanarWhateverData<float> singlePlaneBuffer;
bool ready; // flag that indicates if the _pipette_ buffer is ready
void createBuffer(int width, int height);
void resize(int newWidth, int newHeight, EditSubscriber* newSubscriber);
void resize(int newWidth, int newHeight);
@@ -56,6 +58,12 @@ public:
EditBuffer(::EditDataProvider *dataProvider);
~EditBuffer();
/** @brief Getter to know if the pipette buffer is correctly filled */
bool isReady() { return ready; }
/** @brief Setter to tell that the pipette buffer is correctly filled
* You have to use this method once the pipette is filled, so it can be read. */
void setReady() { ready = true; }
void setObjectMode(ObjectMode newType);
::EditDataProvider* getDataProvider() { return dataProvider; }