#include <AnimationSequencer.h>
Definition at line 19 of file AnimationSequencer.h.
◆ AnimationSequencer()
◆ ~AnimationSequencer()
AnimationSequencer::~AnimationSequencer |
( |
| ) |
|
◆ abortAnimation
void AnimationSequencer::abortAnimation |
( |
| ) |
|
|
privateslot |
◆ animationFinishedSuccessfully
void AnimationSequencer::animationFinishedSuccessfully |
( |
| ) |
|
|
signal |
◆ clipVolumePercentOfATLAS
void AnimationSequencer::clipVolumePercentOfATLAS |
( |
double |
| ) |
|
|
signal |
◆ nextAnimationFrame
void AnimationSequencer::nextAnimationFrame |
( |
| ) |
|
|
privateslot |
Definition at line 96 of file AnimationSequencer.cxx.
108 VP1Msg::messageDebug(
"AnimationSequencer::nextAnimationFrame WARNING: No scenegraph set. Ignoring.");
111 if ( ! ( rootnode->getTypeId().isDerivedFrom(SoGroup::getClassTypeId())) ) {
112 VP1Msg::messageDebug(
"AnimationSequencer::nextAnimationFrame WARNING: Root node does not derive from SoGroup. Ignoring.");
122 SoCamera * camera =
m_c->
viewer->getCamera();
124 VP1Msg::messageDebug(
"AnimationSequencer::nextAnimationFrame WARNING: Could not get camera. Ignoring.");
129 SoGroup *
root =
static_cast<SoGroup*
>(rootnode);
138 if (
f.time==0.0&&!
f.camState.isEmpty())
146 if (
f.camState.isEmpty()) {
149 bool notifyenabled =
root->enableNotify(
false);
151 camera->getTypeId().isDerivedFrom(SoPerspectiveCamera::getClassTypeId()));
152 camera->unrefNoDelete();
154 SbVec3f lookat=
f.dir, upvec =
f.upvec;
155 root->insertChild(regionsphere,0);
157 helper =
VP1CameraHelper::animatedZoomToSubTree(camera,
root,regionsphere,
f.time,
f.clipVolPercent,
m_c->
last_clipVolPercent,0.1,lookat,upvec,
f.variableSpeed,
f.forceCircular);
159 root->removeChild(regionsphere);
162 root->enableNotify(
true);
183 rootnode->unrefNoDelete();
◆ sequence() [1/2]
◆ sequence() [2/2]
◆ setMovie()
void AnimationSequencer::setMovie |
( |
bool |
b | ) |
|
◆ setMovieParameters()
void AnimationSequencer::setMovieParameters |
( |
const QString & |
outdir, |
|
|
const QString & |
frameFileNamePrefix, |
|
|
int |
fps, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
◆ startAnimating()
void AnimationSequencer::startAnimating |
( |
bool |
skipFirstFrame = false | ) |
|
◆ m_c
The documentation for this class was generated from the following files:
static VP1CameraHelper * animatedZoomToCameraState(SoCamera *camera, SoGroup *sceneroot, const QByteArray &camstate, double duration_in_secs=1.0, double clipVolPercent=100.0, double lastClipVolPercent=100.0, bool varySpeed=true, bool forceCircular=false)
static VP1CameraHelper * animatedZoomToSubTree(SoCamera *camera, SoGroup *sceneroot, SoNode *subtreeroot, double duration_in_secs=1.0, double clipVolPercent=100.0, double lastClipVolPercent=100.0, double slack=1.0, const SbVec3f &lookat=SbVec3f(999, 999, 999), const SbVec3f &upvec=SbVec3f(999, 999, 999), bool varySpeed=true, bool forceCircular=false)