Logo ROOT   6.10/09
Reference Guide
Macros | Functions | Variables
TASImage.cxx File Reference
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_GLYPH_H>
#include "TASImage.h"
#include "TASImagePlugin.h"
#include "TROOT.h"
#include "TMath.h"
#include "TSystem.h"
#include "TVirtualX.h"
#include "TVirtualPad.h"
#include "TArrayD.h"
#include "TVectorD.h"
#include "TVirtualPS.h"
#include "TGaxis.h"
#include "TColor.h"
#include "TObjArray.h"
#include "TArrayL.h"
#include "TPoint.h"
#include "TFrame.h"
#include "TTF.h"
#include "TRandom.h"
#include "Riostream.h"
#include "THashTable.h"
#include "TPluginManager.h"
#include "TEnv.h"
#include "TStyle.h"
#include "TText.h"
#include "RConfigure.h"
#include "TVirtualPadPainter.h"
#include <X11/Xlib.h>
#include <afterbase.h>
#include <afterimage.h>
#include <bmp.h>
#include <draw.h>
#include "TASPolyUtils.c"
Include dependency graph for TASImage.cxx:

Macros

#define _alphaBlend(bot, top)
 
#define _MEMSET_(dst, lng, val)
 
#define FillSpansInternal(npt, ppt, widths, color)
 

Functions

static ASDrawContext * create_draw_context_argb32 (ASImage *im, ASDrawTool *brush)
 Create draw context. More...
 
static void destroy_asdraw_context32 (ASDrawContext *ctx)
 Destroy asdraw context32. More...
 
static ARGB32 GetAverage (ARGB32 foreground, ARGB32 background)
 Get average. More...
 
static ARGB32 GetHilite (ARGB32 background)
 Calculate highlite color. More...
 
static int GetPolyYBounds (TPoint *pts, int n, int *by, int *ty)
 Get poly bounds along Y. More...
 
static ARGB32 GetShadow (ARGB32 background)
 Calculate shadow color. More...
 
static void init_icon_paths ()
 Set icons paths. More...
 
static CARD8 MakeComponentHilite (int cmp)
 Make component hilite. More...
 

Variables

static CARD32 gBrushCache [kBrushCacheSize *kBrushCacheSize]
 
static ASFontManager * gFontManager = 0
 
static char * gIconPaths [7] = {0, 0, 0, 0, 0, 0, 0}
 
static unsigned long kAllPlanes = ~0
 
static const UInt_t kBrushCacheSize = 20
 
const Float_t kScale = 0.985
 
static const UInt_t NUMPTSTOBUFFER = 512
 

Macro Definition Documentation

◆ _alphaBlend

#define _alphaBlend (   bot,
  top 
)
Value:
{\
__argb32__ *T = (__argb32__*)(top);\
__argb32__ *B = (__argb32__*)(bot);\
int aa = 255-T->a;\
if (!aa) {\
*bot = *top;\
} else { \
B->a = ((B->a*aa)>>8) + T->a;\
B->r = (B->r*aa + T->r*T->a)>>8;\
B->g = (B->g*aa + T->g*T->a)>>8;\
B->b = (B->b*aa + T->b*T->a)>>8;\
}\
}\
static double B[]
double T(double x)
Definition: ChebyshevPol.h:34

Definition at line 154 of file TASImage.cxx.

◆ _MEMSET_

#define _MEMSET_ (   dst,
  lng,
  val 
)
Value:
do {\
for( UInt_t j=0; j < lng; j++) *((dst)+j) = val; } while (0)
unsigned int UInt_t
Definition: RtypesCore.h:42

Definition at line 3720 of file TASImage.cxx.

◆ FillSpansInternal

#define FillSpansInternal (   npt,
  ppt,
  widths,
  color 
)
Value:
do {\
UInt_t yy = ppt[0].fY*fImage->width;\
for (UInt_t i = 0; i < npt; i++) {\
_MEMSET_(&fImage->alt.argb32[Idx(yy + ppt[i].fX)], widths[i], color);\
yy += ((i+1 < npt) && (ppt[i].fY != ppt[i+1].fY) ? fImage->width : 0);\
}\
} while (0)
unsigned int UInt_t
Definition: RtypesCore.h:42

Definition at line 3725 of file TASImage.cxx.

Function Documentation

◆ create_draw_context_argb32()

static ASDrawContext* create_draw_context_argb32 ( ASImage *  im,
ASDrawTool *  brush 
)
static

Create draw context.

Definition at line 5636 of file TASImage.cxx.

◆ destroy_asdraw_context32()

static void destroy_asdraw_context32 ( ASDrawContext *  ctx)
static

Destroy asdraw context32.

Definition at line 5653 of file TASImage.cxx.

◆ GetAverage()

static ARGB32 GetAverage ( ARGB32  foreground,
ARGB32  background 
)
static

Get average.

(used internally)

Definition at line 3223 of file TASImage.cxx.

◆ GetHilite()

static ARGB32 GetHilite ( ARGB32  background)
static

Calculate highlite color.

(used internally)

Definition at line 3202 of file TASImage.cxx.

◆ GetPolyYBounds()

static int GetPolyYBounds ( TPoint pts,
int  n,
int *  by,
int *  ty 
)
static

Get poly bounds along Y.

Definition at line 5177 of file TASImage.cxx.

◆ GetShadow()

static ARGB32 GetShadow ( ARGB32  background)
static

Calculate shadow color.

(used internally)

Definition at line 3214 of file TASImage.cxx.

◆ init_icon_paths()

static void init_icon_paths ( )
static

Set icons paths.

Definition at line 361 of file TASImage.cxx.

◆ MakeComponentHilite()

static CARD8 MakeComponentHilite ( int  cmp)
static

Make component hilite.

(used internally)

Definition at line 3188 of file TASImage.cxx.

Variable Documentation

◆ gBrushCache

CARD32 gBrushCache[kBrushCacheSize *kBrushCacheSize]
static

Definition at line 5662 of file TASImage.cxx.

◆ gFontManager

ASFontManager* gFontManager = 0
static

Definition at line 120 of file TASImage.cxx.

◆ gIconPaths

char* gIconPaths[7] = {0, 0, 0, 0, 0, 0, 0}
static

Definition at line 125 of file TASImage.cxx.

◆ kAllPlanes

unsigned long kAllPlanes = ~0
static

Definition at line 121 of file TASImage.cxx.

◆ kBrushCacheSize

const UInt_t kBrushCacheSize = 20
static

Definition at line 5661 of file TASImage.cxx.

◆ kScale

const Float_t kScale = 0.985

Definition at line 128 of file TASImage.cxx.

◆ NUMPTSTOBUFFER

const UInt_t NUMPTSTOBUFFER = 512
static

Definition at line 5428 of file TASImage.cxx.