ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

A still image resource. More...

#include <image.h>

Inheritance diagram for Stark::Resources::Image:
Collaboration diagram for Stark::Resources::Image:

List of all members.

Public Types

enum  SubType { kImageSub2 = 2, kImageSub3 = 3, kImageText = 4 }
typedef Common::Array
< Common::Point
Polygon

Public Member Functions

 Image (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~Image ()
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
virtual VisualgetVisual ()
 Initialize the renderable for the image.
int indexForPoint (const Common::Point &point) const
 Get the pat-table index for a given point.
Common::Point getHotspotPosition (uint index) const
 Get the hotspot position for a given index of a pat-table.

Static Public Member Functions

static Objectconstruct (Object *parent, byte subType, uint16 index, const Common::String &name)
 Image factory.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kImage

Protected Member Functions

void printData () override
bool isPointInPolygon (const Polygon &polygon, const Common::Point &point) const
virtual void initVisual ()=0

Protected Attributes

Common::String _filename
Common::String _archiveName
Visual_visual
bool _transparent
uint32 _transparentColor
uint32 _field_44_ADF
uint32 _field_48_ADF
Common::Point _hotspot
Common::Array< Polygon_polygons

Detailed Description

A still image resource.

Definition at line 45 of file image.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
kImageSub2 
kImageSub3 
kImageText 

Definition at line 49 of file image.h.


Constructor & Destructor Documentation

Stark::Resources::Image::Image ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 62 of file image.cpp.

Stark::Resources::Image::~Image (  )  [virtual]

Definition at line 58 of file image.cpp.


Member Function Documentation

Object * Stark::Resources::Image::construct ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
) [static]

Image factory.

Definition at line 46 of file image.cpp.

Common::Point Stark::Resources::Image::getHotspotPosition ( uint  index  )  const

Get the hotspot position for a given index of a pat-table.

Definition at line 153 of file image.cpp.

Visual * Stark::Resources::Image::getVisual (  )  [virtual]

Initialize the renderable for the image.

Definition at line 93 of file image.cpp.

int Stark::Resources::Image::indexForPoint ( const Common::Point point  )  const

Get the pat-table index for a given point.

Definition at line 115 of file image.cpp.

virtual void Stark::Resources::Image::initVisual (  )  [protected, pure virtual]
bool Stark::Resources::Image::isPointInPolygon ( const Polygon polygon,
const Common::Point point 
) const [protected]

Definition at line 126 of file image.cpp.

void Stark::Resources::Image::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::Object.

Reimplemented in Stark::Resources::ImageStill, and Stark::Resources::ImageText.

Definition at line 98 of file image.cpp.

void Stark::Resources::Image::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Reimplemented in Stark::Resources::ImageStill, and Stark::Resources::ImageText.

Definition at line 72 of file image.cpp.


Member Data Documentation

Definition at line 82 of file image.h.

Definition at line 88 of file image.h.

Definition at line 89 of file image.h.

Definition at line 81 of file image.h.

Definition at line 91 of file image.h.

Definition at line 92 of file image.h.

Definition at line 86 of file image.h.

Definition at line 87 of file image.h.

Definition at line 84 of file image.h.

const Type::ResourceType Stark::Resources::Image::TYPE = Type::kImage [static]

Definition at line 47 of file image.h.


The documentation for this class was generated from the following files:


Generated on Sat Jul 20 2019 05:03:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge