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

#include <renderentry.h>

Collaboration diagram for Stark::Gfx::RenderEntry:

List of all members.

Public Member Functions

 RenderEntry (Resources::ItemVisual *owner, const Common::String &name)
virtual ~RenderEntry ()
void render (const LightEntryArray &lights=LightEntryArray())
void setVisual (Visual *visual)
void setPosition (const Common::Point &position)
void setPosition3D (const Math::Vector3d &position, float direction)
void setSortKey (float sortKey)
void setClickable (bool clickable)
Common::Point getPosition () const
 Gets the position.
Resources::ItemVisualgetOwner () const
 Gets the owner-object.
const Common::StringgetName () const
 Gets the entry's name.
VisualImageXMGgetImage () const
 Obtain the underlying image visual, if any.
VisualTextgetText () const
 Obtain the underlying text visual, if any.
bool containsPoint (const Common::Point &position, Common::Point &relativePosition, const Common::Rect &cursorRect) const
 Mouse picking test for 2D items.
bool intersectRay (const Math::Ray &ray) const
 Mouse picking test for 3D items.
Common::Rect getBoundingRect () const
 Compute the 2D screen space bounding rect for the item, in original game view coordinates.

Static Public Member Functions

static bool compare (const RenderEntry *x, const RenderEntry *y)
 Compare two render entries by their sort keys.

Protected Attributes

Common::String _name
Resources::ItemVisual_owner
Visual_visual
Common::Point _position
Math::Vector3d _position3D
float _direction3D
float _sortKey
bool _clickable

Detailed Description

Definition at line 65 of file renderentry.h.


Constructor & Destructor Documentation

Stark::Gfx::RenderEntry::RenderEntry ( Resources::ItemVisual owner,
const Common::String name 
)

Definition at line 41 of file renderentry.cpp.

virtual Stark::Gfx::RenderEntry::~RenderEntry (  )  [inline, virtual]

Definition at line 68 of file renderentry.h.


Member Function Documentation

bool Stark::Gfx::RenderEntry::compare ( const RenderEntry x,
const RenderEntry y 
) [static]

Compare two render entries by their sort keys.

Definition at line 118 of file renderentry.cpp.

bool Stark::Gfx::RenderEntry::containsPoint ( const Common::Point position,
Common::Point relativePosition,
const Common::Rect cursorRect 
) const

Mouse picking test for 2D items.

Parameters:
position game window coordinates to test
relativePosition successful hit item relative coordinates
cursorRect cursor rectangle to be used to test small world items
Returns:
successful hit

Definition at line 130 of file renderentry.cpp.

Common::Rect Stark::Gfx::RenderEntry::getBoundingRect (  )  const

Compute the 2D screen space bounding rect for the item, in original game view coordinates.

Definition at line 220 of file renderentry.cpp.

VisualImageXMG * Stark::Gfx::RenderEntry::getImage (  )  const

Obtain the underlying image visual, if any.

Definition at line 206 of file renderentry.cpp.

const Common::String& Stark::Gfx::RenderEntry::getName (  )  const [inline]

Gets the entry's name.

Definition at line 85 of file renderentry.h.

Resources::ItemVisual* Stark::Gfx::RenderEntry::getOwner (  )  const [inline]

Gets the owner-object.

Definition at line 82 of file renderentry.h.

Common::Point Stark::Gfx::RenderEntry::getPosition (  )  const [inline]

Gets the position.

Definition at line 79 of file renderentry.h.

VisualText * Stark::Gfx::RenderEntry::getText (  )  const

Obtain the underlying text visual, if any.

Definition at line 213 of file renderentry.cpp.

bool Stark::Gfx::RenderEntry::intersectRay ( const Math::Ray ray  )  const

Mouse picking test for 3D items.

Definition at line 188 of file renderentry.cpp.

void Stark::Gfx::RenderEntry::render ( const LightEntryArray lights = LightEntryArray()  ) 

Definition at line 50 of file renderentry.cpp.

void Stark::Gfx::RenderEntry::setClickable ( bool  clickable  ) 

Definition at line 114 of file renderentry.cpp.

void Stark::Gfx::RenderEntry::setPosition ( const Common::Point position  ) 

Definition at line 101 of file renderentry.cpp.

void Stark::Gfx::RenderEntry::setPosition3D ( const Math::Vector3d position,
float  direction 
)

Definition at line 105 of file renderentry.cpp.

void Stark::Gfx::RenderEntry::setSortKey ( float  sortKey  ) 

Definition at line 110 of file renderentry.cpp.

void Stark::Gfx::RenderEntry::setVisual ( Visual visual  ) 

Definition at line 97 of file renderentry.cpp.


Member Data Documentation

Definition at line 124 of file renderentry.h.

Definition at line 122 of file renderentry.h.

Definition at line 116 of file renderentry.h.

Definition at line 117 of file renderentry.h.

Definition at line 120 of file renderentry.h.

Definition at line 121 of file renderentry.h.

Definition at line 123 of file renderentry.h.

Definition at line 119 of file renderentry.h.


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


Generated on Sat Nov 16 2019 05:03:49 for ResidualVM by doxygen 1.7.1
curved edge   curved edge