draw.c File Reference

#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "afterbase.h"
#include "asvisual.h"
#include "asimage.h"
#include "draw.h"

Go to the source code of this file.

Classes

struct  ASCubicBezier
struct  ASScanlinePart

Defines

#define Long64_t   long long
#define CTX_SELECT_CANVAS(ctx)   (get_flags((ctx)->flags, ASDrawCTX_UsingScratch)?(ctx)->scratch_canvas:(ctx)->canvas)
#define CTX_PUT_PIXEL(ctx, x, y, ratio)   (ctx)->apply_tool_func(ctx,x,y,ratio)
#define CTX_FILL_HLINE(ctx, x_from, y, x_to, ratio)   (ctx)->fill_hline_func(ctx,x_from,y,x_to,ratio)
#define CTX_DEFAULT_FILL_THRESHOLD   126
#define CTX_ELLIPS_FILL_THRESHOLD   140
#define RATIO_t   int
#define SUPERSAMPLING_BITS   8
#define SUPERSAMPLING_MASK   0x000000FF
#define ADD_CubicBezier(X0, Y0, X1, Y1, X2, Y2, X3, Y3)
#define ADD_ScanlinePart(X0, Y0, X1)

Functions

static void apply_tool_2D (ASDrawContext *ctx, int curr_x, int curr_y, CARD32 ratio)
static void alpha_blend_point_argb32 (CARD32 *dst, CARD32 value, CARD32 ratio)
static void apply_tool_2D_colored (ASDrawContext *ctx, int curr_x, int curr_y, CARD32 ratio)
static void apply_tool_point (ASDrawContext *ctx, int curr_x, int curr_y, CARD32 ratio)
static void apply_tool_point_colored (ASDrawContext *ctx, int curr_x, int curr_y, CARD32 ratio)
static void fill_hline_notile (ASDrawContext *ctx, int x_from, int y, int x_to, CARD32 ratio)
static void fill_hline_notile_colored (ASDrawContext *ctx, int x_from, int y, int x_to, CARD32 ratio)
static void ctx_draw_line_solid (ASDrawContext *ctx, int from_x, int from_y, int to_x, int to_y)
static void ctx_draw_line_solid_aa (ASDrawContext *ctx, int from_x, int from_y, int to_x, int to_y)
static void render_supersampled_pixel (ASDrawContext *ctx, int xs, int ys)
static void ctx_draw_bezier (ASDrawContext *ctx, int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3)
static void ctx_flood_fill (ASDrawContext *ctx, int x_from, int y, int x_to, CARD32 min_val, CARD32 max_val)
Bool clip_line (int k, int x0, int y0, int cw, int ch, int *x, int *y)
Bool asim_set_brush (ASDrawContext *ctx, int brush)
ASDrawContextcreate_asdraw_context (unsigned int width, unsigned int height)
void destroy_asdraw_context (ASDrawContext *ctx)
Bool asim_set_custom_brush (ASDrawContext *ctx, ASDrawTool *brush)
Bool asim_set_custom_brush_colored (ASDrawContext *ctx, ASDrawTool *brush)
Bool asim_start_path (ASDrawContext *ctx)
void asim_flood_fill (ASDrawContext *ctx, int x, int y, CARD32 min_val, CARD32 max_val)
Bool asim_apply_path (ASDrawContext *ctx, int start_x, int start_y, Bool fill, int fill_start_x, int fill_start_y, CARD8 fill_threshold)
Bool apply_asdraw_context (ASImage *im, ASDrawContext *ctx, ASFlagType filter)
void asim_move_to (ASDrawContext *ctx, int dst_x, int dst_y)
void asim_line_to_generic (ASDrawContext *ctx, int dst_x, int dst_y, void(*func)(ASDrawContext *, int, int, int, int))
void asim_line_to (ASDrawContext *ctx, int dst_x, int dst_y)
void asim_line_to_aa (ASDrawContext *ctx, int dst_x, int dst_y)
void asim_cube_bezier (ASDrawContext *ctx, int x1, int y1, int x2, int y2, int x3, int y3)
static int asim_sin (int angle)
int asim_sqrt (double sval)
void asim_straight_ellips (ASDrawContext *ctx, int x, int y, int rx, int ry, Bool fill)
void asim_circle (ASDrawContext *ctx, int x, int y, int r, Bool fill)
void asim_ellips (ASDrawContext *ctx, int x, int y, int rx, int ry, int angle, Bool fill)
void asim_ellips2 (ASDrawContext *ctx, int x, int y, int rx, int ry, int angle, Bool fill)
void asim_rectangle (ASDrawContext *ctx, int x, int y, int width, int height)

Variables

CARD32 _round1x1 [1]
CARD32 _round3x3 [9]
CARD32 _round3x3_solid [9]
CARD32 _round5x5 [25]
CARD32 _round5x5_solid [25]
ASDrawTool StandardBrushes [AS_DRAW_BRUSHES]
const signed int ASIM_SIN [91]


Define Documentation

#define ADD_CubicBezier ( X0,
Y0,
X1,
Y1,
X2,
Y2,
X3,
Y3   ) 

Value:

do{ \
                if( ((X0)>=0 || (X1)>=0 || (X2)>=0 || (X3)>=0) && ((X0)<cw||(X1)<cw||(X2)<cw||(X3)<cw) && \
                        ((Y0)>=0 || (Y1)>=0 || (Y2)>=0 || (Y3)>=0) && ((Y0)<ch||(Y1)<ch||(Y2)<ch||(Y3)<ch) ){ \
                        while( bstack_used >= bstack_size ) { \
                                bstack_size += 2048/sizeof(ASCubicBezier); \
                                bstack = (ASCubicBezier *)realloc( bstack, bstack_size*sizeof(ASCubicBezier)); \
                        } \
                        LOCAL_DEBUG_OUT( "(%d,%d),(%d,%d),(%d,%d),(%d,%d)", X0, Y0, X1, Y1, X2, Y2, X3, Y3 ); \
                        bstack[bstack_used].x0=X0; \
                        bstack[bstack_used].y0=Y0; \
                        bstack[bstack_used].x1=X1; \
                        bstack[bstack_used].y1=Y1; \
                        bstack[bstack_used].x2=X2; \
                        bstack[bstack_used].y2=Y2; \
                        bstack[bstack_used].x3=X3; \
                        bstack[bstack_used].y3=Y3; \
                        ++bstack_used ; \
                } \
        }while(0)

Referenced by ctx_draw_bezier().

#define ADD_ScanlinePart ( X0,
Y0,
X1   ) 

Value:

do{ \
                if( ((X0)>=0 || (X1)>=0 ) && ((X0)<cw||(X1)<cw) && \
                         (Y0)>=0 && (Y0)<ch ){ \
                        while( sstack_used >= sstack_size ) { \
                                sstack_size += 2048/sizeof(ASScanlinePart); \
                                sstack = realloc( sstack, sstack_size*sizeof(ASScanlinePart)); \
                        } \
                        LOCAL_DEBUG_OUT( "(%d,%d,%d)", X0, Y0, X1 ); \
                        sstack[sstack_used].x0=X0; \
                        sstack[sstack_used].y=Y0; \
                        sstack[sstack_used].x1=X1; \
                        ++sstack_used ; \
                } \
        }while(0)

Referenced by ctx_flood_fill().

#define CTX_DEFAULT_FILL_THRESHOLD   126

Definition at line 57 of file draw.c.

Referenced by asim_apply_path().

#define CTX_ELLIPS_FILL_THRESHOLD   140

Definition at line 58 of file draw.c.

