00001 #import <Cocoa/Cocoa.h> 00002 00003 @class vtkQuartzGLView; 00004 00005 @interface vtkQuartzWindow : NSWindow 00006 { 00007 @private 00008 NSTimer *MyNSTimer; 00009 IBOutlet vtkQuartzGLView *myvtkQuartzGLView; 00010 void *myVTKRenderWindow; 00011 void *myVTKRenderWindowInteractor; 00012 } 00013 00014 // accessor and convenience 00015 00016 - (vtkQuartzGLView *)getvtkQuartzGLView; 00017 - (void)setvtkQuartzGLView:vtkQuartzGLView; 00018 00019 - (void *)getVTKRenderWindow; 00020 - (void)setVTKRenderWindow:(void *)theVTKRenderWindow; 00021 00022 - (void *)getVTKRenderWindowInteractor; 00023 - (void)setVTKRenderWindowInteractor:(void *)theVTKRenderWindowInteractor; 00024 00025 - (void)makeCurrentContext; 00026 00027 - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize; 00028 - (BOOL)windowShouldZoom:(NSWindow *)sender toFrame:(NSRect)newFrame; 00029 - (void)close; //close your face! 00030 00031 00032 @end