#include "swf.h"#include "math.h"Include dependency graph for shape.cc:

Go to the source code of this file.
Defines | |
| #define | PRINT 0 |
| #define | ABS(v) ((v) < 0 ? -(v) : (v)) |
| #define | BFRAC_BITS 0 |
| #define | BFRAC (1 << BFRAC_BITS) |
| #define | UL ls->x1 + nx -ny, ls->y1 + ny +nx |
| #define | UR ls->x2 + nx +ny, ls->y2 + ny -nx |
| #define | LL ls->x1 - nx -ny, ls->y1 - ny +nx |
| #define | LR ls->x2 - nx +ny, ls->y2 - ny -nx |
Functions | |
| static void | prepareStyles (GraphicDevice *gd, Matrix *matrix, Cxform *cxform, FillStyleDef *f, long n) |
| static void | clearStyles (GraphicDevice *gd, FillStyleDef *f, long n) |
| static void | drawShape (GraphicDevice *gd, Matrix *matrix1, Cxform *cxform, Shape *shape, ShapeAction shapeAction, void *id, ScanLineFunc scan_line_func) |
| static void | newPath (ShapeParser *shape, long x, long y) |
| static void | addSegment1 (ShapeParser *shape, long x, long y, FillStyleDef *f0, FillStyleDef *f1, LineStyleDef *l) |
| static void | addLine (ShapeParser *shape, long x, long y, FillStyleDef *f0, FillStyleDef *f1, LineStyleDef *l) |
| static void | bezierBuildPoints (ShapeParser *s, int subdivisions, long a1X, long a1Y, long cX, long cY, long a2X, long a2Y) |
| static void | flushPaths (ShapeParser *s) |
| static void | addBezier (ShapeParser *shape, long ctrlX1, long ctrlY1, long newX1, long newY1, FillStyleDef *f0, FillStyleDef *f1, LineStyleDef *l) |
| static void | InitBitParser (struct BitParser *b, U8 *buf) |
| static void | InitBits (struct BitParser *b) |
| static U8 | GetByte (struct BitParser *b) |
| static U16 | GetWord (struct BitParser *b) |
| static U32 | GetDWord (struct BitParser *b) |
| static U32 | GetBit (struct BitParser *b) |
| static U32 | GetBits (struct BitParser *b, int n) |
| static S32 | GetSBits (struct BitParser *b, S32 n) |
| static void | GetMatrix (BitParser *b, Matrix *mat) |
| static FillStyleDef * | ParseFillStyle (ShapeParser *shape, long *n, long getAlpha) |
| static LineStyleDef * | ParseLineStyle (ShapeParser *shape, long *n, long getAlpha) |
| static int | ParseShapeRecord (ShapeParser *shape, ShapeRecord *sr, long getAlpha) |
|
|
Definition at line 33 of file shape.cc. Referenced by flushPaths(). |
|
|
Definition at line 201 of file shape.cc. Referenced by bezierBuildPoints(). |
|
|
Definition at line 200 of file shape.cc. Referenced by addBezier(), and bezierBuildPoints(). |
|
|
Referenced by flushPaths(). |
|
|
Referenced by flushPaths(). |
|
|
|
|
|
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 361 of file shape.cc. References bezierBuildPoints(), BFRAC_BITS, Path::lastX, Path::lastY, Path::nb_edges, and p. Referenced by drawShape(). |
|
||||||||||||||||||||||||||||
|
Definition at line 179 of file shape.cc. References addSegment1(), Path::nb_edges, and p. Referenced by drawShape(). |
|
||||||||||||||||||||||||||||
|
Definition at line 134 of file shape.cc. References LineSegment::first, LineSegment::l, Path::lastX, Path::lastY, Path::nb_segments, LineSegment::next, NULL, p, LineSegment::x1, LineSegment::x2, LineSegment::y1, and LineSegment::y2. Referenced by addLine(), and bezierBuildPoints(). |
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 204 of file shape.cc. References addSegment1(), BFRAC, BFRAC_BITS, ShapeParser::f0, ShapeParser::f1, FRAC, ShapeParser::l, and X. Referenced by addBezier(). |
|
||||||||||||||||
|
Definition at line 1177 of file shape.cc. References FillStyleDef::alpha_table, FillStyleDef::bitmap, FillStyleDef::cmap, Bitmap::colormap, f, f_clippedBitmap, f_LinearGradient, f_None, f_RadialGradient, f_Solid, f_TiledBitmap, FillStyleDef::gradient, Gradient::ramp, and FillStyleDef::type. Referenced by drawShape(). |
|
||||||||||||||||||||||||||||||||
|
|
Definition at line 268 of file shape.cc. References Matrix::a, ABS, GraphicDevice::addSegment(), FillStyleDef::color, GraphicDevice::drawLine(), GraphicDevice::drawPolygon(), LineStyleDef::fillstyle, ShapeParser::first_line, FRAC, ShapeParser::gd, LineSegment::l, l, ShapeParser::last_line, LL, LR, ShapeParser::matrix, LineSegment::next, NULL, printf, GraphicDevice::scan_line_func, GraphicDevice::setForegroundColor(), sqrt(), UL, UR, LineStyleDef::width, LineSegment::x1, LineSegment::x2, LineSegment::y1, and LineSegment::y2. Referenced by drawShape(). |
|
|
Definition at line 439 of file shape.cc. References BitParser::m_bitBuf, BitParser::m_bitPos, BitParser::ptr, and v. Referenced by GetMatrix(), and ParseShapeRecord(). |
|
||||||||||||
|
Definition at line 461 of file shape.cc. References BitParser::m_bitBuf, BitParser::m_bitPos, BitParser::ptr, and v. Referenced by drawShape(), GetMatrix(), GetSBits(), and ParseShapeRecord(). |
|
|
Definition at line 412 of file shape.cc. References BitParser::ptr, and v. Referenced by ParseFillStyle(), and ParseLineStyle(). |
|
|
Definition at line 429 of file shape.cc. References BitParser::ptr, and v. |
|
||||||||||||
|
Definition at line 504 of file shape.cc. References Matrix::a, Matrix::b, Matrix::c, Matrix::d, GetBit(), GetBits(), GetSBits(), InitBits(), Matrix::tx, and Matrix::ty. Referenced by ParseFillStyle(). |
|
||||||||||||
|
Definition at line 485 of file shape.cc. Referenced by GetMatrix(), and ParseShapeRecord(). |
|
|
Definition at line 419 of file shape.cc. References BitParser::ptr, and v. Referenced by ParseFillStyle(), and ParseLineStyle(). |
|
||||||||||||
|
Definition at line 398 of file shape.cc. References BitParser::ptr. Referenced by drawShape(). |
|
|
Definition at line 403 of file shape.cc. References BitParser::m_bitBuf, and BitParser::m_bitPos. Referenced by drawShape(), GetMatrix(), and ParseShapeRecord(). |
|
||||||||||||||||
|
Definition at line 115 of file shape.cc. References ShapeParser::curPath, Matrix::getX(), Matrix::getY(), Path::lastX, Path::lastY, ShapeParser::matrix, Path::nb_edges, Path::nb_segments, and p. Referenced by QDir::cleanDirPath(), and drawShape(). |
|
||||||||||||||||
|
Definition at line 538 of file shape.cc. References Color::alpha, ALPHA_OPAQUE, ShapeParser::bit_parser, FillStyleDef::bitmap, Color::blue, FillStyleDef::color, Gradient::color, ShapeParser::dict, GetByte(), Dict::getCharacter(), GetMatrix(), GetWord(), FillStyleDef::gradient, Color::green, i, Gradient::nbGradients, NULL, Gradient::ratio, Color::red, and FillStyleDef::type. Referenced by drawShape(), and ParseShapeRecord(). |
|
||||||||||||||||
|
Definition at line 617 of file shape.cc. References GraphicDevice::allocColor(), Color::alpha, ALPHA_OPAQUE, ShapeParser::bit_parser, Color::blue, FillStyleDef::color, LineStyleDef::color, ShapeParser::cxform, f, f_Solid, LineStyleDef::fillstyle, ShapeParser::gd, GetByte(), Cxform::getColor(), GetWord(), Color::green, i, NULL, Color::pixel, Color::red, FillStyleDef::type, and LineStyleDef::width. Referenced by drawShape(), and ParseShapeRecord(). |
|
||||||||||||||||
|
||||||||||||||||||||||||
1.4.2