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

#include <primitives.h>

Inheritance diagram for Grim::PrimitiveObject:
Collaboration diagram for Grim::PrimitiveObject:

List of all members.

Public Types

enum  PrimType { RectangleType = 1, LineType = 2, PolygonType = 3, InvalidType = 4 }

Public Member Functions

 PrimitiveObject ()
 ~PrimitiveObject ()
void createRectangle (const Common::Point &p1, const Common::Point &p2, const Color &color, bool filled)
void createLine (const Common::Point &p1, const Common::Point &p2, const Color &color)
void createPolygon (const Common::Point &p1, const Common::Point &p2, const Common::Point &p3, const Common::Point &p4, const Color &color)
Common::Point getP1 () const
Common::Point getP2 () const
Common::Point getP3 () const
Common::Point getP4 () const
void setPos (int x, int y)
void setEndpoint (int x, int y)
void setColor (const Color &color)
Color getColor () const
PrimType getType () const
bool isFilled () const
void draw () const
void saveState (SaveGame *state) const
bool restoreState (SaveGame *state)

Static Public Member Functions

static int32 getStaticTag ()

Private Attributes

Common::Point _p1
Common::Point _p2
Common::Point _p3
Common::Point _p4
Color _color
bool _filled
PrimType _type

Detailed Description

Definition at line 35 of file engines/grim/primitives.h.

Member Enumeration Documentation


Definition at line 40 of file engines/grim/primitives.h.

Constructor & Destructor Documentation

Grim::PrimitiveObject::PrimitiveObject (  ) 

Definition at line 32 of file engines/grim/primitives.cpp.

Grim::PrimitiveObject::~PrimitiveObject (  ) 

Definition at line 36 of file engines/grim/primitives.cpp.

Member Function Documentation

void Grim::PrimitiveObject::createLine ( const Common::Point p1,
const Common::Point p2,
const Color color 

Definition at line 83 of file engines/grim/primitives.cpp.

void Grim::PrimitiveObject::createPolygon ( const Common::Point p1,
const Common::Point p2,
const Common::Point p3,
const Common::Point p4,
const Color color 

Definition at line 90 of file engines/grim/primitives.cpp.

void Grim::PrimitiveObject::createRectangle ( const Common::Point p1,
const Common::Point p2,
const Color color,
bool  filled 

Definition at line 75 of file engines/grim/primitives.cpp.

void Grim::PrimitiveObject::draw (  )  const

Definition at line 99 of file engines/grim/primitives.cpp.

Color Grim::PrimitiveObject::getColor (  )  const [inline]

Definition at line 59 of file engines/grim/primitives.h.

Common::Point Grim::PrimitiveObject::getP1 (  )  const [inline]

Definition at line 52 of file engines/grim/primitives.h.

Common::Point Grim::PrimitiveObject::getP2 (  )  const [inline]

Definition at line 53 of file engines/grim/primitives.h.

Common::Point Grim::PrimitiveObject::getP3 (  )  const [inline]

Definition at line 54 of file engines/grim/primitives.h.

Common::Point Grim::PrimitiveObject::getP4 (  )  const [inline]

Definition at line 55 of file engines/grim/primitives.h.

static int32 Grim::PrimitiveObject::getStaticTag (  )  [inline, static]

Definition at line 47 of file engines/grim/primitives.h.

PrimType Grim::PrimitiveObject::getType (  )  const [inline]

Definition at line 60 of file engines/grim/primitives.h.

bool Grim::PrimitiveObject::isFilled (  )  const [inline]

Definition at line 61 of file engines/grim/primitives.h.

bool Grim::PrimitiveObject::restoreState ( SaveGame state  ) 

Definition at line 56 of file engines/grim/primitives.cpp.

void Grim::PrimitiveObject::saveState ( SaveGame state  )  const

Definition at line 39 of file engines/grim/primitives.cpp.

void Grim::PrimitiveObject::setColor ( const Color color  )  [inline]

Definition at line 58 of file engines/grim/primitives.h.

void Grim::PrimitiveObject::setEndpoint ( int  x,
int  y 

Definition at line 135 of file engines/grim/primitives.cpp.

void Grim::PrimitiveObject::setPos ( int  x,
int  y 

Definition at line 111 of file engines/grim/primitives.cpp.

Member Data Documentation

Definition at line 68 of file engines/grim/primitives.h.

Definition at line 69 of file engines/grim/primitives.h.

Definition at line 70 of file engines/grim/primitives.h.

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

Generated on Sat May 25 2019 05:05:52 for ResidualVM by doxygen 1.7.1
curved edge   curved edge