ConvertShape Class Reference

#include <ConvertShape.h>

List of all members.

Public Member Functions

 ConvertShape ()
 ~ConvertShape ()
void Free ()
void Read (IDataSource *source, const ConvertShapeFormat *csf, uint32 real_len)
void Write (ODataSource *source, const ConvertShapeFormat *csf, uint32 &write_len)

Static Public Member Functions

static bool Check (IDataSource *source, const ConvertShapeFormat *csf, uint32 real_len)
static bool CheckUnsafe (IDataSource *source, const ConvertShapeFormat *csf, uint32 real_len)
static int CalcNumFrames (IDataSource *source, const ConvertShapeFormat *csf, uint32 real_len, uint32 start_pos)

Private Attributes

uint8 header_unknown [4]
uint32 num_frames
ConvertShapeFrameframes


Detailed Description

Definition at line 94 of file ConvertShape.h.


Constructor & Destructor Documentation

ConvertShape::ConvertShape (  )  [inline]

Definition at line 101 of file ConvertShape.h.

ConvertShape::~ConvertShape (  )  [inline]

Definition at line 105 of file ConvertShape.h.

References Free().


Member Function Documentation

int ConvertShape::CalcNumFrames ( IDataSource source,
const ConvertShapeFormat csf,
uint32  real_len,
uint32  start_pos 
) [static]

Definition at line 378 of file ConvertShape.cpp.

References ConvertShapeFormat::bytes_frame_length, ConvertShapeFormat::bytes_frame_length_kludge, ConvertShapeFormat::bytes_frame_offset, ConvertShapeFormat::bytes_frameheader_unk, ConvertShapeFormat::bytes_special, IDataSource::getPos(), ConvertShapeFormat::len_frameheader, ConvertShapeFormat::len_header, IDataSource::readX(), IDataSource::seek(), and IDataSource::skip().

Referenced by Check(), CheckUnsafe(), Shape::LoadGenericFormat(), and Read().

bool ConvertShape::Check ( IDataSource source,
const ConvertShapeFormat csf,
uint32  real_len 
) [static]

Definition at line 411 of file ConvertShape.cpp.

References ConvertShapeFormat::bytes_frame_compression, ConvertShapeFormat::bytes_frame_height, ConvertShapeFormat::bytes_frame_length, ConvertShapeFormat::bytes_frame_length_kludge, ConvertShapeFormat::bytes_frame_offset, ConvertShapeFormat::bytes_frame_unknown, ConvertShapeFormat::bytes_frame_width, ConvertShapeFormat::bytes_frame_xoff, ConvertShapeFormat::bytes_frame_yoff, ConvertShapeFormat::bytes_frameheader_unk, ConvertShapeFormat::bytes_header_unk, ConvertShapeFormat::bytes_ident, ConvertShapeFormat::bytes_line_offset, ConvertShapeFormat::bytes_num_frames, ConvertShapeFormat::bytes_special, CalcNumFrames(), dlen, frame, ConvertShapeFrame::Free(), IDataSource::getPos(), ShapeFrame::height, ConvertShapeFormat::ident, if(), ConvertShapeFormat::len_frameheader, ConvertShapeFormat::len_frameheader2, ConvertShapeFormat::len_header, ConvertShapeFormat::line_offset_absolute, ConvertShapeFormat::name, num_frames, pout, IDataSource::read(), IDataSource::read1(), IDataSource::readX(), IDataSource::readXS(), IDataSource::seek(), IDataSource::skip(), width, ShapeFrame::width, ShapeFrame::xoff, xpos, and ShapeFrame::yoff.

Referenced by ConvertFlexes(), and ConvertShp().

bool ConvertShape::CheckUnsafe ( IDataSource source,
const ConvertShapeFormat csf,
uint32  real_len 
) [static]

Definition at line 601 of file ConvertShape.cpp.

