| 4 | #include "Base.h" |
| 5 | |
| 6 | class Shape : public Base { |
| 7 | |
| 8 | public: |
| 9 | Shape() {}; |
| 10 | virtual ~Shape() {}; |
| 11 | |
| 12 | protected: |
| 13 | TopoDS_Shape shape_; |
| 14 | |
| 15 | |
| 16 | |
| 17 | // static NAN_METHOD(ShapeType); |
| 18 | // constructors |
| 19 | |
| 20 | public: |
| 21 | virtual const TopoDS_Shape& shape() const; |
| 22 | virtual void setShape( const TopoDS_Shape&); |
| 23 | |
| 24 | |
| 25 | |
| 26 | void setErrorMessage(const char* message) {}; |
| 27 | |
| 28 | }; |
| 29 | |
| 30 | template <class SHAPE> |
| 31 | inline v8::Local<v8::Array> extract_shapes_as_javascript_array(SHAPE* pThis,TopAbs_ShapeEnum type) { |
nothing calls this directly
no outgoing calls
no test coverage detected