- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgManipulator/Scale2DDragger.cpp
r10431 r13041 76 76 _scaleCenter.set(0.0,0.0); 77 77 78 if (pointer.contains(_topLeftHandleNode.get())) 78 if (pointer.contains(_topLeftHandleNode.get())) 79 79 { 80 80 _referencePoint = _topLeftHandlePosition; … … 82 82 _scaleCenter = _bottomRightHandlePosition; 83 83 } 84 else if (pointer.contains(_bottomLeftHandleNode.get())) 84 else if (pointer.contains(_bottomLeftHandleNode.get())) 85 85 { 86 86 _referencePoint = _bottomLeftHandlePosition; … … 88 88 _scaleCenter = _topRightHandlePosition; 89 89 } 90 else if (pointer.contains(_bottomRightHandleNode.get())) 90 else if (pointer.contains(_bottomRightHandleNode.get())) 91 91 { 92 92 _referencePoint = _bottomRightHandlePosition; … … 94 94 _scaleCenter = _topLeftHandlePosition; 95 95 } 96 else if (pointer.contains(_topRightHandleNode.get())) 96 else if (pointer.contains(_topRightHandleNode.get())) 97 97 { 98 98 _referencePoint = _topRightHandlePosition; … … 116 116 aa.requestRedraw(); 117 117 } 118 return true; 118 return true; 119 119 } 120 120 … … 145 145 aa.requestRedraw(); 146 146 } 147 return true; 147 return true; 148 148 } 149 149 150 150 // Pick finish. 151 151 case (osgGA::GUIEventAdapter::RELEASE): … … 190 190 lineGeode->addDrawable(geometry); 191 191 } 192 192 193 193 // Turn of lighting for line and set line width. 194 194 lineGeode->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::OFF); … … 208 208 setTopLeftHandleNode(*geode); 209 209 } 210 210 211 211 // Create a bottom left box. 212 212 {