Referenced by asim_ellips(), and asim_straight_ellips().

#define CTX_FILL_HLINE ( ctx,
x_from,
y,
x_to,
ratio   )     (ctx)->fill_hline_func(ctx,x_from,y,x_to,ratio)

Definition at line 54 of file draw.c.

Referenced by asim_ellips2(), asim_straight_ellips(), and ctx_flood_fill().

#define CTX_PUT_PIXEL ( ctx,
x,
y,
ratio   )     (ctx)->apply_tool_func(ctx,x,y,ratio)

Definition at line 53 of file draw.c.

Referenced by asim_ellips2(), ctx_draw_line_solid(), ctx_draw_line_solid_aa(), and render_supersampled_pixel().

#define CTX_SELECT_CANVAS ( ctx   )     (get_flags((ctx)->flags, ASDrawCTX_UsingScratch)?(ctx)->scratch_canvas:(ctx)->canvas)

Definition at line 51 of file draw.c.

Referenced by apply_tool_2D(), apply_tool_2D_colored(), apply_tool_point(), apply_tool_point_colored(), asim_flood_fill(), ctx_flood_fill(), fill_hline_notile(), and fill_hline_notile_colored().

#define Long64_t   long long

Definition at line 32 of file draw.c.

Referenced by TEventList::Add(), TEntryList::Add(), TDSet::Add(), TChain::Add(), THnSparse::AddBinContent(), TMVA::MethodBase::AddClassifierOutput(), TMVA::MethodBase::AddClassifierOutputProb(), TChain::AddFile(), TChain::AddFileInfoList(), TFree::AddFree(), THnSparse::AddInternal(), TMVA::MethodBase::AddMulticlassOutput(), TProofPlayerRemote::AddOutput(), TProofPlayerRemote::AddOutputObject(), TPacketizerUnit::TSlaveStat::AddProcessed(), TPacketizerFile::TSlaveStat::AddProcessed(), TPacketizer::TSlaveStat::AddProcessed(), TPacketizerAdaptive::AddProcessed(), TSqlRegistry::AddRegCmd(), TMVA::MethodBase::AddRegressionOutput(), TGFileBrowser::AddRemoteFile(), TRootBrowserLite::AddToTree(), TParallelCoord::AddVariable(), TSpider::AddVariable(), ROOT::TTreeProxyGenerator::AnalyzeElement(), TFileDrawMap::AnimateTree(), TTreeIndex::Append(), TMVA::ApplicationCreateCombinedTree(), asim_sqrt(), asim_straight_ellips(), TDataType::AsString(), sqlio::atol64(), TTree::AutoSave(), basic2(), TODBCStatement::BindColumn(), TODBCStatement::BindParam(), Build_Timing_Tree(), TMVA::DataSetFactory::BuildEventVector(), TMVA::MethodBoost::CalcMethodWeight(), TMVA::MethodBoost::CalcMVAValues(), TPacketizerAdaptive::CalculatePacketSize(), TMVA::VariablePCATransform::CalculatePrincipalComponents(), TMVA::MethodPDEFoam::CalcXminXmax(), TProofServ::CatMotd(), TTimeHists::Check(), TMacro::Checksum(), ClassApplication(), ClassImp(), TDataSetManagerFile::ClearCache(), TGFileBrowser::Clicked(), TTree::CloneTree(), TPacketizerAdaptive::TFileStat::Compare(), THnSparse::ComputeIntegral(), TMVA::Tools::ComputeStat(), TEntryList::Contains(), TEventList::ContainsRange(), TODBCStatement::ConvertToNumeric(), TODBCStatement::ConvertToString(), TTree::CopyEntries(), TDocOutput::CopyHtmlFile(), TTreePlayer::CopyTree(), TFile::Cp(), TPacketizerMulti::CreatePacketizer(), TLM::DataReady(), TSQLFile::DefineNextKeyId(), TTree::Delete(), TKey::Delete(), TSQLFile::DeleteKeyFromDB(), TStreamerInfo::DestructorImpl(), TUnixSystem::DispatchTimers(), THnSparse::Divide(), do_anadist_ds(), do_ls_files_server(), TProofProgressMemoryPlot::DoAveragePlot(), TParallelCoordEditor::DoEntriesToDraw(), TParallelCoordEditor::DoFirstEntry(), TFitEditor::DoFit(), TH2::DoFitSlices(), TSpiderEditor::DoGotoEntry(), TParallelCoordEditor::DoLiveEntriesToDraw(), TProofProgressMemoryPlot::DoMasterPlot(), TParallelCoordEditor::DoNentries(), TEveManager::DoRedraw3D(), double32(), TGFileBrowser::DoubleClicked(), TProofProgressMemoryPlot::DoWorkerPlot(), TProofChain::Draw(), TTreePlayer::DrawScript(), TProofPlayerRemote::DrawSelect(), TTreePlayer::DrawSelect(), TProof::DrawSelect(), TQObject::Emit(), TEntryList::Enter(), TEventList::Enter(), equals(), TFormula::EvalParFast(), TFormula::EvalParOld(), TMemStatShow::EventInfo1(), TMVA::DataSet::EventResult(), TTreeViewer::ExecuteDraw(), TQSlot::ExecuteMethod(), TTreeViewer::ExecuteSpider(), TBranch::ExpandBasketArrays(), TLeafL::Export(), TFileCollection::ExportInfo(), TMD5::FileChecksum(), TTreePerfStats::FileReadEvent(), TBranchElement::Fill(), TTree::Fill(), TTreeCacheUnzip::FillBuffer(), TTreeCache::FillBuffer(), TKey::FillBuffer(), THnSparse::FillExMap(), TBranchElement::FillLeaves(), TProofPlayerLite::Finalize(), TProofPlayerRemote::Finalize(), TQueryResultManager::FinalizeQuery(), TZIPFile::FindEndHeader(), TTreeFormula::FindLeafForExpression(), TSQLStructure::FindMaxObjectId(), TMVA::MethodBoost::FindMVACut(), FindRange(), TTreePlayer::Fit(), TGFileBrowser::FormatFileInfo(), FormatToolTip(), G__G__Base1_7_0_104(), G__G__Base1_7_0_120(), G__G__Base1_7_0_137(), G__G__Base1_7_0_153(), G__G__Base1_7_0_174(), G__G__Base1_7_0_189(), G__G__Base1_7_0_89(), G__G__Base1_8_0_76(), G__G__Base2_110_0_13(), G__G__Base2_111_0_22(), G__G__Base2_13_0_45(), G__G__Base2_242_0_90(), G__G__Base2_263_0_2(), G__G__Base3_127_0_2(), G__G__Base3_127_0_6(), G__G__Base3_127_0_7(), G__G__Base3_127_0_9(), G__G__Base3_182_0_15(), G__G__Base3_182_0_16(), G__G__Base3_182_0_17(), G__G__Base3_182_0_18(), G__G__Base3_182_0_19(), G__G__Base3_182_0_3(), G__G__Base3_182_0_4(), G__G__Base3_183_0_17(), G__G__Base3_183_0_3(), G__G__Base3_186_0_13(), G__G__Clarens_100_0_4(), G__G__Clarens_101_0_6(), G__G__Cont_104_0_15(), G__G__Cont_104_0_17(), G__G__Cont_104_0_19(), G__G__Cont_104_0_3(), G__G__Cont_104_0_6(), G__G__Cont_104_0_7(), G__G__Cont_107_0_31(), G__G__Cont_107_0_39(), G__G__Cont_148_0_5(), G__G__Cont_148_0_6(), G__G__Cont_149_0_14(), G__G__Cont_149_0_15(), G__G__Cont_149_0_16(), G__G__Cont_149_0_17(), G__G__Cont_149_0_18(), G__G__Cont_149_0_19(), G__G__Cont_149_0_20(), G__G__Cont_149_0_7(), G__G__Cont_149_0_8(), G__G__Cont_149_0_9(), G__G__Geom1_228_0_48(), G__G__GeomPainter_109_0_21(), G__G__Gui2_293_0_3(), G__G__Gui3_394_0_24(), G__G__Hbook_215_0_8(), G__G__Hist_101_0_39(), G__G__Hist_101_0_41(), G__G__Hist_101_0_43(), G__G__Hist_101_0_47(), G__G__Hist_101_0_49(), G__G__Hist_101_0_75(), G__G__Hist_101_0_77(), G__G__IO_111_0_116(), G__G__IO_111_0_117(), G__G__IO_111_0_125(), G__G__IO_111_0_55(), G__G__IO_111_0_70(), G__G__IO_111_0_77(), G__G__IO_111_0_79(), G__G__IO_111_0_80(), G__G__IO_111_0_86(), G__G__IO_111_0_90(), G__G__IO_111_0_91(), G__G__IO_202_0_14(), G__G__IO_213_0_11(), G__G__IO_213_0_13(), G__G__IO_213_0_14(), G__G__IO_213_0_8(), G__G__IO_214_0_8(), G__G__IO_214_0_9(), G__G__IO_223_0_10(), G__G__IO_223_0_11(), G__G__IO_223_0_2(), G__G__IO_223_0_3(), G__G__Math_99_0_12(), G__G__Math_99_0_180(), G__G__Math_99_0_181(), G__G__Math_99_0_182(), G__G__Math_99_0_183(), G__G__Math_99_0_184(), G__G__Math_99_0_185(), G__G__Math_99_0_186(), G__G__Math_99_0_187(), G__G__Math_99_0_188(), G__G__Math_99_0_189(), G__G__Math_99_0_190(), G__G__Math_99_0_191(), G__G__Math_99_0_192(), G__G__Math_99_0_193(), G__G__Math_99_0_194(), G__G__Math_99_0_195(), G__G__Math_99_0_196(), G__G__Math_99_0_197(), G__G__Math_99_0_198(), G__G__Math_99_0_199(), G__G__Math_99_0_200(), G__G__Math_99_0_201(), G__G__Math_99_0_202(), G__G__Math_99_0_203(), G__G__Math_99_0_204(), G__G__Math_99_0_205(), G__G__Math_99_0_206(), G__G__Math_99_0_207(), G__G__Math_99_0_208(), G__G__Math_99_0_209(), G__G__Math_99_0_21(), G__G__Math_99_0_210(), G__G__Math_99_0_211(), G__G__Math_99_0_212(), G__G__Math_99_0_213(), G__G__Math_99_0_214(), G__G__Math_99_0_215(), G__G__Math_99_0_216(), G__G__Math_99_0_217(), G__G__Math_99_0_218(), G__G__Math_99_0_219(), G__G__Math_99_0_220(), G__G__Math_99_0_221(), G__G__Math_99_0_222(), G__G__Math_99_0_223(), G__G__Math_99_0_224(), G__G__Math_99_0_225(), G__G__Math_99_0_226(), G__G__Math_99_0_227(), G__G__Math_99_0_234(), G__G__Math_99_0_235(), G__G__Math_99_0_236(), G__G__Math_99_0_237(), G__G__Math_99_0_238(), G__G__Math_99_0_239(), G__G__Math_99_0_240(), G__G__Math_99_0_241(), G__G__Math_99_0_242(), G__G__Math_99_0_243(), G__G__Math_99_0_244(), G__G__Math_99_0_245(), G__G__Math_99_0_31(), G__G__Math_99_0_4(), G__G__MemStat_116_0_1(), G__G__Meta_127_0_25(), G__G__Meta_160_0_101(), G__G__Net_170_0_20(), G__G__Net_208_0_11(), G__G__Net_279_0_11(), G__G__PeacGui_106_0_1(), G__G__PeacGui_106_0_2(), G__G__Proof_132_0_40(), G__G__Proof_138_0_12(), G__G__Proof_138_0_13(), G__G__Proof_138_0_14(), G__G__Proof_138_0_30(), G__G__Proof_138_0_7(), G__G__Proof_142_0_125(), G__G__Proof_142_0_126(), G__G__Proof_142_0_127(), G__G__Proof_142_0_128(), G__G__Proof_142_0_129(), G__G__Proof_142_0_130(), G__G__Proof_142_0_224(), G__G__Proof_142_0_253(), G__G__Proof_142_0_256(), G__G__Proof_142_0_257(), G__G__Proof_142_0_258(), G__G__Proof_142_0_262(), G__G__Proof_142_0_302(), G__G__Proof_143_0_26(), G__G__Proof_143_0_27(), G__G__Proof_145_0_11(), G__G__Proof_145_0_14(), G__G__Proof_145_0_16(), G__G__Proof_145_0_24(), G__G__Proof_145_0_27(), G__G__Proof_145_0_28(), G__G__Proof_145_0_4(), G__G__Proof_153_0_94(), G__G__Proof_153_0_97(), G__G__Proof_264_0_13(), G__G__Proof_265_0_23(), G__G__Proof_291_0_2(), G__G__Proof_291_0_27(), G__G__Proof_291_0_28(), G__G__Proof_291_0_29(), G__G__Proof_291_0_30(), G__G__Proof_291_0_44(), G__G__Proof_291_0_5(), G__G__Proof_299_0_1(), G__G__Proof_346_0_13(), G__G__Proof_353_0_1(), G__G__Proof_353_0_12(), G__G__Proof_353_0_13(), G__G__Proof_353_0_14(), G__G__Proof_353_0_15(), G__G__Proof_353_0_16(), G__G__Proof_353_0_17(), G__G__Proof_353_0_18(), G__G__ProofPlayer_126_0_8(), G__G__ProofPlayer_127_0_2(), G__G__ProofPlayer_128_0_2(), G__G__ProofPlayer_129_0_4(), G__G__ProofPlayer_152_0_28(), G__G__ProofPlayer_152_0_9(), G__G__ProofPlayer_161_0_16(), G__G__ProofPlayer_161_0_20(), G__G__ProofPlayer_175_0_4(), G__G__ProofPlayer_178_0_13(), G__G__ProofPlayer_182_0_5(), G__G__ProofPlayer_183_0_4(), G__G__SessionViewer_124_0_2(), G__G__SessionViewer_124_0_3(), G__G__SessionViewer_124_0_4(), G__G__SessionViewer_124_0_5(), G__G__SessionViewer_124_0_6(), G__G__SessionViewer_315_0_10(), G__G__SessionViewer_315_0_12(), G__G__SessionViewer_315_0_8(), G__G__SessionViewer_315_0_9(), G__G__SPlot_143_0_33(), G__G__SQL_132_0_19(), G__G__SQL_132_0_20(), G__G__SQL_132_0_53(), G__G__SQL_132_0_55(), G__G__SQL_132_0_56(), G__G__SQL_133_0_2(), G__G__SQL_134_0_2(), G__G__SQL_135_0_51(), G__G__SQL_135_0_52(), G__G__SQL_139_0_9(), G__G__SQL_177_0_4(), G__G__SQL_184_0_2(), G__G__SQL_185_0_5(), G__G__SQL_187_0_3(), G__G__TMVA1_360_0_104(), G__G__TMVA1_360_0_105(), G__G__TMVA1_360_0_106(), G__G__TMVA1_360_0_107(), G__G__TMVA1_360_0_134(), G__G__Tree_113_0_132(), G__G__Tree_113_0_133(), G__G__Tree_113_0_134(), G__G__Tree_113_0_144(), G__G__Tree_113_0_147(), G__G__Tree_113_0_148(), G__G__Tree_113_0_149(), G__G__Tree_113_0_158(), G__G__Tree_113_0_160(), G__G__Tree_113_0_161(), G__G__Tree_113_0_167(), G__G__Tree_113_0_168(), G__G__Tree_113_0_170(), G__G__Tree_113_0_171(), G__G__Tree_113_0_172(), G__G__Tree_113_0_175(), G__G__Tree_113_0_176(), G__G__Tree_113_0_181(), G__G__Tree_113_0_182(), G__G__Tree_113_0_183(), G__G__Tree_113_0_193(), G__G__Tree_113_0_196(), G__G__Tree_113_0_36(), G__G__Tree_113_0_38(), G__G__Tree_113_0_39(), G__G__Tree_113_0_45(), G__G__Tree_113_0_46(), G__G__Tree_113_0_52(), G__G__Tree_113_0_62(), G__G__Tree_113_0_74(), G__G__Tree_113_0_75(), G__G__Tree_113_0_81(), G__G__Tree_114_0_12(), G__G__Tree_114_0_13(), G__G__Tree_114_0_34(), G__G__Tree_114_0_35(), G__G__Tree_114_0_37(), G__G__Tree_114_0_66(), G__G__Tree_114_0_80(), G__G__Tree_114_0_82(), G__G__Tree_115_0_18(), G__G__Tree_115_0_19(), G__G__Tree_115_0_20(), G__G__Tree_115_0_22(), G__G__Tree_191_0_11(), G__G__Tree_191_0_12(), G__G__Tree_191_0_13(), G__G__Tree_191_0_14(), G__G__Tree_191_0_18(), G__G__Tree_194_0_27(), G__G__Tree_194_0_28(), G__G__Tree_194_0_29(), G__G__Tree_194_0_3(), G__G__Tree_194_0_30(), G__G__Tree_194_0_31(), G__G__Tree_194_0_32(), G__G__Tree_194_0_35(), G__G__Tree_194_0_4(), G__G__Tree_194_0_5(), G__G__Tree_194_0_6(), G__G__Tree_196_0_12(), G__G__Tree_196_0_6(), G__G__Tree_196_0_7(), G__G__Tree_196_0_9(), G__G__Tree_197_0_11(), G__G__Tree_197_0_27(), G__G__Tree_197_0_31(), G__G__Tree_197_0_9(), G__G__Tree_200_0_12(), G__G__Tree_234_0_21(), G__G__Tree_236_0_51(), G__G__Tree_236_0_7(), G__G__Tree_236_0_8(), G__G__Tree_236_0_9(), G__G__Tree_251_0_16(), G__G__Tree_251_0_17(), G__G__Tree_277_0_1(), G__G__Tree_280_0_17(), G__G__Tree_284_0_25(), G__G__Tree_297_0_28(), G__G__TreePlayer_127_0_10(), G__G__TreePlayer_127_0_3(), G__G__TreePlayer_391_0_33(), G__G__TreePlayer_391_0_34(), G__G__TreePlayer_391_0_35(), G__G__TreePlayer_422_0_35(), G__G__TreePlayer_423_0_16(), G__G__TreePlayer_428_0_4(), G__G__TreeViewer_220_0_40(), G__G__TreeViewer_220_0_47(), G__G__TreeViewer_276_0_13(), G__G__TreeViewer_276_0_27(), G__G__TreeViewer_276_0_31(), G__G__TreeViewer_295_0_19(), G__G__TreeViewer_295_0_20(), G__G__TreeViewer_295_0_56(), G__G__TreeViewer_295_0_8(), G__G__TreeViewer_298_0_5(), G__G__TreeViewer_298_0_54(), G__G__TreeViewer_298_0_55(), G__G__TreeViewer_298_0_6(), G__G__TreeViewer_298_0_68(), G__G__TreeViewer_320_0_5(), G__G__TreeViewer_320_0_6(), G__G__XML_135_0_4(), G__G__XML_135_0_5(), G__G__XML_135_0_6(), G__ManualTree2_126_0_132(), G__setup_memfuncmemstat(), G__setup_memfuncTDataSetManager(), G__setup_memfuncTDSet(), G__setup_memfuncTEventIter(), G__setup_memfuncTFile(), G__setup_memfuncTMath(), G__setup_memfuncTMemStatShow(), G__setup_memfuncTProof(), G__setup_memfuncTProofLog(), G__setup_memfuncTProofLogElem(), G__setup_memfuncTSQLStructure(), G__setup_memfuncTTree(), RooAcceptReject::generateEvent(), ProofAux::GenerateFriend(), ProofAux::GenerateTree(), TMath::GeomMean(), TBits::Get(), TFree::GetBestFree(), THnSparse::GetBinContent(), THnSparse::GetBinError(), THnSparse::GetBinIndexForCurrentBin(), TMVA::MethodBoost::GetBoostROCIntegral(), TXNetFile::GetBytesToPrefetch(), TFile::GetCompressionFactor(), ROOT::GetContainedClassName(), TVirtualPacketizer::GetEntries(), TDSet::GetEntries(), TProofChain::GetEntries(), TSpider::GetEntriesToProcess(), TTreePlayer::GetEntriesToProcess(), TEntryListFromFile::GetEntry(), TChain::GetEntry(), TEntryList::GetEntry(), TBranch::GetEntry(), TEntryList::GetEntryAndTree(), TEntryListFromFile::GetEntryAndTree(), TBranch::GetEntryExport(), TParallelCoord::GetEntryList(), TChain::GetEntryNumber(), TChainIndex::GetEntryNumberFriend(), TTreeIndex::GetEntryNumberFriend(), TChainIndex::GetEntryNumberWithBestIndex(), TTreeIndex::GetEntryNumberWithBestIndex(), TTreeIndex::GetEntryNumberWithIndex(), TChainIndex::GetEntryNumberWithIndex(), TTree::GetEntryWithIndex(), TChain::GetEntryWithIndex(), TPacketizerAdaptive::GetEstEntriesProcessed(), TMVA::DataSet::GetEvent(), TXProofMgr::GetFile(), TFTP::GetFile(), TAlienResult::GetFileInfoList(), TGLiteResult::GetFileInfoList(), TFileCollection::GetFilesOnServer(), TFileCollection::GetFilesPerServer(), TUnixSystem::GetFPEMask(), TWebFile::GetFromWeb10(), TParallelCoordVar::GetHistogram(), TEventList::GetIndex(), TFormLeafInfo::GetLocalValuePointer(), TOracleStatement::GetLong64(), TODBCStatement::GetLong64(), TTree::GetMaximum(), TChain::GetMaximum(), TChain::GetMinimum(), TTree::GetMinimum(), TParallelCoordVar::GetMinMaxMean(), TEventIterObj::GetNextEvent(), TEventIterUnit::GetNextEvent(), TEventIterTree::GetNextEvent(), TPacketizer::GetNextPacket(), TPacketizerUnit::GetNextPacket(), TProofServ::GetNextPacket(), TPacketizerAdaptive::GetNextPacket(), TPacketizerFile::GetNextPacket(), TRefProxy::GetObject(), TFileDrawMap::GetObjectInfoDir(), TSQLObjectDataPool::GetObjectRow(), TApplication::GetOptions(), THtml::GetOutputDir(), TFTP::GetPathInfo(), TSystem::GetPathInfo(), TXNetSystem::GetPathInfo(), TAlienSystem::GetPathInfo(), TF1::GetQuantiles(), TParallelCoordVar::GetQuantiles(), THnSparse::GetRandom(), TFile::GetSize(), TWebFile::GetSize(), THnSparse::GetSparseFractionMem(), TProof::GetStatistics(), TChainIndex::GetSubTreeIndex(), TMVA::MethodLD::GetSum(), TBranch::GetTotalSize(), TBranch::GetTotBytes(), TMVA::DataSet::GetTree(), TProofLite::GetTreeHeader(), TDataType::GetType(), TTreeTableInterface::GetValue(), TTreeTableInterface::GetValueAsString(), TStreamerInfo::GetValueAux(), GetWinNTMemInfo(), TBranch::GetZipBytes(), TGuiBldDragManager::HandleExpose(), TProofPlayerSlave::HandleGetTreeHeader(), TProof::HandleInputMessage(), TGTripleHSlider::HandleMotion(), TGDoubleHSlider::HandleMotion(), TGTripleVSlider::HandleMotion(), TGuiBldDragManager::HandleMotion(), TGDoubleVSlider::HandleMotion(), TGLBContainer::HandleMotion(), TProofServ::HandleProcess(), TProofServ::HandleSocketInput(), TVirtualPacketizer::HandleTimer(), TProofPlayerSuperMaster::HandleTimer(), TBranchElement::Init(), TTreeCacheUnzip::Init(), TDataSetManagerFile::Init(), TFile::Init(), TBranch::Init(), TBranchObject::Init(), TGFileItem::Init(), TTreeFormula::Init(), TTreeTableInterface::InitEntries(), TProofPlayerRemote::InitPacketizer(), TMVA::DataSet::InitSampling(), TSpider::InitVariables(), InspectDiff(), InspectRef(), TEventList::Intersect(), TSystemFile::IsDirectory(), RooStats::MCMCInterval::IsInInterval(), TSystemDirectory::IsItDirectory(), TSQLFile::IsLongStringCode(), TDocOutput::IsModified(), TGuiBldDragManager::IsSelectedVisible(), TTree::KeepCircular(), TEntryListFromFile::LoadList(), TChain::LoadTree(), TSQLStructure::LocateElementColumn(), TMath::LocMax(), TMath::LocMin(), TChain::Loop(), main(), TTreePlayer::MakeClass(), TFile::MakeFree(), TFile::Map(), TMath::Median(), memstat(), TH1::Merge(), TProfileHelper::Merge(), TH3::Merge(), THnSparse::Merge(), TSeqCollection::Merge(), TTree::Merge(), TFileCollection::Merge(), TH2::Merge(), TDSetElement::MergeElement(), TTree::MergeTrees(), TDataSetManager::MonitorUsedSpace(), THnSparse::Multiply(), TEntryList::Next(), TEntryListFromFile::Next(), TSystem::NextTimeOut(), TIdleTOTimer::Notify(), TRepeatTimer::Notify(), TSessionQueryFrame::OnBtnSubmit(), TFile::OpenFromCache(), TTime::operator long(), TTime::operator unsigned long(), TExMap::operator()(), TEventList::operator=(), TGeoChecker::OpProgress(), TFileDrawMap::PaintDir(), TParallelCoord::PaintEntries(), TFileInfo::ParseInput(), TTreeFormula::ParseWithLeaf(), TSQLStructure::PerformConversion(), piRandom(), pirndm(), PlotDecisionBoundary(), TFileCacheRead::Prefetch(), TTreePlayer::Principal(), TTreeIndex::Print(), TTree::Print(), TQueryResult::Print(), TXNetFile::Print(), TAlienResult::Print(), TBranch::Print(), TTreeViewer::PrintEntries(), THnSparse::PrintEntries(), TLeafL::PrintValue(), TStreamerInfo::PrintValueAux(), TProofLite::Process(), TProofPlayerRemote::Process(), TTreePlayer::Process(), TProofPlayerLite::Process(), TProof::Process(), TProofPlayer::Process(), TProofServ::ProcessNext(), TEveSceneList::ProcessSceneChanges(), TSessionQueryFrame::Progress(), TProofPlayerSuperMaster::Progress(), TProofProgressDialog::Progress(), TSessionQueryFrame::ProgressLocal(), TTree::Project(), THnSparse::ProjectionAny(), PT_CheckH1(), PT_Event(), PT_H1SimpleAsync(), PT_InputData(), PT_PackageArguments(), PT_Simple(), TXProofMgr::PutFile(), TFTP::PutFile(), TTreePlayer::Query(), read(), TBufferXML::ReadArray(), TBufferFile::ReadArray(), TBufferSQL2::ReadArray(), TLeafI::ReadBasket(), TLeafO::ReadBasket(), TLeafS::ReadBasket(), TLeafC::ReadBasket(), TLeafD::ReadBasket(), TLeafB::ReadBasket(), TLeafF::ReadBasket(), TLeafL::ReadBasket(), TLeafL::ReadBasketExport(), TStreamerInfo::ReadBuffer(), TFree::ReadBuffer(), TStreamerInfo::ReadBufferConv(), TNetFile::ReadBuffers(), TFile::ReadBuffers(), TDCacheFile::ReadBuffers(), TXNetFile::ReadBuffers(), TStreamerInfo::ReadBufferSkip(), TFile::ReadBufferViaCache(), TZIPFile::ReadDirectory(), TZIPFile::ReadEndHeader(), TBufferFile::ReadFastArray(), TNtuple::ReadFile(), TNtupleD::ReadFile(), TDataSetManager::ReadGroupConfig(), TKey::ReadKeyBuffer(), TDirectoryFile::ReadKeys(), TBranchElement::ReadLeavesMakeClass(), ReadRef(), TSQLFile::ReadSQLClassInfos(), TBufferFile::ReadStaticArray(), TTree::ReadStream(), TBufferFile::ReadULong64(), TLeafL::ReadValue(), TFormLeafInfo::ReadValue(), THnSparse::Rebin(), TApplicationServer::ReceiveFile(), TProofServ::ReceiveFile(), TRecorderRecording::RecordPave(), TRecorderRecording::RecordText(), TFile::Recover(), TBranch::Refresh(), TDataSetManagerFile::RegisterDataSet(), TEntryList::Remove(), TSQLFile::RequestSQLClassInfo(), TArrayL64::Reset(), TMVA::MethodBoost::ResetBoostWeights(), TEventList::Resize(), TProofLogElem::Retrieve(), RootdFstat(), RootdGet(), RootdGetFile(), RootdGets(), RootdPut(), RootdPutFile(), TTimeHists::Run(), UnitTesting::RegressionUnitTestWithDeviation::run(), UnitTesting::MethodUnitTestWithROCLimits::run(), runProof(), THnSparse::Scale(), TTreePlayer::Scan(), TFile::Seek(), TApplicationRemote::SendFile(), TProof::SendFile(), TProofServ::SendStatistics(), TBits::Set(), TArrayL64::Set(), TProofCondor::SetActive(), TLeafL::SetAddress(), TArrayL64::SetAt(), THnSparseCoordCompression::SetBufferFromCoord(), TTree::SetCacheSize(), TSpider::SetCurrentEntries(), TTree::SetEntries(), TTree::SetEventList(), TChain::SetEventList(), TUnixSystem::SetFPEMask(), TMemStatCodeInfo::SetInfo(), TVirtualPacketizer::SetInitTime(), TProofProgressStatus::SetLastUpdate(), TODBCStatement::SetLong64(), SetMaxMemLimits(), TGTripleVSlider::SetPointerPos(), TGTripleHSlider::SetPointerPos(), TRandom1::SetSeed2(), TRandom1::SetSeeds(), TCondor::SetState(), TSPlot::SetTreeSelection(), TDataType::SetType(), TProofServ::SetupCommon(), TParallelCoordVar::SetValues(), TMemStatShow::Show(), TDataSetManagerFile::ShowCache(), TProof::ShowMissingFiles(), TDataSetManager::ShowQuota(), TFile::ShrinkCacheFileDir(), TMVA::MethodBoost::SingleBoost(), TEventList::Sort(), TMemStat::SortStack(), TDSet::SplitEntryList(), TSQLFile::SQLMaximumValue(), TBufferSQL2::SqlObjectInfo(), TSQLFile::SQLObjectsInfo(), TBufferSQL2::SqlReadCharStarValue(), TBufferSQL2::SqlReadObject(), TBufferSQL2::SqlWriteObject(), TPEAC::StartSession(), TProofCondor::StartSlaves(), TXProofMgr::Stat(), TMVA::MethodBase::Statistics(), TAlienCollection::Status(), TSQLStructure::StoreElementInNormalForm(), TSQLStructure::StoreObject(), TSQLFile::StoreObjectInTables(), TProofPlayerRemote::StoreOutput(), TSQLFile::StreamKeysForDirectory(), stress2(), stress3(), stress7(), TEventList::Subtract(), TEntryList::Subtract(), TXNetFile::SynchronizeCacheSize(), TChirpFile::SysSeek(), TDCacheFile::SysSeek(), TRFIOFile::SysSeek(), TGFALFile::SysSeek(), TXNetFile::SysStat(), TChirpFile::SysStat(), TSelectorDraw::TakeAction(), TSelectorDraw::TakeEstimate(), TApplicationRemote::TApplicationRemote(), TBranchRef::TBranchRef(), TBranchSTL::TBranchSTL(), TChain::TChain(), TDSet::TDSet(), TEntryListFromFile::TEntryListFromFile(), Test1(), Test2(), Test5(), TMVA::MethodBase::TestClassification(), TMVA::MethodBoost::TestClassification(), testDivSparse1(), testDivSparse2(), testIteratorFunctions(), testMulSparse(), TMVA::MethodBase::TestRegression(), TMVA::CCTreeWrapper::TestTreeQuality(), TMVA::MethodDT::TestTreeQuality(), TEventList::TEventList(), TFileCacheRead::TFileCacheRead(), TFileSet::TFileSet(), TGX11::TGX11(), THnSparseCompactBinCoord::THnSparseCompactBinCoord(), TLeafL::TLeafL(), TMVAClassificationApplication(), TMVAClassificationCategoryApplication(), TMVAMulticlassApplication(), TMVARegressionApplication(), TDataSetManager::ToBytes(), toTree(), TParallelCoordVar::TParallelCoordVar(), TMVA::MethodBase::TrainMethod(), TMVA::MethodPDEFoam::TrainMonoTargetRegression(), TMVA::MethodPDEFoam::TrainMultiTargetRegression(), TMVA::MethodPDEFoam::TrainSeparatedClassification(), TMVA::MethodPDEFoam::TrainUnifiedClassification(), TreeUnbinnedFitLikelihood(), TSQLStructure::TryConvertObjectArray(), TSpider::TSpider(), TTreeIndex::TTreeIndex(), TTreePlayer::UnbinnedFit(), TUnixSystem::UnixNow(), TXNetSystem::Unlink(), TTreeCacheUnzip::UnzipCache(), MonitoredTFileSummary::Update(), TGFileBrowser::Update(), TTreeViewer::UpdateCombo(), TProof::UpdateDialog(), TPacketizerUnit::TSlaveStat::UpdatePerformance(), TPacketizerFile::TSlaveStat::UpdatePerformance(), TDSet::Validate(), TDSetElement::Validate(), TPacketizer::ValidateFiles(), TPacketizerAdaptive::ValidateFiles(), TSQLFile::VerifyObjectTable(), TBufferSQL2::WorkWithClass(), TBufferFile::WriteArray(), TTreeCloner::WriteBaskets(), TStreamerInfo::WriteBufferAux(), TFile::WriteBufferViaCache(), TDirectoryFile::WriteDirHeader(), TBufferFile::WriteFastArray(), TBufferFile::WriteLong64(), WriteRef(), TSQLFile::WriteSpecialObject(), TBufferFile::WriteULong64(), TGWin32::~TGWin32(), and TGX11::~TGX11().

