Changeset 353 for experimental/distortionNG/DistortionManipulator.h
- Timestamp:
- Apr 21, 2012, 9:49:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionManipulator.h
r349 r353 21 21 22 22 #include <osgGA/GUIEventHandler> 23 #include<osg/Referenced> 23 #include <osg/Referenced> 24 #include <osg/Switch> 25 #include <osg/Geometry> 26 #include <osgUtil/IntersectionVisitor> 27 #include <osgUtil/LineSegmentIntersector> 28 24 29 #include "DistortionSet.h" 25 30 26 31 27 32 namespace osgViewer { 33 28 34 29 35 class DistortionManipulator : public osgGA::GUIEventHandler … … 50 56 51 57 52 DistortionManipulator( );58 DistortionManipulator(DistortionSet* ds); 53 59 virtual ~DistortionManipulator(); 54 60 … … 58 64 void setDistortionSet(DistortionSet* ds) {_distortionSet = ds;} 59 65 66 67 60 68 private: 61 69 void resetIntensityMap(); … … 63 71 void showDistortionMesh(bool show); 64 72 void showIntensityMap(bool show); 73 74 void computeSelectedVertex( osgUtil::LineSegmentIntersector::Intersection& result ); 75 void createVertexHighlighter(); 65 76 66 77 SetupMode activeSetupMode; … … 70 81 71 82 osg::ref_ptr<DistortionSet> _distortionSet; 83 84 85 osg::ref_ptr<osg::Geometry> _highlighter; 86 osg::observer_ptr<osg::Camera> _camera; 87 osg::Geometry* _distortionMesh; 88 const osg::Vec4 _highlightColor; 72 89 }; 73 90
Note: See TracChangeset
for help on using the changeset viewer.