Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Shape Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/shape.h>

Inheritance diagram for Shape:

Inheritance graph
[legend]
Collaboration diagram for Shape:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Shape (long id=0, int level=1)
 ~Shape ()
void setBoundingBox (Rect rect)
int execute (GraphicDevice *gd, Matrix *matrix, Cxform *cxform)
void getRegion (GraphicDevice *gd, Matrix *matrix, void *id, ScanLineFunc scan_line_func)
void getBoundingBox (Rect *bb, DisplayListEntry *)

Public Attributes

int defLevel
Rect boundary
FillStyleDef defaultFillStyle
LineStyleDef defaultLineStyle
Matrix lastMat
int getAlpha
int getStyles
unsigned char * file_ptr
Dictdict

Protected Member Functions

void drawLines (GraphicDevice *gd, Matrix *matrix, Cxform *cxform, long, long)
void buildSegmentList (Segment **segs, int height, long &n, Matrix *matrix, int update, int reverse)
SegmentprogressSegments (Segment *, long)
SegmentnewSegments (Segment *, Segment *)

Constructor & Destructor Documentation

Shape::Shape long  id = 0,
int  level = 1
 

Definition at line 44 of file shape.cc.

References Matrix::a, Color::alpha, ALPHA_OPAQUE, Color::blue, FillStyleDef::color, Matrix::d, defaultFillStyle, defaultLineStyle, defLevel, f_Solid, file_ptr, getAlpha, getStyles, Color::green, lastMat, NULL, Color::red, shape_nb, shape_size, FillStyleDef::type, and LineStyleDef::width.

Shape::~Shape  ) 
 

Definition at line 67 of file shape.cc.

References file_ptr.


Member Function Documentation

void Shape::buildSegmentList Segment **  segs,
int  height,
long &  n,
Matrix matrix,
int  update,
int  reverse
[protected]
 

void Shape::drawLines GraphicDevice gd,
Matrix matrix,
Cxform cxform,
long  ,
long 
[protected]
 

int Shape::execute GraphicDevice gd,
Matrix matrix,
Cxform cxform
[virtual]
 

Reimplemented from Character.

Definition at line 87 of file shape.cc.

References GraphicDevice::allocColor(), FillStyleDef::color, defaultFillStyle, drawShape(), Cxform::getColor(), GraphicDevice::getForegroundColor(), NULL, Color::pixel, and ShapeDraw.

Referenced by Text::doText().

void Shape::getBoundingBox Rect bb,
DisplayListEntry
[virtual]
 

Reimplemented from Character.

Definition at line 81 of file shape.cc.

References boundary.

void Shape::getRegion GraphicDevice gd,
Matrix matrix,
void *  id,
ScanLineFunc  scan_line_func
[virtual]
 

Reimplemented from Character.

Definition at line 104 of file shape.cc.

References drawShape(), GraphicDevice::setClipping(), and ShapeGetRegion.

Referenced by Text::doText().

Segment* Shape::newSegments Segment ,
Segment
[protected]
 

Segment* Shape::progressSegments Segment ,
long 
[protected]
 

void Shape::setBoundingBox Rect  rect  ) 
 

Definition at line 75 of file shape.cc.

References boundary.

Referenced by CInputScript::ParseDefineShape().


Member Data Documentation

Rect Shape::boundary
 

Definition at line 142 of file shape.h.

Referenced by getBoundingBox(), and setBoundingBox().

FillStyleDef Shape::defaultFillStyle
 

Definition at line 143 of file shape.h.

Referenced by drawShape(), execute(), and Shape().

LineStyleDef Shape::defaultLineStyle
 

Definition at line 144 of file shape.h.

Referenced by Shape().

int Shape::defLevel
 

Definition at line 139 of file shape.h.

Referenced by Shape().

Dict* Shape::dict
 

Definition at line 153 of file shape.h.

Referenced by drawShape(), and CInputScript::ParseDefineShape().

unsigned char* Shape::file_ptr
 

Definition at line 152 of file shape.h.

Referenced by drawShape(), CInputScript::ParseDefineFont(), CInputScript::ParseDefineFont2(), CInputScript::ParseDefineShape(), Shape(), and ~Shape().

int Shape::getAlpha
 

Definition at line 151 of file shape.h.

Referenced by drawShape(), CInputScript::ParseDefineShape(), and Shape().

int Shape::getStyles
 

Definition at line 151 of file shape.h.

Referenced by drawShape(), CInputScript::ParseDefineShape(), and Shape().

Matrix Shape::lastMat
 

Definition at line 146 of file shape.h.

Referenced by Shape().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:51:47 2005 for OPIE by  doxygen 1.4.2