TuttleOFX
1
|
#include <ComputeOptions.hpp>
Public Types | |
typedef ComputeOptions | This |
Public Member Functions | |
ComputeOptions () | |
ComputeOptions (const int frame) | |
ComputeOptions (const int begin, const int end, const int step=1) | |
ComputeOptions (const ComputeOptions &options) | |
ComputeOptions & | operator= (const ComputeOptions &other) |
const std::list< TimeRange > & | getTimeRanges () const |
int | getBegin () const |
int | getEnd () const |
This & | setTimeRange (const int begin, const int end, const int step=1) |
This & | setTimeRange (const TimeRange &timeRange) |
This & | addTimeRange (const int begin, const int end, const int step=1) |
This & | addTimeRange (const TimeRange &timeRange) |
This & | setBegin (const int &beginTime) |
This & | setEnd (const int &endTime) |
This & | setRenderScale (const double x, const double y) |
To get a preview of the result, you could set a renderscale. | |
const OfxPointD & | getRenderScale () const |
This & | setContinueOnError (const bool v=true) |
Continue as much as possible after an error. If an image file inside an image sequence failed to be loaded, we continue to process other images of the sequence. | |
bool | getContinueOnError () const |
This & | setContinueOnMissingFile (const bool v=true) |
Continue as much as possible after an error. If an image file inside an image sequence failed to be loaded, we continue to process other images of the sequence. | |
bool | getContinueOnMissingFile () const |
This & | setReturnBuffers (const bool v=true) |
To get output buffer of all output nodes. | |
bool | getReturnBuffers () const |
This & | setVerboseLevel (const EVerboseLevel level) |
Set the verbose level of the process. | |
This & | setColorEnable (const bool enable=true) |
Set the output color enabled or not. | |
This & | setIsInteractive (const bool v=true) |
Inform plugins about the kind of process: batch or interactive. | |
bool | getIsInteractive () const |
This & | setForceIdentityNodesProcess (const bool v=true) |
For debug puposes only, you could force to call the process on all identity nodes. This case should never happens to the plugin, so it may fail to do it. | |
bool | getForceIdentityNodesProcess () const |
void | abort () |
The application would like to abort the process (from another thread). | |
bool | getAbort () const |
Has someone asked to abort the process? | |
void | setProgressHandle (boost::shared_ptr< IProgressHandle > progressHandle) |
A handle to follow the progress (start, end...) of the compute. | |
bool | isProgressHandleSet () const |
void | beginSequenceHandle () const |
void | setupAtTimeHandle () const |
void | processAtTimeHandle () const |
void | endSequenceHandle () const |
Private Member Functions | |
void | init () |
Private Attributes | |
std::list< TimeRange > | _timeRanges |
OfxPointD | _renderScale |
int | _begin |
int | _end |
bool | _continueOnError |
bool | _continueOnMissingFile |
bool | _forceIdentityNodesProcess |
bool | _returnBuffers |
bool | _isInteractive |
boost::atomic_bool | _abort |
boost::shared_ptr < IProgressHandle > | _progressHandle |
Definition at line 63 of file ComputeOptions.hpp.
Definition at line 66 of file ComputeOptions.hpp.
tuttle::host::ComputeOptions::ComputeOptions | ( | ) | [inline] |
Definition at line 68 of file ComputeOptions.hpp.
References init().
tuttle::host::ComputeOptions::ComputeOptions | ( | const int | frame | ) | [inline, explicit] |
Definition at line 77 of file ComputeOptions.hpp.
References _timeRanges, and init().
tuttle::host::ComputeOptions::ComputeOptions | ( | const int | begin, |
const int | end, | ||
const int | step = 1 |
||
) | [inline] |
Definition at line 86 of file ComputeOptions.hpp.
References _timeRanges, and init().
tuttle::host::ComputeOptions::ComputeOptions | ( | const ComputeOptions & | options | ) | [inline] |
Definition at line 95 of file ComputeOptions.hpp.
void tuttle::host::ComputeOptions::abort | ( | ) | [inline] |
The application would like to abort the process (from another thread).
Definition at line 261 of file ComputeOptions.hpp.
References _abort.
Referenced by tuttle::host::ThreadEnv::abort().
This& tuttle::host::ComputeOptions::addTimeRange | ( | const int | begin, |
const int | end, | ||
const int | step = 1 |
||
) | [inline] |
Definition at line 151 of file ComputeOptions.hpp.
Referenced by main(), and setTimeRange().
Definition at line 156 of file ComputeOptions.hpp.
References _timeRanges.
void tuttle::host::ComputeOptions::beginSequenceHandle | ( | ) | const [inline] |
Definition at line 284 of file ComputeOptions.hpp.
References _progressHandle, and isProgressHandleSet().
Referenced by tuttle::host::graph::ProcessGraph::beginSequence().
void tuttle::host::ComputeOptions::endSequenceHandle | ( | ) | const [inline] |
Definition at line 299 of file ComputeOptions.hpp.
References _progressHandle, and isProgressHandleSet().
Referenced by tuttle::host::graph::ProcessGraph::endSequence().
bool tuttle::host::ComputeOptions::getAbort | ( | ) | const [inline] |
Has someone asked to abort the process?
Definition at line 268 of file ComputeOptions.hpp.
References _abort.
Referenced by tuttle::host::graph::ProcessGraph::process().
int tuttle::host::ComputeOptions::getBegin | ( | ) | const [inline] |
Definition at line 136 of file ComputeOptions.hpp.
References _begin.
Referenced by tuttle::host::graph::ProcessGraph::computeTimeRange().
bool tuttle::host::ComputeOptions::getContinueOnError | ( | ) | const [inline] |
Definition at line 194 of file ComputeOptions.hpp.
References _continueOnError.
Referenced by tuttle::host::graph::ProcessGraph::process().
bool tuttle::host::ComputeOptions::getContinueOnMissingFile | ( | ) | const [inline] |
Definition at line 205 of file ComputeOptions.hpp.
References _continueOnMissingFile.
Referenced by tuttle::host::graph::ProcessGraph::process().
int tuttle::host::ComputeOptions::getEnd | ( | ) | const [inline] |
Definition at line 137 of file ComputeOptions.hpp.
References _end.
Referenced by tuttle::host::graph::ProcessGraph::computeTimeRange().
bool tuttle::host::ComputeOptions::getForceIdentityNodesProcess | ( | ) | const [inline] |
Definition at line 256 of file ComputeOptions.hpp.
References _forceIdentityNodesProcess.
Referenced by tuttle::host::graph::ProcessGraph::setupAtTime().
bool tuttle::host::ComputeOptions::getIsInteractive | ( | ) | const [inline] |
Definition at line 245 of file ComputeOptions.hpp.
References _isInteractive.
Referenced by tuttle::host::graph::ProcessGraph::ProcessGraph().
const OfxPointD& tuttle::host::ComputeOptions::getRenderScale | ( | ) | const [inline] |
Definition at line 183 of file ComputeOptions.hpp.
References _renderScale.
Referenced by tuttle::host::graph::ProcessGraph::ProcessGraph().
bool tuttle::host::ComputeOptions::getReturnBuffers | ( | ) | const [inline] |
Definition at line 215 of file ComputeOptions.hpp.
References _returnBuffers.
Referenced by tuttle::host::graph::ProcessGraph::processAtTime().
const std::list<TimeRange>& tuttle::host::ComputeOptions::getTimeRanges | ( | ) | const [inline] |
Definition at line 134 of file ComputeOptions.hpp.
References _timeRanges.
Referenced by tuttle::host::graph::ProcessGraph::computeTimeRange().
void tuttle::host::ComputeOptions::init | ( | ) | [inline, private] |
Definition at line 121 of file ComputeOptions.hpp.
References tuttle::host::eVerboseLevelWarning, setColorEnable(), setContinueOnError(), setContinueOnMissingFile(), setForceIdentityNodesProcess(), setIsInteractive(), setRenderScale(), setReturnBuffers(), and setVerboseLevel().
Referenced by ComputeOptions().
bool tuttle::host::ComputeOptions::isProgressHandleSet | ( | ) | const [inline] |
Definition at line 277 of file ComputeOptions.hpp.
References _progressHandle.
Referenced by beginSequenceHandle(), endSequenceHandle(), processAtTimeHandle(), and setupAtTimeHandle().
ComputeOptions& tuttle::host::ComputeOptions::operator= | ( | const ComputeOptions & | other | ) | [inline] |
Definition at line 103 of file ComputeOptions.hpp.
References _continueOnError, _continueOnMissingFile, _forceIdentityNodesProcess, _isInteractive, _renderScale, _returnBuffers, and _timeRanges.
void tuttle::host::ComputeOptions::processAtTimeHandle | ( | ) | const [inline] |
Definition at line 294 of file ComputeOptions.hpp.
References _progressHandle, and isProgressHandleSet().
Referenced by tuttle::host::graph::ProcessGraph::processAtTime().
This& tuttle::host::ComputeOptions::setBegin | ( | const int & | beginTime | ) | [inline] |
This& tuttle::host::ComputeOptions::setColorEnable | ( | const bool | enable = true | ) | [inline] |
Set the output color enabled or not.
Definition at line 229 of file ComputeOptions.hpp.
References tuttle::common::Color::get().
Referenced by init().
This& tuttle::host::ComputeOptions::setContinueOnError | ( | const bool | v = true | ) | [inline] |
Continue as much as possible after an error. If an image file inside an image sequence failed to be loaded, we continue to process other images of the sequence.
Definition at line 189 of file ComputeOptions.hpp.
References _continueOnError.
This& tuttle::host::ComputeOptions::setContinueOnMissingFile | ( | const bool | v = true | ) | [inline] |
Continue as much as possible after an error. If an image file inside an image sequence failed to be loaded, we continue to process other images of the sequence.
Definition at line 200 of file ComputeOptions.hpp.
References _continueOnMissingFile.
This& tuttle::host::ComputeOptions::setEnd | ( | const int & | endTime | ) | [inline] |
This& tuttle::host::ComputeOptions::setForceIdentityNodesProcess | ( | const bool | v = true | ) | [inline] |
For debug puposes only, you could force to call the process on all identity nodes. This case should never happens to the plugin, so it may fail to do it.
Definition at line 251 of file ComputeOptions.hpp.
References _forceIdentityNodesProcess.
This& tuttle::host::ComputeOptions::setIsInteractive | ( | const bool | v = true | ) | [inline] |
Inform plugins about the kind of process: batch or interactive.
Definition at line 240 of file ComputeOptions.hpp.
References _isInteractive.
Referenced by init().
void tuttle::host::ComputeOptions::setProgressHandle | ( | boost::shared_ptr< IProgressHandle > | progressHandle | ) | [inline] |
A handle to follow the progress (start, end...) of the compute.
Definition at line 273 of file ComputeOptions.hpp.
References _progressHandle.
This& tuttle::host::ComputeOptions::setRenderScale | ( | const double | x, |
const double | y | ||
) | [inline] |
To get a preview of the result, you could set a renderscale.
Definition at line 177 of file ComputeOptions.hpp.
References _renderScale, OfxPointD::x, and OfxPointD::y.
This& tuttle::host::ComputeOptions::setReturnBuffers | ( | const bool | v = true | ) | [inline] |
To get output buffer of all output nodes.
Definition at line 210 of file ComputeOptions.hpp.
References _returnBuffers.
Referenced by init(), and tuttle::host::ThreadEnv::ThreadEnv().
This& tuttle::host::ComputeOptions::setTimeRange | ( | const int | begin, |
const int | end, | ||
const int | step = 1 |
||
) | [inline] |
Definition at line 139 of file ComputeOptions.hpp.
References _timeRanges, and addTimeRange().
Referenced by BOOST_AUTO_TEST_CASE().
Definition at line 145 of file ComputeOptions.hpp.
References _timeRanges.
void tuttle::host::ComputeOptions::setupAtTimeHandle | ( | ) | const [inline] |
Definition at line 289 of file ComputeOptions.hpp.
References _progressHandle, and isProgressHandleSet().
Referenced by tuttle::host::graph::ProcessGraph::setupAtTime().
This& tuttle::host::ComputeOptions::setVerboseLevel | ( | const EVerboseLevel | level | ) | [inline] |
Set the verbose level of the process.
Definition at line 220 of file ComputeOptions.hpp.
References tuttle::common::formatters::Formatter::get().
Referenced by init().
boost::atomic_bool tuttle::host::ComputeOptions::_abort [private] |
Definition at line 319 of file ComputeOptions.hpp.
Referenced by abort(), and getAbort().
int tuttle::host::ComputeOptions::_begin [private] |
Definition at line 310 of file ComputeOptions.hpp.
Referenced by getBegin(), and setBegin().
bool tuttle::host::ComputeOptions::_continueOnError [private] |
Definition at line 313 of file ComputeOptions.hpp.
Referenced by getContinueOnError(), operator=(), and setContinueOnError().
bool tuttle::host::ComputeOptions::_continueOnMissingFile [private] |
Definition at line 314 of file ComputeOptions.hpp.
Referenced by getContinueOnMissingFile(), operator=(), and setContinueOnMissingFile().
int tuttle::host::ComputeOptions::_end [private] |
Definition at line 311 of file ComputeOptions.hpp.
bool tuttle::host::ComputeOptions::_forceIdentityNodesProcess [private] |
Definition at line 315 of file ComputeOptions.hpp.
Referenced by getForceIdentityNodesProcess(), operator=(), and setForceIdentityNodesProcess().
bool tuttle::host::ComputeOptions::_isInteractive [private] |
Definition at line 317 of file ComputeOptions.hpp.
Referenced by getIsInteractive(), operator=(), and setIsInteractive().
boost::shared_ptr<IProgressHandle> tuttle::host::ComputeOptions::_progressHandle [private] |
Definition at line 321 of file ComputeOptions.hpp.
Referenced by beginSequenceHandle(), endSequenceHandle(), isProgressHandleSet(), processAtTimeHandle(), setProgressHandle(), and setupAtTimeHandle().
Definition at line 308 of file ComputeOptions.hpp.
Referenced by getRenderScale(), operator=(), and setRenderScale().
bool tuttle::host::ComputeOptions::_returnBuffers [private] |
Definition at line 316 of file ComputeOptions.hpp.
Referenced by getReturnBuffers(), operator=(), and setReturnBuffers().
std::list<TimeRange> tuttle::host::ComputeOptions::_timeRanges [private] |
Definition at line 306 of file ComputeOptions.hpp.
Referenced by addTimeRange(), ComputeOptions(), getTimeRanges(), operator=(), and setTimeRange().