ROOT  6.06/09
Reference Guide
Macros | Functions | Variables
TASImage.cxx File Reference
#include <ft2build.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:

Go to the source code of this file.

Macros

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

Functions

 ClassImp (TASImage) ClassImp(TASImagePlugin) void TASImage
 Destroy image. More...
 
static void init_icon_paths ()
 Set icons paths. More...
 
static CARD8 MakeComponentHilite (int cmp)
 Make component hilite. More...
 
static ARGB32 GetHilite (ARGB32 background)
 Calculate highlite color. More...
 
static ARGB32 GetShadow (ARGB32 background)
 Calculate shadow color. More...
 
static ARGB32 GetAverage (ARGB32 foreground, ARGB32 background)
 Get average. More...
 
static int GetPolyYBounds (TPoint *pts, int n, int *by, int *ty)
 Get poly bounds along Y. More...
 
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...
 

Variables

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

Macro Definition Documentation

#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;\
}\
}\
if(pyself &&pyself!=Py_None)

Definition at line 151 of file TASImage.cxx.

Referenced by TASImage::AlphaBlend(), TASImage::DrawDashHLine(), TASImage::DrawDashVLine(), TASImage::DrawDashZLine(), TASImage::DrawHLine(), TASImage::DrawLineInternal(), TASImage::DrawVLine(), TASImage::FillRectangleInternal(), TASImage::FillSpans(), TASImage::PolyPoint(), and TASImage::PutPixel().

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

Definition at line 3714 of file TASImage.cxx.

Referenced by TASImage::FillRectangleInternal().

#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[yy + ppt[i].fX], widths[i], color);\
yy += ((i+1 < npt) && (ppt[i].fY != ppt[i+1].fY) ? fImage->width : 0);\
}\
} while (0)
for(Int_t i=0;i< n;i++)
Definition: legend1.C:18
unsigned int UInt_t
Definition: RtypesCore.h:42
#define _MEMSET_(dst, lng, val)
Definition: TASImage.cxx:3714

Definition at line 3719 of file TASImage.cxx.

Referenced by TASImage::DrawFillArea(), and TASImage::FillPolygon().

Function Documentation

ClassImp ( TASImage  )

Destroy image.

Definition at line 166 of file TASImage.cxx.

static ASDrawContext* create_draw_context_argb32 ( ASImage *  im,
ASDrawTool *  brush 
)
static
static void destroy_asdraw_context32 ( ASDrawContext *  ctx)
static
static ARGB32 GetAverage ( ARGB32  foreground,
ARGB32  background 
)
static

Get average.

(used internally)

Definition at line 3217 of file TASImage.cxx.

Referenced by TASImage::Bevel().

static ARGB32 GetHilite ( ARGB32  background)
static

Calculate highlite color.

(used internally)

Definition at line 3196 of file TASImage.cxx.

Referenced by TASImage::Bevel(), and ClassImp().

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

Get poly bounds along Y.

Definition at line 5148 of file TASImage.cxx.

Referenced by TASImage::GetPolygonSpans().

static ARGB32 GetShadow ( ARGB32  background)
static

Calculate shadow color.

(used internally)

Definition at line 3208 of file TASImage.cxx.

Referenced by TASImage::Bevel(), and ClassImp().

static void init_icon_paths ( )
static

Set icons paths.

Definition at line 360 of file TASImage.cxx.

Referenced by TASImage::ReadImage().

static CARD8 MakeComponentHilite ( int  cmp)
static

Make component hilite.

(used internally)

Definition at line 3182 of file TASImage.cxx.

Referenced by GetHilite().

Variable Documentation

CARD32 gBrushCache[kBrushCacheSize *kBrushCacheSize]
static
ASFontManager* gFontManager = 0
static

Definition at line 120 of file TASImage.cxx.

Referenced by TASImage::DrawText().

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

Definition at line 125 of file TASImage.cxx.

Referenced by init_icon_paths(), and TASImage::ReadImage().

unsigned long kAllPlanes = ~0
static

Definition at line 121 of file TASImage.cxx.

Referenced by TASImage::FromPad(), TASImage::FromWindow(), and TASImage::SetImage().

const UInt_t kBrushCacheSize = 20
static
const UInt_t NUMPTSTOBUFFER = 512
static

Definition at line 5399 of file TASImage.cxx.

Referenced by TASImage::DrawFillArea().