HOG2
Public Member Functions | Private Attributes | List of all members
LineTransition Class Reference

#include <ScreenTransition.h>

Inheritance diagram for LineTransition:
Inheritance graph
[legend]
Collaboration diagram for LineTransition:
Collaboration graph
[legend]

Public Member Functions

 LineTransition (int numSegments, int linesPerSegment, rgbColor color=Colors::black)
 
virtual void Reset (float t)
 
virtual bool Step (float delta)
 
virtual void Draw (Graphics::Display &d)
 
void SetColor (rgbColor c)
 

Private Attributes

float mTime
 
int numSegments
 
int linesPerSegment
 
rgbColor color
 

Detailed Description

Definition at line 25 of file ScreenTransition.h.

Constructor & Destructor Documentation

◆ LineTransition()

LineTransition::LineTransition ( int  numSegments,
int  linesPerSegment,
rgbColor  color = Colors::black 
)

Definition at line 11 of file ScreenTransition.cpp.

References color, linesPerSegment, and numSegments.

Member Function Documentation

◆ Draw()

void LineTransition::Draw ( Graphics::Display d)
virtual

Implements ScreenTransition.

Definition at line 39 of file ScreenTransition.cpp.

References color, d, mTime, and numSegments.

◆ Reset()

void LineTransition::Reset ( float  t)
virtual

Implements ScreenTransition.

Definition at line 23 of file ScreenTransition.cpp.

References mTime.

◆ SetColor()

void LineTransition::SetColor ( rgbColor  c)

Definition at line 18 of file ScreenTransition.cpp.

References color.

◆ Step()

bool LineTransition::Step ( float  delta)
virtual

Implements ScreenTransition.

Definition at line 28 of file ScreenTransition.cpp.

References mTime.

Member Data Documentation

◆ color

rgbColor LineTransition::color
private

Definition at line 35 of file ScreenTransition.h.

Referenced by Draw(), LineTransition(), and SetColor().

◆ linesPerSegment

int LineTransition::linesPerSegment
private

Definition at line 34 of file ScreenTransition.h.

Referenced by LineTransition().

◆ mTime

float LineTransition::mTime
private

Definition at line 33 of file ScreenTransition.h.

Referenced by Draw(), Reset(), and Step().

◆ numSegments

int LineTransition::numSegments
private

Definition at line 34 of file ScreenTransition.h.

Referenced by Draw(), and LineTransition().


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