#define RATIO_t   int

Referenced by ctx_draw_line_solid_aa().

#define SUPERSAMPLING_BITS   8

Definition at line 640 of file draw.c.

Referenced by render_supersampled_pixel().

#define SUPERSAMPLING_MASK   0x000000FF

Definition at line 641 of file draw.c.

Referenced by render_supersampled_pixel().


Function Documentation

static void alpha_blend_point_argb32 ( CARD32 *  dst,
CARD32  value,
CARD32  ratio 
) [inline, static]

Definition at line 196 of file draw.c.

References ARGB32_ALPHA8.

Referenced by apply_tool_2D_colored(), apply_tool_point_colored(), asim_apply_path(), and fill_hline_notile_colored().

Bool apply_asdraw_context ( ASImage im,
ASDrawContext ctx,
ASFlagType  filter 
)

Definition at line 1046 of file draw.c.

References ASStorage_32Bit, ASStorage_RLEDiffCompress, ASDrawContext::canvas, ASDrawContext::canvas_height, ASDrawContext::canvas_width, ASImage::channels, False, forget_data(), fprintf(), get_flags, ASImage::height, height, i, IC_NUM_CHANNELS, LOCAL_DEBUG, NULL, store_data(), True, width, ASImage::width, x01, and y.

static void apply_tool_2D ( ASDrawContext ctx,
int  curr_x,
int  curr_y,
CARD32  ratio 
) [static]

