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, kImageSub4 = 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 43 of file resources/image.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
kImageSub2 
kImageSub3 
kImageSub4 

Definition at line 47 of file resources/image.h.


Constructor & Destructor Documentation

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

Definition at line 58 of file resources/image.cpp.

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

Definition at line 54 of file resources/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 42 of file resources/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 149 of file resources/image.cpp.

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

Initialize the renderable for the image.

Definition at line 89 of file resources/image.cpp.

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

Get the pat-table index for a given point.

Definition at line 111 of file resources/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 122 of file resources/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 94 of file resources/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 68 of file resources/image.cpp.


Member Data Documentation

Definition at line 86 of file resources/image.h.

Definition at line 87 of file resources/image.h.

Definition at line 79 of file resources/image.h.

Definition at line 89 of file resources/image.h.

Definition at line 84 of file resources/image.h.

Definition at line 85 of file resources/image.h.

Definition at line 82 of file resources/image.h.

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

Definition at line 45 of file resources/image.h.


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


Generated on Sat Jan 12 2019 05:05:20 for ResidualVM by doxygen 1.7.1
curved edge   curved edge