All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Eegeo::Pins::PinViewFactory Class Reference

Factory for creating PinViews. More...

#include <PinViewFactory.h>

Inheritance diagram for Eegeo::Pins::PinViewFactory:
Eegeo::Pins::IPinViewFactory

Public Member Functions

 PinViewFactory (float spriteWidth, float spriteHeight)
 
PinViewCreateViewForPin (Pin &pinModel)
 

Detailed Description

Factory for creating PinViews.

The views created by this class have their origin in centre of their base edge. This class performs a 1-to-1 mapping of the Pin's category id to a tile in the texture used by the PinViewRenderer. That is, category 0 maps to tile 0, category 1 maps to tile 1 and so on.

Member Function Documentation

PinView* Eegeo::Pins::PinViewFactory::CreateViewForPin ( Pin pinModel)
inlinevirtual

Create a new PinView to represent a given Pin object.

Parameters
pinModelThe Pin model object to create a view for.
Returns
A pointer to the newly created PinView to represent the given model.

Implements Eegeo::Pins::IPinViewFactory.


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