Definition at line 99 of file draw.c.

References ASDrawContext::canvas_height, ASDrawContext::canvas_width, ASDrawTool::center_x, ASDrawTool::center_y, CTX_SELECT_CANVAS, ASDrawTool::height, ASDrawTool::matrix, ASDrawContext::tool, v1, ASDrawTool::width, x, and y.

Referenced by asim_set_brush(), and asim_set_custom_brush().

static void apply_tool_2D_colored ( ASDrawContext ctx,
int  curr_x,
int  curr_y,
CARD32  ratio 
) [static]

Definition at line 218 of file draw.c.

References alpha_blend_point_argb32(), ARGB32_ALPHA8, ASDrawCTX_UsingScratch, ASDrawContext::canvas_height, ASDrawContext::canvas_width, ASDrawTool::center_x, ASDrawTool::center_y, CTX_SELECT_CANVAS, ASDrawContext::flags, get_flags, ASDrawTool::height, ASDrawTool::matrix, ASDrawContext::tool, v1, value, ASDrawTool::width, x, and y.

Referenced by asim_set_custom_brush_colored().

static void apply_tool_point ( ASDrawContext ctx,
int  curr_x,
int  curr_y,
CARD32  ratio 
) [static]

Definition at line 327 of file draw.c.

References ASDrawContext::canvas_width, CTX_SELECT_CANVAS, ASDrawTool::matrix, ASDrawContext::tool, and value.