References ConvertShapeFormat::bytes_frame_compression, ConvertShapeFormat::bytes_frame_height, ConvertShapeFormat::bytes_frame_length, ConvertShapeFormat::bytes_frame_length_kludge, ConvertShapeFormat::bytes_frame_offset, ConvertShapeFormat::bytes_frame_unknown, ConvertShapeFormat::bytes_frame_width, ConvertShapeFormat::bytes_frame_xoff, ConvertShapeFormat::bytes_frame_yoff, ConvertShapeFormat::bytes_frameheader_unk, ConvertShapeFormat::bytes_header_unk, ConvertShapeFormat::bytes_ident, ConvertShapeFormat::bytes_line_offset, ConvertShapeFormat::bytes_num_frames, ConvertShapeFormat::bytes_special, CalcNumFrames(), frame, ConvertShapeFrame::Free(), IDataSource::getPos(), ShapeFrame::height, ConvertShapeFormat::ident, ConvertShapeFormat::len_frameheader, ConvertShapeFormat::len_frameheader2, ConvertShapeFormat::len_header, ConvertShapeFormat::name, num_frames, pout, IDataSource::read(), IDataSource::readX(), IDataSource::readXS(), IDataSource::seek(), IDataSource::skip(), ShapeFrame::width, ShapeFrame::xoff, and ShapeFrame::yoff.

Referenced by Shape::DetectShapeFormat().

void ConvertShape::Free (  )  [inline]

Definition at line 110 of file ConvertShape.h.

References frames, and num_frames.

Referenced by ConvertFlexes(), ConvertShp(), and ~ConvertShape().

void ConvertShape::Read ( IDataSource source,
const ConvertShapeFormat csf,
uint32  real_len 
)

Definition at line 33 of file ConvertShape.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, CalcNumFrames(), frame, frames, IDataSource::getPos(), header_unknown, ConvertShapeFormat::ident, if(), ConvertShapeFormat::len_frameheader, ConvertShapeFormat::len_header, num_frames, perr, pout, IDataSource::read(), IDataSource::read1(), IDataSource::readX(), IDataSource::seek(), and shapenum.

Referenced by ConvertFlexes(), and ConvertShp().

void ConvertShape::Write ( ODataSource source,
const ConvertShapeFormat csf,
uint32 write_len 
)

Definition at line 715 of file ConvertShape.cpp.

References ConvertShapeFormat::bytes_frame_compression, ConvertShapeFormat::bytes_frame_height, ConvertShapeFormat::bytes_frame_length, ConvertShapeFormat::bytes_frame_length_kludge, ConvertShapeFormat::bytes_frame_offset, ConvertShapeFormat::bytes_frame_unknown, ConvertShapeFormat::bytes_frame_width, ConvertShapeFormat::bytes_frame_xoff, ConvertShapeFormat::bytes_frame_yoff, ConvertShapeFormat::bytes_frameheader_unk, ConvertShapeFormat::bytes_header_unk, ConvertShapeFormat::bytes_ident, ConvertShapeFormat::bytes_line_offset, ConvertShapeFormat::bytes_num_frames, frame, frames, ODataSource::getPos(), header_unknown, ShapeFrame::height, ConvertShapeFormat::ident, if(), ConvertShapeFormat::len_frameheader, ConvertShapeFormat::len_frameheader2, ConvertShapeFormat::len_header, ConvertShapeFormat::line_offset_absolute, ShapeFrame::line_offsets, ConvertShapeFormat::name, num_frames, perr, ShapeFrame::rle_data, ODataSource::seek(), ShapeFrame::width, ODataSource::write(), ODataSource::write1(), ODataSource::writeX(), ShapeFrame::xoff, and ShapeFrame::yoff.

Referenced by ConvertFlexes(), and ConvertShp().


Member Data Documentation

ConvertShapeFrame* ConvertShape::frames [private]

Definition at line 98 of file ConvertShape.h.

Referenced by Free(), Read(), and Write().

uint8 ConvertShape::header_unknown[4] [private]

Definition at line 96 of file ConvertShape.h.

Referenced by Read(), and Write().

uint32 ConvertShape::num_frames [private]

Definition at line 97 of file ConvertShape.h.

Referenced by Check(), CheckUnsafe(), Free(), Read(), and Write().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:28:57 2007 for pentagram by  doxygen 1.4.7