Permalink
Browse files

Added Dikablis Viewing Size for EyeCalibration.

  • Loading branch information...
1 parent 04def2d commit 0df1744b0014d98ddea5311c7914f869db0c490d @mdfeist committed Jun 6, 2013
Showing with 6 additions and 5 deletions.
  1. +3 −4 BlinkAnalysis/ClientHandler.cpp
  2. +3 −1 BlinkAnalysis/ClientHandler.h
@@ -13,6 +13,8 @@ int ClientHandler::DikablisViewingHeight = 576;
int ClientHandler::DikablisViewingMargin = 100;
+int ClientHandler::DikablisViewingSize = 3 * ((DikablisViewingWidth + 2*DikablisViewingMargin) * (DikablisViewingHeight + 2*DikablisViewingMargin));
+
// Constructor: Sets the default values for the ClientHandler
ClientHandler::ClientHandler(void)
{
@@ -35,10 +37,7 @@ ClientHandler::ClientHandler(void)
this->rigidBodyTool = -1;
- this->dikablisEyeVectorArray = (float*) malloc(
- sizeof(float) *
- 3 * ((DikablisViewingWidth + 2*DikablisViewingMargin) *
- (DikablisViewingHeight + 2*DikablisViewingMargin)));
+ this->dikablisEyeVectorArray = (float*) malloc(sizeof(float) * ClientHandler::DikablisViewingSize);
}
// Cleans up the ClientHandler
@@ -55,10 +55,11 @@ class ClientHandler
static int DikablisViewingWidth;
static int DikablisViewingHeight;
static int DikablisViewingMargin;
+ static int DikablisViewingSize;
// Used to store the calibrated eye vectors
float *dikablisEyeVectorArray;
-
+
public:
ClientHandler(void); // Constructor
~ClientHandler(void); // Destructor
@@ -149,5 +150,6 @@ class ClientHandler
static int getDikablisViewingWidth() { return DikablisViewingWidth; }
static int getDikablisViewingHeight() { return DikablisViewingHeight; }
static int getDikablisViewingMargin() { return DikablisViewingMargin; }
+ static int getDikablisViewingSize() { return DikablisViewingSize; }
};

0 comments on commit 0df1744

Please sign in to comment.