| 4 | #include "Edge.h" |
| 5 | |
| 6 | class Wire : public Base { |
| 7 | |
| 8 | TopoDS_Wire m_wire; |
| 9 | public: |
| 10 | int numVertices(); |
| 11 | int numEdges(); |
| 12 | bool isClosed(); |
| 13 | |
| 14 | |
| 15 | virtual const TopoDS_Shape& shape() const; |
| 16 | const TopoDS_Wire& wire() const { |
| 17 | return m_wire; |
| 18 | } |
| 19 | virtual void setShape(const TopoDS_Shape&); |
| 20 | virtual v8::Local<v8::Object> Clone() const ; |
| 21 | virtual Base* Unwrap(v8::Local<v8::Object> obj) const { |
| 22 | return Nan::ObjectWrap::Unwrap<Wire>(obj); |
| 23 | } |
| 24 | |
| 25 | static void Init(v8::Local<v8::Object> target); |
| 26 | static NAN_METHOD(New); |
| 27 | static NAN_METHOD(getEdges); |
| 28 | static NAN_METHOD(getVertices); |
| 29 | |
| 30 | static NAN_METHOD(NewInstance); |
| 31 | virtual void InitNew(_NAN_METHOD_ARGS); |
| 32 | |
| 33 | static Nan::Persistent<v8::FunctionTemplate> _template; |
| 34 | }; |
no outgoing calls
no test coverage detected