The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

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

MyQuickDrawView.h

Go to the documentation of this file.
00001 
00002 //
00003 //      File:           MyQuickDrawView.h
00004 //
00005 //      Contains:       Interface file for our MyQuickDrawView class.
00006 //
00007 //      Original Written by:    Apple Developer Technical Support
00008 //      Modified by:    Ian Fasel -- added Face Detector (MPISearch) support
00009 //
00010 //      Copyright:      ©  2003 Machine Perception Laboratory 
00011 //                      University of California San Diego.
00012 //
00013 //      Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00014 //
00015 //    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00016 //    2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
00017 //    3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
00018 //
00019 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00020 // 
00022 
00023 
00024 #import <Cocoa/Cocoa.h>
00025 #import <QuickTime/QuickTime.h>
00026 #import "FindFacesInGWorld.h"
00027 
00028 
00029 @interface MyQuickDrawView : NSQuickDrawView
00030 {
00031     NSTimer             *gMyTimer;              // our timer for idling the sequence grabber
00032     SeqGrabComponent    gSeqGrab;               // the sequence grabber component
00033     SGChannel           gSGChanVideo;           // the sequence grabber channel component
00034     GWorldPtr           gPGWorld;               // gworld used for decompression
00035     Rect                gBoundsRect;            // rect we are drawing into
00036     ImageSequence       gDecomSeq;              // unique identifier for our decompression sequence
00037     ImageSequence       gDrawSeq;               // unique identifier for our draw sequence
00038     long                gImageSize;             // size of the image in our buffer to draw
00039     FindFacesInGWorld   *gFaceFinder;
00040 }
00041 
00042 -(ComponentResult)setupDecomp;
00043 -(ComponentResult)decompToWindow;
00044 -(void)doDecomp:(NSRect)rect;
00045 -(void)drawRect:(NSRect)rect;
00046 -(void) sgIdleTimer:(id)sender;
00047 -(OSErr) doSeqGrab:(NSRect)grabRect;
00048 -(GWorldPtr)gworld;
00049 -(ImageSequence)decomSeq;
00050 -(ImageSequence)drawSeq;
00051 -(SGChannel)sgChanVideo;
00052 -(Rect)boundsRect;
00053 -(void)endGrab;
00054 
00055 -(void)FindFaces;
00056 
00057 
00058 @end
00059 
00060 pascal OSErr mySGDataProc(SGChannel c, 
00061                             Ptr p,
00062                             long len,
00063                             long *offset,
00064                             long chRefCon,
00065                             TimeValue time,
00066                             short writeType, 
00067                             long refCon);
00068 void saveQDViewObjectForCallback(void *theObject);

Generated on Mon Nov 8 17:07:46 2004 for MPT by  doxygen 1.3.9.1