Referenced by asim_set_brush(), and asim_set_custom_brush().

static void apply_tool_point_colored ( ASDrawContext ctx,
int  curr_x,
int  curr_y,
CARD32  ratio 
) [static]

Definition at line 343 of file draw.c.

References alpha_blend_point_argb32(), ARGB32_ALPHA8, ASDrawCTX_UsingScratch, ASDrawContext::canvas_width, CTX_SELECT_CANVAS, ASDrawContext::flags, get_flags, ASDrawTool::matrix, ASDrawContext::tool, and value.

Referenced by asim_set_custom_brush_colored().

Bool asim_apply_path ( ASDrawContext ctx,
int  start_x,
int  start_y,
Bool  fill,
int  fill_start_x,
int  fill_start_y,
CARD8  fill_threshold 
)

Definition at line 1012 of file draw.c.

References alpha_blend_point_argb32(), argb, ASDrawCTX_CanvasIsARGB, ASDrawCTX_UsingScratch, asim_flood_fill(), clear_flags, CTX_DEFAULT_FILL_THRESHOLD, False, ASDrawContext::flags, get_flags, i, LOCAL_DEBUG_CALLER_OUT, NULL, and True.

Referenced by asim_cube_bezier(), asim_ellips(), and asim_straight_ellips().

void asim_circle ( ASDrawContext ctx,
int  x,
int  y,
int  r,
Bool  fill 
)

