Logo ROOT   6.08/07
Reference Guide
QuartzFillArea.h
Go to the documentation of this file.
1 // @(#)root/graf2d:$Id$
2 // Author: Olivier Couet, 23/01/2012
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2011, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_QuartzFillArea
13 #define ROOT_QuartzFillArea
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // QuartzFillArea //
18 // //
19 // Aux. functions to draw fill area. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include <vector>
24 
25 #include <Cocoa/Cocoa.h>
26 
27 #ifndef ROOT_TAttFill
28 #include "TAttFill.h"
29 #endif
30 #ifndef ROOT_Rtypes
31 #include "Rtypes.h"
32 #endif
33 
34 #ifndef ROOT_TPoint
35 #include "TPoint.h"
36 #endif
37 
38 class TColorGradient;
39 
40 namespace ROOT {
41 namespace Quartz {
42 
43 Bool_t SetFillColor(CGContextRef ctx, Color_t colorIndex);
44 Bool_t SetFillAreaParameters(CGContextRef ctx, unsigned *patternIndex);
45 
46 //TODO: fix this crap - x1x2 x3 etc. - CGRect!
47 void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow);
48 void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow);
49 
50 //
51 void DrawPolygonWithGradientFill(CGContextRef ctx, const TColorGradient *extendedColor, const CGSize &sizeOfDrawable,
52  Int_t nPoints, const TPoint *xy, Bool_t drawShadow);
53 
54 }
55 }
56 
57 #endif
Bool_t SetFillAreaParameters(CGContextRef ctx, unsigned *patternIndex)
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition: StringConv.hxx:21
Bool_t SetFillColor(CGContextRef ctx, Color_t colorIndex)
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
static const double x2[5]
short Color_t
Definition: RtypesCore.h:79
Definition: TPoint.h:33
void DrawFillArea(CGContextRef ctx, Int_t n, TPoint *xy, Bool_t drawShadow)
XPoint xy[kMAXMK]
Definition: TGX11.cxx:122
void DrawPolygonWithGradientFill(CGContextRef ctx, const TColorGradient *extendedColor, const CGSize &sizeOfDrawable, Int_t nPoints, const TPoint *xy, Bool_t drawShadow)
static const double x1[5]
void DrawBox(CGContextRef ctx, Int_t x1, Int_t y1, Int_t x2, Int_t y2, bool hollow)
TColorGradient extends basic TColor.
const Int_t n
Definition: legend1.C:16