ShapeViewerGump Class Reference

#include <ShapeViewerGump.h>

Inheritance diagram for ShapeViewerGump:

ModalGump Gump Object List of all members.

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 ShapeViewerGump ()
 ShapeViewerGump (int width, int height, std::vector< std::pair< std::string, ShapeArchive * > > &flexes, uint32 _Flags=0, sint32 layer=LAYER_MODAL)
virtual ~ShapeViewerGump (void)
virtual void PaintThis (RenderSurface *, sint32 lerp_factor, bool scaled)
virtual bool OnKeyDown (int key, int mod)
virtual bool OnTextInput (int unicode)
bool loadData (IDataSource *ids)

Static Public Member Functions

static void U8ShapeViewer ()
static void ConCmd_U8ShapeViewer (const Console::ArgvType &argv)

Protected Member Functions

virtual void saveData (ODataSource *ods)

Protected Attributes

std::vector< std::pair< std::string,
ShapeArchive * > > 
flexes
unsigned int curflex
ShapeArchiveflex
uint32 curshape
uint32 curframe
uint32 background
sint32 shapew
sint32 shapeh
sint32 shapex
sint32 shapey

Detailed Description

Definition at line 29 of file ShapeViewerGump.h.


Constructor & Destructor Documentation

ShapeViewerGump::ShapeViewerGump (  ) 

Definition at line 48 of file ShapeViewerGump.cpp.

Referenced by U8ShapeViewer().

ShapeViewerGump::ShapeViewerGump ( int  width,
int  height,
std::vector< std::pair< std::string, ShapeArchive * > > &  flexes,
uint32  _Flags = 0,
sint32  layer = LAYER_MODAL 
)

Definition at line 54 of file ShapeViewerGump.cpp.

References flex, and flexes.

ShapeViewerGump::~ShapeViewerGump ( void   )  [virtual]

Definition at line 66 of file ShapeViewerGump.cpp.


Member Function Documentation

void ShapeViewerGump::ConCmd_U8ShapeViewer ( const Console::ArgvType argv  )  [static]

Definition at line 280 of file ShapeViewerGump.cpp.

References U8ShapeViewer().

Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().

ShapeViewerGump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from ModalGump.

bool ShapeViewerGump::loadData ( IDataSource ids  ) 

Definition at line 285 of file ShapeViewerGump.cpp.

bool ShapeViewerGump::OnKeyDown ( int  key,
int  mod 
) [virtual]

Reimplemented from Gump.

Definition at line 128 of file ShapeViewerGump.cpp.

References ModalGump::Close(), curflex, curframe, curshape, flex, flexes, Shape::frameCount(), Pentagram::Archive::getCount(), ShapeArchive::getShape(), Shape::getTotalDimensions(), Gump::shape, shapeh, shapew, shapex, and shapey.

bool ShapeViewerGump::OnTextInput ( int  unicode  )  [virtual]

Reimplemented from Gump.

Definition at line 217 of file ShapeViewerGump.cpp.

References background.

void ShapeViewerGump::PaintThis ( RenderSurface ,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Overloadable method to Paint just this Gump (RenderSurface is relative to this).

Reimplemented from Gump.

Definition at line 71 of file ShapeViewerGump.cpp.

References ShapeInfo::animdata, ShapeInfo::animtype, background, ModalGump::Close(), curflex, curframe, curshape, Gump::dims, ShapeInfo::equiptype, ShapeInfo::family, RenderSurface::Fill32(), ShapeInfo::flags, flex, flexes, font, GameData::get_instance(), FontManager::get_instance(), FontManager::getGameFont(), ShapeArchive::getShape(), MainShapeArchive::getShapeInfo(), Pentagram::Rect::h, RenderSurface::Paint(), Gump::shape, shapeh, shapew, shapex, shapey, ShapeInfo::unknown, ShapeInfo::volume, Pentagram::Rect::w, ShapeInfo::weight, ShapeInfo::x, ShapeInfo::y, and ShapeInfo::z.

void ShapeViewerGump::saveData ( ODataSource ods  )  [protected, virtual]

save the actual Object data

Reimplemented from ModalGump.

Definition at line 291 of file ShapeViewerGump.cpp.

void ShapeViewerGump::U8ShapeViewer (  )  [static]

Definition at line 234 of file ShapeViewerGump.cpp.

References flex, flexes, GUIApp::get_instance(), PaletteManager::get_instance(), FileSystem::get_instance(), GameData::get_instance(), GUIApp::getDesktopGump(), Gump::GetDims(), GameData::getFonts(), GameData::getGumps(), GameData::getMainShapes(), Pentagram::Rect::h, ModalGump::InitGump(), GameData::OTHER, PaletteManager::Pal_Game, FileSystem::ReadFile(), ShapeViewerGump(), U8SKFShapeFormat, and Pentagram::Rect::w.

Referenced by ConCmd_U8ShapeViewer().


Member Data Documentation

uint32 ShapeViewerGump::background [protected]

Definition at line 58 of file ShapeViewerGump.h.

Referenced by OnTextInput(), and PaintThis().

unsigned int ShapeViewerGump::curflex [protected]

Definition at line 53 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), and PaintThis().

uint32 ShapeViewerGump::curframe [protected]

Definition at line 56 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), and PaintThis().

uint32 ShapeViewerGump::curshape [protected]

Definition at line 55 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), and PaintThis().

ShapeArchive* ShapeViewerGump::flex [protected]

Definition at line 54 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), PaintThis(), ShapeViewerGump(), and U8ShapeViewer().

std::vector<std::pair<std::string,ShapeArchive*> > ShapeViewerGump::flexes [protected]

Definition at line 52 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), PaintThis(), ShapeViewerGump(), and U8ShapeViewer().

sint32 ShapeViewerGump::shapeh [protected]

Definition at line 60 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), and PaintThis().

sint32 ShapeViewerGump::shapew [protected]

Definition at line 60 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), and PaintThis().

sint32 ShapeViewerGump::shapex [protected]

Definition at line 60 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), and PaintThis().

sint32 ShapeViewerGump::shapey [protected]

Definition at line 60 of file ShapeViewerGump.h.

Referenced by OnKeyDown(), and PaintThis().


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