Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkCocoaWindow.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCocoaWindow.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00037 #import <Cocoa/Cocoa.h>
00038 
00039 @class vtkCocoaGLView;
00040 
00041 @interface vtkCocoaWindow : NSWindow
00042 {
00043   @private
00044     IBOutlet vtkCocoaGLView *myvtkCocoaGLView;
00045     void *myVTKRenderWindow;
00046     void *myVTKRenderWindowInteractor;
00047 }
00048 
00049 // accessor and convenience
00050 
00051 - (vtkCocoaGLView *)getvtkCocoaGLView;
00052 - (void)setvtkCocoaGLView:vtkCocoaGLView;
00053 
00054 - (void *)getVTKRenderWindow;
00055 - (void)setVTKRenderWindow:(void *)theVTKRenderWindow;
00056 
00057 - (void *)getVTKRenderWindowInteractor;
00058 - (void)setVTKRenderWindowInteractor:(void *)theVTKRenderWindowInteractor;
00059 
00060 - (void)makeCurrentContext;
00061 
00062 - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize;
00063 - (BOOL)windowShouldZoom:(NSWindow *)sender toFrame:(NSRect)newFrame;
00064 - (void)close; //close your face!
00065 
00066 @end