mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
20 lines
651 B
C++
Executable File
20 lines
651 B
C++
Executable File
// Template class for 2D points
|
|
|
|
#include "OpenCV.h"
|
|
|
|
class Point: public node::ObjectWrap {
|
|
public:
|
|
CvPoint2D32f point;
|
|
static Persistent<FunctionTemplate> constructor;
|
|
static void Init(Handle<Object> target);
|
|
static Handle<Value> New(const Arguments &args);
|
|
Point(double x, double y);
|
|
|
|
static Handle<Value> GetX(Local<String> prop, const AccessorInfo &info);
|
|
static Handle<Value> GetY(Local<String> prop, const AccessorInfo &info);
|
|
static void RaiseImmutable(Local<String> property, Local<Value> value, const AccessorInfo& info);
|
|
static Handle<Value> Dot(const v8::Arguments&);
|
|
|
|
};
|
|
|