Definition at line 1384 of file draw.c.

References asim_straight_ellips().

Referenced by TASImage::DrawCircle().

void asim_cube_bezier ( ASDrawContext ctx,
int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3 
)

Definition at line 1176 of file draw.c.

References ASDrawCTX_CanvasIsARGB, asim_apply_path(), asim_move_to(), asim_start_path(), ctx_draw_bezier(), ASDrawContext::curr_x, ASDrawContext::curr_y, False, ASDrawContext::flags, get_flags, and x0.

Referenced by TASImage::DrawCubeBezier().

void asim_ellips ( ASDrawContext ctx,
int  x,
int  y,
int  rx,
int  ry,
int  angle,
Bool  fill 
)

Definition at line 1391 of file draw.c.

References asim_apply_path(), asim_move_to(), asim_sin(), asim_start_path(), asim_straight_ellips(), ctx_draw_bezier(), CTX_ELLIPS_FILL_THRESHOLD, False, x0, and x3.

Referenced by TASImage::DrawEllips().

void asim_ellips2 ( ASDrawContext ctx,
int  x,
int  y,
int  rx,
int  ry,
int  angle,
Bool  fill 
)

Definition at line 1462 of file draw.c.

References A, asim_move_to(), asim_sin(), asim_sqrt(), asim_straight_ellips(), B, C, CTX_FILL_HLINE, CTX_PUT_PIXEL, d, double, Reflex::F, fprintf(), int, line, x1, and x2.

