20#include <Inventor/fields/SoFields.h>
21#include <Inventor/sensors/SoTimerSensor.h>
84 void setSlice(
int slice);
88 void setTime(
int time);
90 void setIsActive(
bool active);
93 static void timerSensorCB(
void *data,
SoSensor* a);
117 bool _nextFrameRequested;
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
void stop()
stop the cine mode
View2DCineParameters getParameters() const
the currently used parameters
const View2DCineParameters & setParameters(const View2DCineParameters ¶meters)
set the parameters to use; returns the parameters that are actually used
void start()
start the cine mode
void doAnimationFrame()
this method does one animation frame; to be called directly in unit test only
void requestNextFrame()
request the next frame, e.g. if the current frame has been rendered
View2DCine(SoSFInt32 *slice, SoSFInt32 *time, SoSFBool *isActive=nullptr)
Constructor and destructor.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
This class provides the cine mode for SoView2D and SoView2DCine.
bool resetOnStart
always reset to start slice/time and forward direction on start (start with current position and dire...
View2DCineMode mode
dimensions to loop through (Z, T, ZT, TZ)
float speed
speed of the cine mode (in seconds); the minimum cine speed is fixed to one repaint per image
int incrementT
the time increment when looping through time
int endZ
the end slice when looping through slices
int incrementZ
the slice increment when looping through slices
int endT
the end time when looping through time
int startT
the start time when looping through time
int startZ
the start slice when looping through slices
View2DCineDir direction
direction of cine mode (forward loop or ping-pong)
View2DCineRepeat repeat
flag to indicated if cine mode should automatically stop after the first cycle