Factory for creating PinViews. More...
#include <PinViewFactory.h>
Public Member Functions | |
PinViewFactory (float spriteWidth, float spriteHeight) | |
PinView * | CreateViewForPin (Pin &pinModel) |
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.
Create a new PinView to represent a given Pin object.
pinModel | The Pin model object to create a view for. |
Implements Eegeo::Pins::IPinViewFactory.