Lumiera  0.pre.03
»edityourfreedom«
Clip Class Reference

#include "gui/model/clip.hpp"

Description

Definition at line 49 of file gui/model/clip.hpp.

Public Member Functions

 Clip ()
 
Time getBegin () const
 
Time getEnd () const
 
string const & getName () const
 
bool isPlayingAt (Time const &position) const
 Check whether or not the clip will be playing during the given time. More...
 
void setBegin (Time)
 Sets the begin time of this clip. More...
 
void setDuration (Duration)
 Sets the end time of this clip. More...
 
void setName (string const &)
 Sets the name of this clip. More...
 
sigc::signal< void, std::string > signalNameChanged () const
 A signal which fires when the name changes. More...
 

Private Attributes

string name_
 
sigc::signal< void, string > nameChangedSignal_
 fires when the name changes. More...
 
TimeSpan timeCoord_
 

Constructor & Destructor Documentation

◆ Clip()

Clip ( )

Definition at line 42 of file gui/model/clip.cpp.

Member Function Documentation

◆ getBegin()

Time getBegin ( ) const
inline

Definition at line 62 of file gui/model/clip.hpp.

References TimeSpan::start().

+ Here is the call graph for this function:

◆ getEnd()

Time getEnd ( ) const
inline

Definition at line 63 of file gui/model/clip.hpp.

References TimeSpan::end().

+ Here is the call graph for this function:

◆ getName()

string const& getName ( ) const
inline

Definition at line 65 of file gui/model/clip.hpp.

References Clip::name_.

◆ isPlayingAt()

bool isPlayingAt ( Time const &  position) const
inline

Check whether or not the clip will be playing during the given time.

Definition at line 72 of file gui/model/clip.hpp.

References TimeSpan::contains(), Clip::setBegin(), Clip::setDuration(), Clip::setName(), and Clip::signalNameChanged().

+ Here is the call graph for this function:

◆ setBegin()

void setBegin ( Time  newStartTime)

Sets the begin time of this clip.

Parameters
[in]beginThe new begin time to set this clip to.

Definition at line 48 of file gui/model/clip.cpp.

References TimeSpan::accept(), and Clip::timeCoord_.

Referenced by Clip::isPlayingAt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDuration()

void setDuration ( Duration  newLength)

Sets the end time of this clip.

Parameters
[in]endThe new end time to set this clip to.

Definition at line 55 of file gui/model/clip.cpp.

References TimeSpan::accept(), and Clip::timeCoord_.

Referenced by Clip::isPlayingAt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setName()

void setName ( string const &  name)

Sets the name of this clip.

Parameters
[in]nameThe new name to set this clip to.

Definition at line 62 of file gui/model/clip.cpp.

References Clip::name_, and Clip::nameChangedSignal_.

Referenced by Clip::isPlayingAt().

+ Here is the caller graph for this function:

◆ signalNameChanged()

sigc::signal< void, std::string > signalNameChanged ( ) const

A signal which fires when the name changes.

Returns
Returns the signal. The signal sends the new name for the clip.

Definition at line 69 of file gui/model/clip.cpp.

References Clip::nameChangedSignal_.

Referenced by Clip::isPlayingAt().

+ Here is the caller graph for this function:

Member Data Documentation

◆ timeCoord_

TimeSpan timeCoord_
private

Definition at line 51 of file gui/model/clip.hpp.

Referenced by Clip::setBegin(), and Clip::setDuration().

◆ name_

string name_
private

Definition at line 52 of file gui/model/clip.hpp.

Referenced by Clip::getName(), and Clip::setName().

◆ nameChangedSignal_

sigc::signal<void, string> nameChangedSignal_
private

fires when the name changes.

Definition at line 55 of file gui/model/clip.hpp.

Referenced by Clip::setName(), and Clip::signalNameChanged().

+ Collaboration diagram for Clip:

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