#include <ShapeFrame.h>
Public Member Functions | |
ShapeFrame (const uint8 *data, uint32 size, const ConvertShapeFormat *format=0, const uint8 special[256]=0, ConvertShapeFrame *prev=0) | |
~ShapeFrame () | |
bool | hasPoint (sint32 x, sint32 y) const |
uint8 | getPixelAtPoint (sint32 x, sint32 y) const |
void | getConvertShapeFrame (ConvertShapeFrame &csf, bool need_bytes_rle=false) |
Public Attributes | |
uint32 | compressed |
sint32 | width |
sint32 | height |
sint32 | xoff |
sint32 | yoff |
uint32 * | line_offsets |
const uint8 * | rle_data |
Protected Member Functions | |
void | LoadU8Format (const uint8 *data, uint32 size) |
void | LoadPentagramFormat (const uint8 *data, uint32 size) |
void | LoadGenericFormat (const uint8 *data, uint32 size, const ConvertShapeFormat *format) |
void | LoadU8CMPFormat (const uint8 *data, uint32 size, const ConvertShapeFormat *format, const uint8 special[256], ConvertShapeFrame *prev) |
Definition at line 25 of file ShapeFrame.h.
ShapeFrame::ShapeFrame | ( | const uint8 * | data, | |
uint32 | size, | |||
const ConvertShapeFormat * | format = 0 , |
|||
const uint8 | special[256] = 0 , |
|||
ConvertShapeFrame * | prev = 0 | |||
) |
Definition at line 29 of file ShapeFrame.cpp.
References LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), LoadU8Format(), PentagramShapeFormat, prev, U82DShapeFormat, U8CMPShapeFormat, and U8ShapeFormat.
ShapeFrame::~ShapeFrame | ( | ) |
void ShapeFrame::getConvertShapeFrame | ( | ConvertShapeFrame & | csf, | |
bool | need_bytes_rle = false | |||
) |
Definition at line 244 of file ShapeFrame.cpp.
References ConvertShapeFrame::bytes_rle, compressed, ConvertShapeFrame::compression, height, ConvertShapeFrame::height, line_offsets, ConvertShapeFrame::line_offsets, rle_data, ConvertShapeFrame::rle_data, width, ConvertShapeFrame::width, xoff, ConvertShapeFrame::xoff, yoff, and ConvertShapeFrame::yoff.
Definition at line 197 of file ShapeFrame.cpp.
References compressed, dlen, height, line_offsets, linedata, rle_data, width, xoff, xpos, and yoff.
Referenced by MiniMapGump::sampleAtPoint().
Definition at line 153 of file ShapeFrame.cpp.
References compressed, dlen, height, line_offsets, linedata, rle_data, width, xoff, xpos, and yoff.
Referenced by Gump::PointOnGump(), MiniMapGump::sampleAtPoint(), ItemSorter::Trace(), PaperdollGump::TraceObjId(), and ContainerGump::TraceObjId().
void ShapeFrame::LoadGenericFormat | ( | const uint8 * | data, | |
uint32 | size, | |||
const ConvertShapeFormat * | format | |||
) | [protected] |
Definition at line 100 of file ShapeFrame.cpp.
References ConvertShapeFormat::bytes_frame_compression, ConvertShapeFormat::bytes_frame_height, ConvertShapeFormat::bytes_frame_unknown, ConvertShapeFormat::bytes_frame_width, ConvertShapeFormat::bytes_frame_xoff, ConvertShapeFormat::bytes_frame_yoff, ConvertShapeFormat::bytes_line_offset, compressed, height, ConvertShapeFormat::len_frameheader2, ConvertShapeFormat::line_offset_absolute, line_offsets, IDataSource::readX(), IDataSource::readXS(), rle_data, IBufferDataSource::skip(), width, xoff, and yoff.
Referenced by ShapeFrame().
Definition at line 77 of file ShapeFrame.cpp.
References compressed, height, line_offsets, rle_data, width, xoff, and yoff.
Referenced by ShapeFrame().
void ShapeFrame::LoadU8CMPFormat | ( | const uint8 * | data, | |
uint32 | size, | |||
const ConvertShapeFormat * | format, | |||
const uint8 | special[256], | |||
ConvertShapeFrame * | prev | |||
) | [protected] |
Definition at line 128 of file ShapeFrame.cpp.
References ConvertShapeFrame::bytes_rle, compressed, ConvertShapeFrame::compression, ConvertShapeFrame::Free(), height, ConvertShapeFrame::height, ConvertShapeFrame::line_offsets, line_offsets, prev, ConvertShapeFrame::ReadCmpFrame(), ConvertShapeFrame::rle_data, rle_data, ConvertShapeFrame::width, width, ConvertShapeFrame::xoff, xoff, ConvertShapeFrame::yoff, and yoff.
Referenced by ShapeFrame().
Definition at line 54 of file ShapeFrame.cpp.
References compressed, height, line_offsets, rle_data, width, xoff, and yoff.
Referenced by ShapeFrame().
Definition at line 39 of file ShapeFrame.h.
Referenced by getConvertShapeFrame(), getPixelAtPoint(), hasPoint(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), and LoadU8Format().
Definition at line 40 of file ShapeFrame.h.
Referenced by ItemSorter::AddItem(), ConvertShape::Check(), ConvertShape::CheckUnsafe(), getConvertShapeFrame(), ShapeFont::getHeight(), getPixelAtPoint(), Shape::getTotalDimensions(), hasPoint(), U8SaveGump::InitGump(), SlidingWidget::InitGump(), SliderGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), PagedGump::InitGump(), MiniStatsGump::InitGump(), MenuGump::InitGump(), ContainerGump::InitGump(), ButtonWidget::InitGump(), BookGump::InitGump(), load_image(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), LoadU8Format(), Gump::PaintThis(), Gump::SetShape(), PaperdollGump::StartDraggingItem(), and ConvertShape::Write().
Definition at line 43 of file ShapeFrame.h.
Referenced by getConvertShapeFrame(), getPixelAtPoint(), hasPoint(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), LoadU8Format(), ConvertShape::Write(), and ~ShapeFrame().
const uint8* ShapeFrame::rle_data |
Definition at line 44 of file ShapeFrame.h.
Referenced by getConvertShapeFrame(), getPixelAtPoint(), hasPoint(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), LoadU8Format(), and ConvertShape::Write().
Definition at line 40 of file ShapeFrame.h.
Referenced by ItemSorter::AddItem(), ConvertShape::Check(), ConvertShape::CheckUnsafe(), getConvertShapeFrame(), getPixelAtPoint(), Shape::getTotalDimensions(), ShapeFont::getWidth(), JPFont::getWidth(), hasPoint(), U8SaveGump::InitGump(), SlidingWidget::InitGump(), SliderGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), PagedGump::InitGump(), MiniStatsGump::InitGump(), MenuGump::InitGump(), ContainerGump::InitGump(), ButtonWidget::InitGump(), BookGump::InitGump(), load_image(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), LoadU8Format(), Gump::SetShape(), PaperdollGump::StartDraggingItem(), and ConvertShape::Write().
Definition at line 41 of file ShapeFrame.h.
Referenced by ItemSorter::AddItem(), ConvertShape::Check(), ConvertShape::CheckUnsafe(), GUIApp::CreateHWCursors(), getConvertShapeFrame(), getPixelAtPoint(), Shape::getTotalDimensions(), hasPoint(), load_frame(), load_image(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), LoadU8Format(), Gump::PaintThis(), PaperdollGump::StartDraggingItem(), and ConvertShape::Write().
Definition at line 41 of file ShapeFrame.h.
Referenced by ItemSorter::AddItem(), ConvertShape::Check(), ConvertShape::CheckUnsafe(), ShapeFont::getBaseline(), getConvertShapeFrame(), getPixelAtPoint(), Shape::getTotalDimensions(), hasPoint(), load_frame(), load_image(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8CMPFormat(), LoadU8Format(), Gump::PaintThis(), PaperdollGump::StartDraggingItem(), and ConvertShape::Write().