CCIMXDesktop
 
Loading...
Searching...
No Matches
BirdFrameFetch Class Reference

Frame fetcher for bird-type obstacles. More...

#include <FigureFrameFetcher.h>

Inheritance diagram for BirdFrameFetch:
ObstacleBaseFrameFetch FrameProvider

Public Member Functions

 BirdFrameFetch (const QString &valid_base_path, QObject *parent)
 Constructs a bird frame fetcher.
 
QRect & src_bounding_rect () override
 Returns the source bounding rectangle.
 
- Public Member Functions inherited from ObstacleBaseFrameFetch
 ObstacleBaseFrameFetch (const QString &valid_base_path, QObject *parent)
 Constructs the base obstacle frame fetcher.
 
- 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

Frame fetcher for bird-type obstacles.

Constructor & Destructor Documentation

◆ BirdFrameFetch()

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

Constructs a bird frame fetcher.

Parameters
valid_base_pathPath to frame resources.
parentThe parent QObject.

Member Function Documentation

◆ src_bounding_rect()

QRect & BirdFrameFetch::src_bounding_rect ( )
inlineoverridevirtual

Returns the source bounding rectangle.

Returns
Reference to the QRect representing the bounding rect.

Implements ObstacleBaseFrameFetch.


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