| 24 | }; |
| 25 | |
| 26 | void Path2dApp::mouseDown( MouseEvent event ) |
| 27 | { |
| 28 | if( event.isLeftDown() ) { // line |
| 29 | if( mPath.empty() ) { |
| 30 | mPath.moveTo( event.getPos() ); |
| 31 | mTrackedPoint = 0; |
| 32 | } |
| 33 | else |
| 34 | mPath.lineTo( event.getPos() ); |
| 35 | } |
| 36 | |
| 37 | console() << mPath << std::endl; |
| 38 | console() << "Length: " << mPath.calcLength() << std::endl; |
| 39 | } |
| 40 | |
| 41 | void Path2dApp::mouseDrag( MouseEvent event ) |
| 42 | { |
nothing calls this directly
no test coverage detected