#include <Shape.h>
Inheritance diagram for Shape:
Definition at line 29 of file Shape.h.
Shape::Shape | ( | const uint8 * | data, | |
uint32 | size, | |||
const ConvertShapeFormat * | format, | |||
const uint16 | flexId, | |||
const uint32 | shapenum | |||
) |
Definition at line 32 of file Shape.cpp.
References DetectShapeFormat(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8Format(), palette, PentagramShapeFormat, perr, U82DShapeFormat, and U8ShapeFormat.
Shape::Shape | ( | IDataSource * | src, | |
const ConvertShapeFormat * | format | |||
) |
Definition at line 59 of file Shape.cpp.
References data, DetectShapeFormat(), IDataSource::getSize(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8Format(), palette, PentagramShapeFormat, perr, IDataSource::read(), size, U82DShapeFormat, and U8ShapeFormat.
const ConvertShapeFormat * Shape::DetectShapeFormat | ( | IDataSource * | ds, | |
uint32 | size | |||
) | [static] |
Definition at line 215 of file Shape.cpp.
References ConvertShape::CheckUnsafe(), Crusader2DShapeFormat, CrusaderShapeFormat, PentagramShapeFormat, U82DShapeFormat, U8CMPShapeFormat, U8ShapeFormat, and U8SKFShapeFormat.
const ConvertShapeFormat * Shape::DetectShapeFormat | ( | const uint8 * | data, | |
uint32 | size | |||
) | [static] |
Definition at line 209 of file Shape.cpp.
Referenced by ShapeArchive::cache(), FontShapeArchive::cache(), load_image(), and Shape().
Shape::ENABLE_CUSTOM_MEMORY_ALLOCATION | ( | ) |
Shape::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented in ShapeFont.
uint32 Shape::frameCount | ( | ) | const [inline] |
Definition at line 42 of file Shape.h.
References frames.
Referenced by Item::animateItem(), GUIApp::CreateHWCursors(), Actor::die(), ShapeFont::getBaseline(), ShapeFont::getHeight(), JPFont::JPFont(), load_image(), TypeFlags::loadArmourInfo(), and ShapeViewerGump::OnKeyDown().
ShapeFrame* Shape::getFrame | ( | unsigned int | frame | ) | [inline] |
Definition at line 49 of file Shape.h.
References frames.
Referenced by ItemSorter::AddItem(), GUIApp::CreateHWCursors(), JPRenderedText::draw(), JPRenderedText::drawBlended(), ShapeFont::getBaseline(), GameData::getFrame(), ShapeFont::getHeight(), ShapeFont::getWidth(), JPFont::getWidth(), 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_frame(), load_image(), Gump::PaintThis(), ContainerGump::PaintThis(), Gump::PointOnGump(), MiniMapGump::sampleAtPoint(), Gump::SetShape(), PaperdollGump::StartDraggingItem(), ItemSorter::Trace(), PaperdollGump::TraceObjId(), and ContainerGump::TraceObjId().
const Pentagram::Palette* Shape::getPalette | ( | ) | const [inline] |
Definition at line 40 of file Shape.h.
References palette.
Referenced by JPRenderedText::draw(), JPRenderedText::drawBlended(), and MiniMapGump::sampleAtPoint().
Definition at line 96 of file Shape.cpp.
References flexId, and shapenum.
Referenced by Gump::saveData(), and ButtonWidget::saveData().
Returns the dimensions of all frames combined (w,h) = size of smallest rectangle covering all frames (x,y) = coordinates of origin relative to top-left point of rectangle
Definition at line 237 of file Shape.cpp.
References frame, frames, ShapeFrame::height, ShapeFrame::width, ShapeFrame::xoff, and ShapeFrame::yoff.
Referenced by ShapeViewerGump::OnKeyDown().
void Shape::LoadGenericFormat | ( | const uint8 * | data, | |
uint32 | size, | |||
const ConvertShapeFormat * | format | |||
) | [protected] |
Definition at line 149 of file Shape.cpp.
References ConvertShapeFormat::bytes_frame_length, ConvertShapeFormat::bytes_frame_length_kludge, ConvertShapeFormat::bytes_frame_offset, ConvertShapeFormat::bytes_frameheader_unk, ConvertShapeFormat::bytes_header_unk, ConvertShapeFormat::bytes_ident, ConvertShapeFormat::bytes_num_frames, ConvertShapeFormat::bytes_special, ConvertShape::CalcNumFrames(), frames, ConvertShapeFormat::ident, ConvertShapeFormat::len_frameheader, ConvertShapeFormat::len_header, prev, IBufferDataSource::read(), IBufferDataSource::read1(), IDataSource::readX(), and IBufferDataSource::skip().
Referenced by LoadPentagramFormat(), LoadU8Format(), and Shape().
void Shape::LoadPentagramFormat | ( | const uint8 * | data, | |
uint32 | size, | |||
const ConvertShapeFormat * | format | |||
) | [protected] |
Definition at line 129 of file Shape.cpp.
References frames, and LoadGenericFormat().
Referenced by Shape().
void Shape::LoadU8Format | ( | const uint8 * | data, | |
uint32 | size, | |||
const ConvertShapeFormat * | format | |||
) | [protected] |
Definition at line 109 of file Shape.cpp.
References frames, and LoadGenericFormat().
Referenced by Shape().
void Shape::setPalette | ( | const Pentagram::Palette * | pal | ) | [inline] |
Definition at line 39 of file Shape.h.
Referenced by ShapeArchive::cache(), FontShapeArchive::cache(), JPRenderedText::draw(), JPRenderedText::drawBlended(), load_image(), GameData::loadRemorseData(), GameData::loadU8Data(), and SKFPlayer::run().
const uint8* Shape::data [protected] |
const uint16 Shape::flexId [protected] |
std::vector<ShapeFrame*> Shape::frames [protected] |
Definition at line 74 of file Shape.h.
Referenced by frameCount(), getFrame(), getTotalDimensions(), LoadGenericFormat(), LoadPentagramFormat(), LoadU8Format(), and ~Shape().
const Pentagram::Palette* Shape::palette [protected] |
const uint32 Shape::shapenum [protected] |
uint32 Shape::size [protected] |