#include <djv_jb2common.h>
Public Types | |
enum | Type { Normal = 0, Matched = 1, Refined = 2, NonMark = 3, Comment = 4 } |
enum | { INITIAL_NUM_OF_SHAPES = 32 } |
typedef SimpleArray< AutoPtr < Shape > > | Array |
Public Member Functions | |
virtual Type | getType () const =0 |
virtual size_t | getWidth () const =0 |
virtual size_t | getHeight () const =0 |
virtual ssize_t | getX () const =0 |
virtual ssize_t | getY () const =0 |
virtual void | setPosition (ssize_t inX, ssize_t inY)=0 |
virtual Rect | getRect () const =0 |
virtual const PackedBitmap & | getBitmap () const =0 |
virtual void | replaceBitmap (const PackedBitmap &inBitmap)=0 |
virtual void | setRefinement (const Shape *inReference)=0 |
virtual void | setMatch (const Shape *inReference)=0 |
virtual void | flatten ()=0 |
virtual Color | getColor () const =0 |
virtual void | setColor (const Color &inColor)=0 |
virtual const Shape * | getReferenceShape () const =0 |
virtual u32 | getFlags () const =0 |
virtual void | setFlags (u32 inFlags)=0 |
Public Member Functions inherited from Celartem::ReferableNoTS | |
ReferableNoTS () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Static Public Member Functions | |
static AutoPtr< Shape > | create (const PackedBitmap &inBitmap, ssize_t inX=0, ssize_t inY=0, Type inType=Normal) |
static AutoPtr< Shape > | create (size_t inWidth, size_t inHeight, ssize_t inRowStride, const u8 *inUnpackedImagePtr, ssize_t inX=0, ssize_t inY=0, Type inType=Normal) |
static AutoPtr< Shape > | create (const Shape *inReference, const PackedBitmap &inBitmap, ssize_t inX=0, ssize_t inY=0) |
static AutoPtr< Shape > | create (const Shape *inReference, size_t inWidth, size_t inHeight, ssize_t inRowStride, const u8 *inUnpackedImagePtr, ssize_t inX=0, ssize_t inY=0) |
static AutoPtr< Shape > | create (const Shape *inReference, ssize_t inX, ssize_t inY) |
static AutoPtr< Shape > | create (const String &inComment) |
This class defines shape structure used by JB2 decoder/encoder.
typedef SimpleArray<AutoPtr<Shape> > Celartem::DjVu::Shape::Array |
Array of pointers to Shape instances.
|
static |
Normal or NonMark
|
static |
Normal or NonMark
|
static |
Refined
|
static |
Refined
|
static |
Mached
For preserving a JB2 comment; not actually a shape.
|
pure virtual |
Remove refinement/match information from the shape.
|
pure virtual |
Get the bitmap of this shape.
|
pure virtual |
Get the color of this shape.
|
pure virtual |
Get the flags associated to the shape.
|
pure virtual |
Get the height of this shape in pixels.
|
pure virtual |
Get the rectangle of this shape.
|
pure virtual |
Get the reference shape if available.
NULL
.
|
pure virtual |
Get the type of this shape.
|
pure virtual |
Get the width of this shape in pixels.
|
pure virtual |
Get X-coordination of this shape.
|
pure virtual |
Get Y-coordination of this shape.
|
pure virtual |
Replace the bitmap of this shape.
This method only works on Normal or Refined shapes.
inBitmap | Reference to a PackedBitmap instance. |
|
pure virtual |
Set the color of this shape.
inColor | New color of this shape. |
|
pure virtual |
Set the flags to the shape.
inFlags | The flags. |
|
pure virtual |
Set the match against the specified shape.
inReference | A reference shape which this shape will match against. |
|
pure virtual |
Set the position of this shape.
inX | X-coordination of this shape. |
inY | Y-coordination of this shape. |
|
pure virtual |
Set the refinement against the specified shape.
inReference | A reference shape which this shape will refine against. |