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

vtkCocoaGLView.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCocoaGLView.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 #import <OpenGL/gl.h>
00039 #define id Id
00040 #import "vtkCocoaRenderWindow.h"
00041 #import "vtkCocoaRenderWindowInteractor.h"
00042 #include "vtkInteractorStyle.h"
00043 #undef id
00044 
00045 @interface vtkCocoaGLView : NSOpenGLView
00046 {
00047   enum NSOpenGLPixelFormatAttribute bitsPerPixel, depthSize;
00048 
00049   @private
00050     vtkCocoaRenderWindow *myVTKRenderWindow;
00051     vtkCocoaRenderWindowInteractor *myVTKRenderWindowInteractor;
00052 }
00053 
00054 // Overrides
00055 - (void) drawRect:(NSRect)theRect;
00056 - (id)initWithFrame:(NSRect)theFrame;
00057 
00058 - (vtkCocoaRenderWindow *)getVTKRenderWindow;
00059 - (void)setVTKRenderWindow:(vtkCocoaRenderWindow *)theVTKRenderWindow;
00060 
00061 - (vtkCocoaRenderWindowInteractor *)getVTKRenderWindowInteractor;
00062 - (void)setVTKRenderWindowInteractor:(vtkCocoaRenderWindowInteractor *)theVTKRenderWindowInteractor;
00063 
00064 - (void*)getOpenGLContext;
00065 
00066 @end