Logo Search packages:      
Sourcecode: kdenlive version File versions

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

Transition Class Reference

Describes a transition with a name, parameters, keyframes, etc. More...

#include <transition.h>

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

List of all members.

Public Member Functions

int addKeyFrame (const GenTime &pos, const double value)
bool belongsToClip (const ClipItem *clip) const
Transitionclone ()
void closeAnimation ()
virtual GenTime cropDuration () const
virtual GenTime cropStart () const
int defaultZValue () const
int editedKeyFramePos () const
double editedKeyFrameValue () const
virtual GenTime endPos () const
bool forcedTrack () const
virtual double fps () const
bool hasClip (const ClipItem *clip) const
bool hasGeometry ()
bool hasKeyFrames () const
ItemInfo info () const
bool invertedTransition () const
bool isAutomatic () const
bool isItemLocked () const
bool isValid () const
double keyFrameFactor () const
int keyFrameNumber () const
 Returns the number of keyframes the selected effect has.
virtual GenTime maxDuration () const
OPERATIONTYPE operationMode (QPointF pos)
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
CustomTrackSceneprojectScene ()
const ClipItemreferencedClip () const
virtual void resizeEnd (int posx)
 Resizes the clip from the end.
virtual void resizeStart (int posx, bool hasSizeLimit=true)
 Resizes the clip from the start.
int selectedKeyFramePos () const
double selectedKeyFrameValue () const
void setAutomatic (bool automatic)
virtual void setCropStart (GenTime pos)
void setForcedTrack (bool force, int track)
void setItemLocked (bool locked)
virtual void setTrack (int track)
void setTransitionDirection (bool inv)
void setTransitionParameters (const QDomElement params)
void setTransitionTrack (int track)
virtual GenTime startPos () const
QDomElement toXML ()
 Returns an XML representation of this transition.
virtual int track () const
 Transition (const ItemInfo &info, int transitiontrack, double fps, QDomElement params=QDomElement(), bool automaticTransition=false)
int transitionEndTrack () const
 Returns the track number of the transition in the playlist.
QStringList transitionInfo () const
QString transitionTag () const
virtual int type () const
virtual void updateFps (double fps)
void updateItem ()
void updateKeyFramePos (const GenTime &pos, const double value)
 Move the selected keyframe (does not influence the effect, only the display in timeline).
bool updateKeyframes ()
 When a transition is resized, check if keyframes are out of the transition and fix if necessary.
void updateRectGeometry ()
void updateSelectedKeyFrame ()
void updateTransitionEndTrack (int newtrack)
 Links the transition to another track.

Static Public Member Functions

static int itemHeight ()
 Return the current item's height.
static int itemOffset ()
 Return the current item's vertical offset For example transitions are drawn at 1/3 of track height.

Protected Member Functions

void drawKeyFrames (QPainter *painter, bool limitedKeyFrames)
 Draw the keyframes of a clip.
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value)
int mouseOverKeyFrames (QPointF pos, double maxOffset)
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)

Protected Attributes

int m_editedKeyframe
double m_fps
ItemInfo m_info
double m_keyframeDefault
 Default reset value for keyframe.
double m_keyframeFactor
 Strech factor so that keyframes display on the full clip height.
double m_keyframeOffset
 Offset factor so that keyframes minimum value are displaed at the bottom of the clip.
QMap< int, int > m_keyframes
GenTime m_maxDuration
int m_selectedKeyframe
int m_visibleParam

Private Member Functions

TRANSITIONTYPE getTransitionForName (const QString &type)
 Returns the transition type for a given name.
QString getTransitionName (const TRANSITIONTYPE &type)
 Returns the display name for a transition type.

Private Attributes

bool m_automaticTransition
 True if the transition is attached to its clip.
bool m_forceTransitionTrack
QString m_name
QDomElement m_parameters
 Contains the transition parameters.
ClipItemm_referenceClip
 The clip to which the transition is attached.
ClipItemm_secondClip
 The second clip to which the transition is attached.
int m_transitionTrack

Detailed Description

Describes a transition with a name, parameters, keyframes, etc.

Author:
Jean-Baptiste Mardelle

Definition at line 39 of file transition.h.


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

Generated by  Doxygen 1.6.0   Back to index