Referenced by TASImage::DrawEllips2().

void asim_flood_fill ( ASDrawContext ctx,
int  x,
int  y,
CARD32  min_val,
CARD32  max_val 
)

Definition at line 1727 of file draw.c.

References ASDrawContext::canvas_width, ctx_flood_fill(), CTX_SELECT_CANVAS, data, LOCAL_DEBUG_OUT, x0, and x1.

Referenced by asim_apply_path().

void asim_line_to ( ASDrawContext ctx,
int  dst_x,
int  dst_y 
)

Definition at line 1163 of file draw.c.

References asim_line_to_generic(), and ctx_draw_line_solid().

Referenced by TASImage::DrawWideLine().

void asim_line_to_aa ( ASDrawContext ctx,
int  dst_x,
int  dst_y 
)

Definition at line 1170 of file draw.c.

References asim_line_to_generic(), and ctx_draw_line_solid_aa().

void asim_line_to_generic ( ASDrawContext ctx,
int  dst_x,
int  dst_y,
void(*)(ASDrawContext *, int, int, int, int)  func 
)

Definition at line 1092 of file draw.c.

References asim_move_to(), ASDrawContext::canvas_height, ASDrawContext::canvas_width, clip_line(), ASDrawContext::curr_x, ASDrawContext::curr_y, func(), k, and x0.

Referenced by asim_line_to(), asim_line_to_aa(), and asim_rectangle().

void asim_move_to ( ASDrawContext ctx,
int  dst_x,
int  dst_y 
)

Definition at line 1153 of file draw.c.

References ASDrawContext::curr_x, and ASDrawContext::curr_y.

Referenced by asim_cube_bezier(), asim_ellips(), asim_ellips2(), asim_line_to_generic(), asim_rectangle(), asim_straight_ellips(), and TASImage::DrawWideLine().

