PaintArc & compiling mex files

Hello,
Is there any command in the psychtoolbox (Mac version) which is
analogous to the PaintArc command in QuickDraw, which can fill an arc
or wedge? The toobox does contain a FrameArc command, but I could not
find an analogous fill version. I have used the PaintArc command to
create counterphase flickering checkerboards, of the type used by
tootell in his fMRI retinotopy studies. The checkerboard is quickly
drawn by successively filling arcs, defined at smaller radii, at a
particular spoke or sector, and then repeating the process at
successive sectors.

Second question. I have tried to generate mex files using
CodeWarrior 6.0 (IDE 4.1). So far I have been able to do so only from
within CodeWarrior itself. This is not very efficient since I need to
set the appropriate flags in the preference menu each time. There
should be a way to use the "mex" function to generate mex files from
the MATLAB command window. However I have not been able to use the mex
function yet. I think the problem is related to not being able to set
the MEXOPTS file correctly. Do you have any suggestions?

Thanks for your help.

-Giovanni d'Avossa
NeuroImaging Lab, Washington University Medical School
>Hello,
> Is there any command in the psychtoolbox (Mac version) which is
>analogous to the PaintArc command in QuickDraw, which can fill an arc
>or wedge? The toobox does contain a FrameArc command, but I could not
>find an analogous fill version. I have used the PaintArc command to
>create counterphase flickering checkerboards, of the type used by
>tootell in his fMRI retinotopy studies. The checkerboard is quickly
>drawn by successively filling arcs, defined at smaller radii, at a
>particular spoke or sector, and then repeating the process at
>successive sectors.

Currently there is not such a function. I agree that there could be
and in fact it adding it is on a TODO list somewhere. It should
be pretty easy for you to add at the C level.....

>Second question. I have tried to generate mex files using
>CodeWarrior 6.0 (IDE 4.1). So far I have been able to do so only from
>within CodeWarrior itself. This is not very efficient since I need to
>set the appropriate flags in the preference menu each time. There
>should be a way to use the "mex" function to generate mex files from
>the MATLAB command window. However I have not been able to use the mex
>function yet. I think the problem is related to not being able to set
>the MEXOPTS file correctly. Do you have any suggestions?

We have always done it from within CW, never using the mex
command. I don't understand your comment about the
preferences, however. Once a project is set up, you shouldn't
have to do anything by hit Make. But you do have to
set up a separate project for every MEX file (or at least
that is what we do).

The PsychSource subfolder "Scripts" contains an AppleScript
that will set the CW options correctly for making a PsychToolbox
mex file -- you just drop your project on it. Also, there
is a script that will make every project in a folder and
subfolders. (I am not sure that these have been updated
for CW 5, let alone CW 6, however.)

DB