AnimationFrameSubsetWidget Class Reference

A widget used to set a frame subset. More...

#include <AnimationFrameSubsetWidget.h>

List of all members.

Public Member Functions

 AnimationFrameSubsetWidget (QWidget *pParent)
virtual ~AnimationFrameSubsetWidget ()
void setFrames (AnimationController *pController)
void setFrames (Animation *pAnimation)
void setFrames (const std::vector< AnimationFrame > &frames, FrameType type)
double getStartFrame () const
void setStartFrame (double start)
double getStopFrame () const
void setStopFrame (double stop)
FrameType getFrameType () const


Detailed Description

A widget used to set a frame subset.

The frame subset widget will allow users to set a subset between two frames in an animation. This widget will support both frame-based and time-based animations. The widget will be made up of two controls, each with its own slider and custom spin box. One control will represent the start frame while the other will handle the stop frame.

Definition at line 32 of file AnimationFrameSubsetWidget.h.


Constructor & Destructor Documentation

AnimationFrameSubsetWidget::AnimationFrameSubsetWidget ( QWidget *  pParent  ) 

Creates a frame subset widget.

Parameters:
pParent The parent widget.

virtual AnimationFrameSubsetWidget::~AnimationFrameSubsetWidget (  )  [virtual]

Destroys the frame subset widget and all child frame subset items.


Member Function Documentation

void AnimationFrameSubsetWidget::setFrames ( AnimationController pController  ) 

This method will set up the sliders and the spin boxes using the data in the animation controller that is given.

Parameters:
pController The animation controller containing the animation frames.

void AnimationFrameSubsetWidget::setFrames ( Animation pAnimation  ) 

This method will set up the sliders and the spin boxes using the data in the animation that is given.

Parameters:
pAnimation The animation used with the widget.

void AnimationFrameSubsetWidget::setFrames ( const std::vector< AnimationFrame > &  frames,
FrameType  type 
)

This method will set up the sliders and the spin boxes using the vector of animation frames that is given.

Parameters:
frames The vector containing the animation frames.
type The animation type.

double AnimationFrameSubsetWidget::getStartFrame (  )  const

Returns the start frame control value.

Returns:
The start frame value for an animation.

void AnimationFrameSubsetWidget::setStartFrame ( double  start  ) 

Sets the value for the start frame control.

Parameters:
start The start frame in an animation.

double AnimationFrameSubsetWidget::getStopFrame (  )  const

Returns the stop frame control value.

Returns:
the stop frame value for an animation.

void AnimationFrameSubsetWidget::setStopFrame ( double  stop  ) 

Sets the value for the stop frame control.

Parameters:
stop The stop frame in an animation.

FrameType AnimationFrameSubsetWidget::getFrameType (  )  const

Returns the type of animation.

Returns:
The animation type.


Software Development Kit - Opticks 4.9.0 Build 16218