29.11.2014 Views

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Peripheral and Interface Components<br />

Verification and testing<br />

The GUIPoll component has been tested as part of the PhoneSkin example platform, confirming<br />

that the GUI continues to be refreshed even when the simulation is stopped.<br />

Performance<br />

The GUIPoll component is not expected to significantly affect the performance of a PV system.<br />

Library dependencies<br />

The GUIPoll component has no dependencies on external libraries.<br />

5.5.5 C++ classes<br />

This section describes the C++ classes and structures that are made available to you through the<br />

Visualisation library. To make use of these classes, you must ensure that your LISA component<br />

begins with:<br />

includes<br />

{<br />

#include “components/Visualisation.h”<br />

}<br />

Classes and structures described in this section are:<br />

• Class Visualisation<br />

• Class VisRegion on page 5-154<br />

• Class VisPushButtonRegion : public VisRegion on page 5-154<br />

• Class VisRenderRegion : public VisRegion on page 5-154<br />

• Struct VisRasterLayout on page 5-155<br />

• Struct VisPixelFormat on page 5-156.<br />

Class Visualisation<br />

The Visualisation class provides access to the API for creating a custom LISA visualization<br />

component.<br />

A component obtains an instance of this class by calling the global function<br />

createVisualisation(). The component can then use this instance to control the size and layout<br />

of the visualization window.<br />

The Visualisation library is currently implemented using the Simple DirectMedia Layer (SDL)<br />

cross-platform rendering library.<br />

Global functions<br />

Visualisation *createVisualisation()<br />

This generates an instance of the Visualisation library. You can only call this<br />

function once, as SDL only supports opening a single display window.<br />

Class Visualisation<br />

~Visualisation()<br />

Destructor for the Visualisation library. You must only call this method when your<br />

simulation is shutting down, after all allocated resources (VisRenderRegions,<br />

VisPushButtonRegions, VisBitmaps) have been deleted.<br />

<strong>ARM</strong> DUI 0423J Copyright © 2008-2011 <strong>ARM</strong>. All rights reserved. 5-152<br />

ID051811<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!