void asim_rectangle ( ASDrawContext ctx,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 1746 of file draw.c.

References asim_line_to_generic(), asim_move_to(), and ctx_draw_line_solid().

Bool asim_set_brush ( ASDrawContext ctx,
int  brush 
)

Definition at line 932 of file draw.c.

References apply_tool_2D(), ASDrawContext::apply_tool_func, apply_tool_point(), AS_DRAW_BRUSHES, ASDrawCTX_ToolIsARGB, clear_flags, False, ASDrawContext::fill_hline_func, fill_hline_notile(), ASDrawContext::flags, ASDrawTool::height, NULL, StandardBrushes, ASDrawContext::tool, True, and ASDrawTool::width.

Referenced by create_asdraw_context().

Bool asim_set_custom_brush ( ASDrawContext ctx,
ASDrawTool brush 
)

Definition at line 952 of file draw.c.

References apply_tool_2D(), ASDrawContext::apply_tool_func, apply_tool_point(), ASDrawCTX_ToolIsARGB, clear_flags, False, ASDrawContext::fill_hline_func, fill_hline_notile(), ASDrawContext::flags, ASDrawTool::height, NULL, ASDrawContext::tool, True, and ASDrawTool::width.

Bool asim_set_custom_brush_colored ( ASDrawContext ctx,
ASDrawTool brush 
)

Definition at line 972 of file draw.c.

References apply_tool_2D_colored(), ASDrawContext::apply_tool_func, apply_tool_point_colored(), ASDrawCTX_ToolIsARGB, False, ASDrawContext::fill_hline_func, fill_hline_notile_colored(), ASDrawContext::flags, ASDrawTool::height, NULL, set_flags, ASDrawContext::tool, True, and ASDrawTool::width.

Referenced by create_draw_context_argb32().

static int asim_sin ( int  angle  )  [inline, static]

Definition at line 1214 of file draw.c.

Referenced by asim_ellips(), and asim_ellips2().

int asim_sqrt ( double  sval  ) 

Definition at line 1230 of file draw.c.

References long, Long64_t, and t.

Referenced by asim_ellips2().

Bool asim_start_path ( ASDrawContext ctx  ) 

Definition at line 992 of file draw.c.

References ASDrawCTX_UsingScratch, ASDrawContext::canvas_height, ASDrawContext::canvas_width, False, ASDrawContext::flags, get_flags, LOCAL_DEBUG_OUT, NULL, safecalloc, ASDrawContext::scratch_canvas, set_flags, and True.

Referenced by asim_cube_bezier(), asim_ellips(), and asim_straight_ellips().

void asim_straight_ellips ( ASDrawContext ctx,
int  x,
int  y,
int  rx,
int  ry,
Bool  fill 
)

Definition at line 1263 of file draw.c.

References asim_apply_path(), asim_move_to(), asim_start_path(), ASDrawContext::canvas_height, ctx_draw_bezier(), CTX_ELLIPS_FILL_THRESHOLD, CTX_FILL_HLINE, d, LOCAL_DEBUG_OUT, long, Long64_t, max, render_supersampled_pixel(), and x1.

Referenced by asim_circle(), asim_ellips(), asim_ellips2(), and TASImage::DrawStraightEllips().

Bool clip_line ( int  k,
int  x0,
int  y0,
int  cw,
int  ch,
int *  x,
int *  y 
)

Definition at line 857 of file draw.c.

References False, and True.

Referenced by asim_line_to_generic().

ASDrawContext* create_asdraw_context ( unsigned int  width,
unsigned int  height 
)

Definition at line 904 of file draw.c.

References asim_set_brush(), ASDrawContext::canvas, ASDrawContext::canvas_height, ASDrawContext::canvas_width, ASDrawContext::fill_hline_func, fill_hline_notile(), and safecalloc.

static void ctx_draw_bezier ( ASDrawContext ctx,
int  x0,
int  y0,
int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3 
) [static]

Definition at line 676 of file draw.c.

References ADD_CubicBezier, ASDrawContext::canvas_height, ASDrawContext::canvas_width, free(), NULL, render_supersampled_pixel(), ASCubicBezier::x0, x01, ASCubicBezier::x1, ASCubicBezier::x2, ASCubicBezier::x3, x31, ASCubicBezier::y0, ASCubicBezier::y1, ASCubicBezier::y2, and ASCubicBezier::y3.

Referenced by asim_cube_bezier(), asim_ellips(), and asim_straight_ellips().

static void ctx_draw_line_solid ( ASDrawContext ctx,
int  from_x,
int  from_y,
int  to_x,
int  to_y 
) [static]

Definition at line 422 of file draw.c.

References CTX_PUT_PIXEL, dir(), x, and y.

Referenced by asim_line_to(), asim_rectangle(), and ctx_draw_line_solid_aa().

static void ctx_draw_line_solid_aa ( ASDrawContext ctx,
int  from_x,
int  from_y,
int  to_x,
int  to_y 
) [static]

Definition at line 488 of file draw.c.

References ctx_draw_line_solid(), CTX_PUT_PIXEL, dir(), int, RATIO_t, value, x, x03, and y.

Referenced by asim_line_to_aa().

static void ctx_flood_fill ( ASDrawContext ctx,
int  x_from,
int  y,
int  x_to,
CARD32  min_val,
CARD32  max_val 
) [static]

Definition at line 760 of file draw.c.

References ADD_ScanlinePart, canvas, ASDrawContext::canvas_height, ASDrawContext::canvas_width, CTX_FILL_HLINE, CTX_SELECT_CANVAS, data, free(), LOCAL_DEBUG_OUT, NULL, x0, ASScanlinePart::x0, x1, ASScanlinePart::x1, and ASScanlinePart::y.

Referenced by asim_flood_fill().

void destroy_asdraw_context ( ASDrawContext ctx  ) 

Definition at line 919 of file draw.c.

References ASDrawContext::canvas, free(), and ASDrawContext::scratch_canvas.

static void fill_hline_notile ( ASDrawContext ctx,
int  x_from,
int  y,
int  x_to,
CARD32  ratio 
) [static]

Definition at line 364 of file draw.c.

References ASDrawContext::canvas_width, CTX_SELECT_CANVAS, value, x1, and x2.

Referenced by asim_set_brush(), asim_set_custom_brush(), and create_asdraw_context().

static void fill_hline_notile_colored ( ASDrawContext ctx,
int  x_from,
int  y,
int  x_to,
CARD32  ratio 
) [static]

Definition at line 387 of file draw.c.

References alpha_blend_point_argb32(), ARGB32_ALPHA8, ASDrawCTX_UsingScratch, ASDrawContext::canvas_width, CTX_SELECT_CANVAS, ASDrawContext::flags, get_flags, ASDrawTool::matrix, ASDrawContext::tool, value, x1, and x2.

Referenced by asim_set_custom_brush_colored().

static void render_supersampled_pixel ( ASDrawContext ctx,
int  xs,
int  ys 
) [inline, static]

Definition at line 644 of file draw.c.

References CTX_PUT_PIXEL, SUPERSAMPLING_BITS, SUPERSAMPLING_MASK, x, and y.

Referenced by asim_straight_ellips(), and ctx_draw_bezier().


Variable Documentation

CARD32 _round1x1[1]

Initial value:

{  255 }

Definition at line 60 of file draw.c.

CARD32 _round3x3[9]

Initial value:

{ 64,  80,  64,
  80, 255,  80,
  64,  80,  64 }

Definition at line 63 of file draw.c.

CARD32 _round3x3_solid[9]

Initial value:

{ 64,  255,  64,
  255, 255,  255,
  64,  255,  64 }

Definition at line 68 of file draw.c.

CARD32 _round5x5[25]

Initial value:

{  0,  24,  64,  24,   0,
  24,  64,  80,  64,  24,
  64,  80, 255,  80,  64,
  24,  64,  80,  64,  24,
   0,  24,  64,  24,   0,}

Definition at line 73 of file draw.c.

CARD32 _round5x5_solid[25]

Initial value:

{  0,  255,  255,  255,   0,
  255,  255, 255,  255,  255,
  255,  255, 255,  255,  255,
  255,  255, 255,  255,  255,
   0,  255,  255,  255,   0,}

Definition at line 80 of file draw.c.

const signed int ASIM_SIN[91]

Initial value:

{
        0x00000000,
        0x00000478,0x000008EF,0x00000D66,0x000011DC,0x00001650,0x00001AC2,0x00001F33,0x000023A1,0x0000280C,0x00002C74,
        0x000030D9,0x0000353A,0x00003996,0x00003DEF,0x00004242,0x00004690,0x00004AD9,0x00004F1C,0x00005358,0x0000578F,
        0x00005BBE,0x00005FE6,0x00006407,0x00006820,0x00006C31,0x00007039,0x00007439,0x0000782F,0x00007C1C,0x00008000,
        
        0x000083DA,0x000087A9,0x00008B6D,0x00008F27,0x000092D6,0x00009679,0x00009A11,0x00009D9C,0x0000A11B,0x0000A48E,
        0x0000A7F3,0x0000AB4C,0x0000AE97,0x0000B1D5,0x0000B505,0x0000B827,0x0000BB3A,0x0000BE3F,0x0000C135,0x0000C41B,
        0x0000C6F3,0x0000C9BB,0x0000CC73,0x0000CF1C,0x0000D1B4,0x0000D43C,0x0000D6B3,0x0000D91A,0x0000DB6F,0x0000DDB4,
        0x0000DFE7,0x0000E209,0x0000E419,0x0000E617,0x0000E804,0x0000E9DE,0x0000EBA6,0x0000ED5C,0x0000EEFF,0x0000F090,
        0x0000F20E,0x0000F378,0x0000F4D0,0x0000F615,0x0000F747,0x0000F865,0x0000F970,0x0000FA68,0x0000FB4C,0x0000FC1C,
        0x0000FCD9,0x0000FD82,0x0000FE18,0x0000FE99,0x0000FF07,0x0000FF60,0x0000FFA6,0x0000FFD8,0x0000FFF6,0x00010000
}

Definition at line 1199 of file draw.c.

ASDrawTool StandardBrushes[AS_DRAW_BRUSHES]

Initial value:

 
{
        {1, 1, 0, 0, _round1x1},
        {3, 3, 1, 1, _round3x3_solid},
        {5, 5, 2, 2, _round5x5_solid}
}

Definition at line 87 of file draw.c.

Referenced by asim_set_brush().


Generated on Tue Jul 5 15:57:54 2011 for ROOT_528-00b_version by  doxygen 1.5.1