- Timestamp:
- 02/10/10 13:44:59 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCarbon.cpp
r11043 r11046 40 40 OSStatus result = eventNotHandledErr; /* report failure by default */ 41 41 42 NOTIFY(osg::INFO) << "GraphicsWindowEventHandler" << std::endl;42 OSG_NOTIFY(osg::INFO) << "GraphicsWindowEventHandler" << std::endl; 43 43 44 44 GraphicsWindowCarbon* w = (GraphicsWindowCarbon*)userData; … … 248 248 if (!_pixelFormat) 249 249 { 250 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::init could not create a valid pixelformat" << std::endl;250 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::init could not create a valid pixelformat" << std::endl; 251 251 } 252 252 _valid = (_pixelFormat != NULL); … … 277 277 if (err != noErr) 278 278 { 279 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::setWindowDecoration failed with " << err << std::endl;279 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::setWindowDecoration failed with " << err << std::endl; 280 280 return false; 281 281 } … … 351 351 if (!_traits) return false; 352 352 353 NOTIFY(osg::INFO) << "GraphicsWindowCarbon:: realizeIMplementation" << std::endl;353 OSG_NOTIFY(osg::INFO) << "GraphicsWindowCarbon:: realizeIMplementation" << std::endl; 354 354 355 355 setWindowDecoration(_traits->windowDecoration); … … 378 378 379 379 if (err) { 380 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::realizeImplementation() failed creating a window: " << err << std::endl;380 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::realizeImplementation() failed creating a window: " << err << std::endl; 381 381 return false; 382 382 } else { 383 NOTIFY(osg::INFO) << "GraphicsWindowCarbon::realizeImplementation() - window created with bounds(" << bounds.top << ", " << bounds.left << ", " << bounds.bottom << ", " << bounds.right << ")" << std::endl;383 OSG_NOTIFY(osg::INFO) << "GraphicsWindowCarbon::realizeImplementation() - window created with bounds(" << bounds.top << ", " << bounds.left << ", " << bounds.bottom << ", " << bounds.right << ")" << std::endl; 384 384 } 385 385 } … … 411 411 412 412 if (!_context) { 413 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::realizeImplementation failed creating a context: " << aglGetError() << std::endl;413 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::realizeImplementation failed creating a context: " << aglGetError() << std::endl; 414 414 return false; 415 415 } … … 442 442 if (cgerr != kCGLNoError ) 443 443 { 444 NOTIFY(osg::INFO) << "GraphicsWindowCarbon:: Multi-threaded OpenGL Execution not available" << std::endl;444 OSG_NOTIFY(osg::INFO) << "GraphicsWindowCarbon:: Multi-threaded OpenGL Execution not available" << std::endl; 445 445 } 446 446 } … … 470 470 if (!_realized) 471 471 { 472 NOTIFY(osg::NOTICE)<<"Warning: GraphicsWindow not realized, cannot do makeCurrent."<<std::endl;472 OSG_NOTIFY(osg::NOTICE)<<"Warning: GraphicsWindow not realized, cannot do makeCurrent."<<std::endl; 473 473 return false; 474 474 } 475 475 476 // NOTIFY(osg::NOTICE)<<"makeCurrentImplementation "<<this<<" "<<OpenThreads::Thread::CurrentThread()<<std::endl;477 // NOTIFY(osg::NOTICE)<<" glXMakeCurrent ("<<_display<<","<<_window<<","<<_glxContext<<std::endl;476 // OSG_NOTIFY(osg::NOTICE)<<"makeCurrentImplementation "<<this<<" "<<OpenThreads::Thread::CurrentThread()<<std::endl; 477 // OSG_NOTIFY(osg::NOTICE)<<" glXMakeCurrent ("<<_display<<","<<_window<<","<<_glxContext<<std::endl; 478 478 return (aglSetCurrentContext(NULL) == GL_TRUE); 479 479 } … … 483 483 void GraphicsWindowCarbon::closeImplementation() 484 484 { 485 // NOTIFY(osg::INFO) << "GraphicsWindowCarbon::closeImplementation" << std::endl;485 // OSG_NOTIFY(osg::INFO) << "GraphicsWindowCarbon::closeImplementation" << std::endl; 486 486 _valid = false; 487 487 _realized = false; … … 742 742 GetEventParameter (theEvent,kEventParamKeyCode,typeUInt32, NULL,sizeof(rawkey), NULL,&rawkey); 743 743 744 // NOTIFY(osg::INFO) << "key code: " << rawkey << " modifiers: " << modifierKeys << std::endl;744 // OSG_NOTIFY(osg::INFO) << "key code: " << rawkey << " modifiers: " << modifierKeys << std::endl; 745 745 746 746 UInt32 dataSize; … … 761 761 { 762 762 //getEventQueue()->getCurrentEventState()->setModKeyMask(modifierMask); 763 NOTIFY(osg::INFO) << "GraphicsWindowCarbon::keyPress" << std::endl;763 OSG_NOTIFY(osg::INFO) << "GraphicsWindowCarbon::keyPress" << std::endl; 764 764 getEventQueue()->keyPress(keychar); 765 765 break; … … 768 768 case kEventRawKeyUp: 769 769 { 770 NOTIFY(osg::INFO) << "GraphicsWindowCarbon::keyPress" << std::endl;770 OSG_NOTIFY(osg::INFO) << "GraphicsWindowCarbon::keyPress" << std::endl; 771 771 //getEventQueue()->getCurrentEventState()->setModKeyMask(modifierMask); 772 772 getEventQueue()->keyRelease(keychar); … … 941 941 { 942 942 // TODO: implement 943 NOTIFY(osg::ALWAYS) << "GraphicsWindowCarbon::grabFocusIfPointerInWindow" << std::endl;943 OSG_NOTIFY(osg::ALWAYS) << "GraphicsWindowCarbon::grabFocusIfPointerInWindow" << std::endl; 944 944 } 945 945 … … 952 952 DarwinWindowingSystemInterface* wsi = dynamic_cast<DarwinWindowingSystemInterface*>(osg::GraphicsContext::getWindowingSystemInterface()); 953 953 if (wsi == NULL) { 954 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::useCursor :: could not get OSXCarbonWindowingSystemInterface" << std::endl;954 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::useCursor :: could not get OSXCarbonWindowingSystemInterface" << std::endl; 955 955 return; 956 956 } … … 968 968 } 969 969 if (err != kCGErrorSuccess) { 970 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::useCursor failed with " << err << std::endl;970 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::useCursor failed with " << err << std::endl; 971 971 } 972 972 } … … 1002 1002 default: 1003 1003 cursor = kThemeArrowCursor; 1004 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::setCursor doesn't implement cursor: type = " << mouseCursor << std::endl;1004 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::setCursor doesn't implement cursor: type = " << mouseCursor << std::endl; 1005 1005 } 1006 1006 … … 1027 1027 DarwinWindowingSystemInterface* wsi = dynamic_cast<DarwinWindowingSystemInterface*>(osg::GraphicsContext::getWindowingSystemInterface()); 1028 1028 if (wsi == NULL) { 1029 NOTIFY(osg::WARN) << "GraphicsWindowCarbon::useCursor :: could not get OSXCarbonWindowingSystemInterface" << std::endl;1029 OSG_NOTIFY(osg::WARN) << "GraphicsWindowCarbon::useCursor :: could not get OSXCarbonWindowingSystemInterface" << std::endl; 1030 1030 return; 1031 1031 }
