CCIMXDesktop
 
Loading...
Searching...
No Matches
ObstacleBaseFrameFetch Class Referenceabstract

Abstract base class for obstacle frame providers. More...

#include <FigureFrameFetcher.h>

Inheritance diagram for ObstacleBaseFrameFetch:
FrameProvider BirdFrameFetch CactusFrameFetch

Public Member Functions

 ObstacleBaseFrameFetch (const QString &valid_base_path, QObject *parent)
 Constructs the base obstacle frame fetcher.
 
virtual QRect & src_bounding_rect ()=0
 Returns the source bounding rectangle.
 
- Public Member Functions inherited from FrameProvider
 FrameProvider (const QString &valid_base_path, QObject *parent)
 Constructs a FrameProvider with initial path.
 
virtual ~FrameProvider ()
 Destructor.
 
void append_src (const QString &valid_base_path)
 Adds a single source path.
 
void append_srcs (const QStringList &valid_base_paths)
 Adds multiple source paths.
 
void lock_src (const QString &valid_base_path)
 Locks to a specific source path.
 
void terminate_flow ()
 Stops frame updates.
 
void resume_flow ()
 Resumes frame updates.
 
void manual_shuffle_once ()
 Manually triggers one frame shuffle.
 
QPixmap & src_pixmap ()
 Gets current source pixmap.
 

Detailed Description

Abstract base class for obstacle frame providers.

Constructor & Destructor Documentation

◆ ObstacleBaseFrameFetch()

ObstacleBaseFrameFetch::ObstacleBaseFrameFetch ( const QString &  valid_base_path,
QObject *  parent 
)
explicit

Constructs the base obstacle frame fetcher.

Parameters
valid_base_pathPath to valid frame resources.
parentThe parent QObject.

Member Function Documentation

◆ src_bounding_rect()

virtual QRect & ObstacleBaseFrameFetch::src_bounding_rect ( )
pure virtual

Returns the source bounding rectangle.

Returns
Reference to the QRect representing the bounding rect.

Implements FrameProvider.

Implemented in CactusFrameFetch, and BirdFrameFetch.


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