node-opencv/src/Point.h
Keegan Brown ec09e0bdde Swapped out all "handle" for "local"
Now building and passing tests locally in node v0.10.40 v0.12.7 and
v4.1.1. Other modules would not build at node lower than v0.10, so I
stopped there.
2015-10-05 14:33:12 -05:00

20 lines
398 B
C++
Executable File

// Template class for 2D points
#include "OpenCV.h"
class Point: public Nan::ObjectWrap {
public:
CvPoint2D32f point;
static Nan::Persistent<FunctionTemplate> constructor;
static void Init(Local<Object> target);
static NAN_METHOD(New);
Point(double x, double y);
static NAN_GETTER(GetX);
static NAN_GETTER(GetY);
static NAN_SETTER(RaiseImmutable);
static NAN_METHOD(Dot);
};