TuttleOFX  1
tuttle::host::ComputeOptions Class Reference

#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)
ComputeOptionsoperator= (const ComputeOptions &other)
const std::list< TimeRange > & getTimeRanges () const
int getBegin () const
int getEnd () const
ThissetTimeRange (const int begin, const int end, const int step=1)
ThissetTimeRange (const TimeRange &timeRange)
ThisaddTimeRange (const int begin, const int end, const int step=1)
ThisaddTimeRange (const TimeRange &timeRange)
ThissetBegin (const int &beginTime)
ThissetEnd (const int &endTime)
ThissetRenderScale (const double x, const double y)
 To get a preview of the result, you could set a renderscale.
const OfxPointD & getRenderScale () const
ThissetContinueOnError (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
ThissetContinueOnMissingFile (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
ThissetReturnBuffers (const bool v=true)
 To get output buffer of all output nodes.
bool getReturnBuffers () const
ThissetVerboseLevel (const EVerboseLevel level)
 Set the verbose level of the process.
ThissetColorEnable (const bool enable=true)
 Set the output color enabled or not.
ThissetIsInteractive (const bool v=true)
 Inform plugins about the kind of process: batch or interactive.
bool getIsInteractive () const
ThissetForceIdentityNodesProcess (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 beginFrameHandle () const
void setupAtTimeHandle () const
void processAtTimeHandle () const
void endFrameHandle () 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

Detailed Description

Definition at line 66 of file ComputeOptions.hpp.


Member Typedef Documentation


Constructor & Destructor Documentation

tuttle::host::ComputeOptions::ComputeOptions ( ) [inline]

Definition at line 71 of file ComputeOptions.hpp.

References init().

Here is the call graph for this function:

tuttle::host::ComputeOptions::ComputeOptions ( const int  frame) [inline, explicit]

Definition at line 80 of file ComputeOptions.hpp.

References _timeRanges, and init().

Here is the call graph for this function:

tuttle::host::ComputeOptions::ComputeOptions ( const int  begin,
const int  end,
const int  step = 1 
) [inline]

Definition at line 89 of file ComputeOptions.hpp.

References _timeRanges, and init().

Here is the call graph for this function:

tuttle::host::ComputeOptions::ComputeOptions ( const ComputeOptions options) [inline]

Definition at line 98 of file ComputeOptions.hpp.


Member Function Documentation

void tuttle::host::ComputeOptions::abort ( ) [inline]

The application would like to abort the process (from another thread).

Definition at line 266 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 156 of file ComputeOptions.hpp.

Referenced by setTimeRange().

This& tuttle::host::ComputeOptions::addTimeRange ( const TimeRange timeRange) [inline]

Definition at line 161 of file ComputeOptions.hpp.

References _timeRanges.

void tuttle::host::ComputeOptions::beginFrameHandle ( ) const [inline]

Definition at line 291 of file ComputeOptions.hpp.

References _progressHandle, and isProgressHandleSet().

Referenced by tuttle::host::graph::ProcessGraph::process().

Here is the call graph for this function:

void tuttle::host::ComputeOptions::beginSequenceHandle ( ) const [inline]

Definition at line 286 of file ComputeOptions.hpp.

References _progressHandle, and isProgressHandleSet().

Referenced by tuttle::host::graph::ProcessGraph::beginSequence().

Here is the call graph for this function:

void tuttle::host::ComputeOptions::endFrameHandle ( ) const [inline]

Definition at line 306 of file ComputeOptions.hpp.

References _progressHandle, and isProgressHandleSet().

Referenced by tuttle::host::graph::ProcessGraph::process().

Here is the call graph for this function:

void tuttle::host::ComputeOptions::endSequenceHandle ( ) const [inline]

Definition at line 311 of file ComputeOptions.hpp.

References _progressHandle, and isProgressHandleSet().

Referenced by tuttle::host::graph::ProcessGraph::endSequence().

Here is the call graph for this function:

bool tuttle::host::ComputeOptions::getAbort ( ) const [inline]

Has someone asked to abort the process?

Definition at line 273 of file ComputeOptions.hpp.

References _abort.

Referenced by tuttle::host::graph::ProcessGraph::process().

int tuttle::host::ComputeOptions::getBegin ( ) const [inline]

Definition at line 141 of file ComputeOptions.hpp.

References _begin.

Referenced by tuttle::host::graph::ProcessGraph::computeTimeRange().

bool tuttle::host::ComputeOptions::getContinueOnError ( ) const [inline]

Definition at line 199 of file ComputeOptions.hpp.

References _continueOnError.

Referenced by tuttle::host::graph::ProcessGraph::process().

bool tuttle::host::ComputeOptions::getContinueOnMissingFile ( ) const [inline]

Definition at line 210 of file ComputeOptions.hpp.

References _continueOnMissingFile.

Referenced by tuttle::host::graph::ProcessGraph::process().

int tuttle::host::ComputeOptions::getEnd ( ) const [inline]

Definition at line 142 of file ComputeOptions.hpp.

References _end.

Referenced by tuttle::host::graph::ProcessGraph::computeTimeRange().

bool tuttle::host::ComputeOptions::getForceIdentityNodesProcess ( ) const [inline]
bool tuttle::host::ComputeOptions::getIsInteractive ( ) const [inline]

Definition at line 250 of file ComputeOptions.hpp.

References _isInteractive.

Referenced by tuttle::host::graph::ProcessGraph::ProcessGraph().

const OfxPointD& tuttle::host::ComputeOptions::getRenderScale ( ) const [inline]

Definition at line 188 of file ComputeOptions.hpp.

References _renderScale.

Referenced by tuttle::host::graph::ProcessGraph::ProcessGraph().

bool tuttle::host::ComputeOptions::getReturnBuffers ( ) const [inline]

Definition at line 220 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 139 of file ComputeOptions.hpp.

References _timeRanges.

Referenced by tuttle::host::graph::ProcessGraph::computeTimeRange().

void tuttle::host::ComputeOptions::init ( ) [inline, private]
bool tuttle::host::ComputeOptions::isProgressHandleSet ( ) const [inline]
ComputeOptions& tuttle::host::ComputeOptions::operator= ( const ComputeOptions other) [inline]
void tuttle::host::ComputeOptions::processAtTimeHandle ( ) const [inline]

Definition at line 301 of file ComputeOptions.hpp.

References _progressHandle, and isProgressHandleSet().

Referenced by tuttle::host::graph::ProcessGraph::processAtTime().

Here is the call graph for this function:

This& tuttle::host::ComputeOptions::setBegin ( const int &  beginTime) [inline]

Definition at line 167 of file ComputeOptions.hpp.

References _begin.

This& tuttle::host::ComputeOptions::setColorEnable ( const bool  enable = true) [inline]

Set the output color enabled or not.

Definition at line 234 of file ComputeOptions.hpp.

References tuttle::common::Color::get().

Referenced by init().

Here is the call graph for this function:

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 194 of file ComputeOptions.hpp.

References _continueOnError.

Referenced by init().

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 205 of file ComputeOptions.hpp.

References _continueOnMissingFile.

Referenced by init().

This& tuttle::host::ComputeOptions::setEnd ( const int &  endTime) [inline]

Definition at line 173 of file ComputeOptions.hpp.

References _end.

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 256 of file ComputeOptions.hpp.

References _forceIdentityNodesProcess.

Referenced by init().

This& tuttle::host::ComputeOptions::setIsInteractive ( const bool  v = true) [inline]

Inform plugins about the kind of process: batch or interactive.

Definition at line 245 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 278 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 182 of file ComputeOptions.hpp.

References _renderScale.

Referenced by init().

This& tuttle::host::ComputeOptions::setReturnBuffers ( const bool  v = true) [inline]

To get output buffer of all output nodes.

Definition at line 215 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 144 of file ComputeOptions.hpp.

References _timeRanges, and addTimeRange().

Referenced by BOOST_AUTO_TEST_CASE(), and tuttle::host::loadAndGenerateThumbnail().

Here is the call graph for this function:

This& tuttle::host::ComputeOptions::setTimeRange ( const TimeRange timeRange) [inline]

Definition at line 150 of file ComputeOptions.hpp.

References _timeRanges.

void tuttle::host::ComputeOptions::setupAtTimeHandle ( ) const [inline]

Definition at line 296 of file ComputeOptions.hpp.

References _progressHandle, and isProgressHandleSet().

Referenced by tuttle::host::graph::ProcessGraph::setupAtTime().

Here is the call graph for this function:

This& tuttle::host::ComputeOptions::setVerboseLevel ( const EVerboseLevel  level) [inline]

Set the verbose level of the process.

Definition at line 225 of file ComputeOptions.hpp.

References tuttle::common::Formatter::get().

Referenced by init(), and tuttle::host::loadAndGenerateThumbnail().

Here is the call graph for this function:


Field Documentation

boost::atomic_bool tuttle::host::ComputeOptions::_abort [private]

Definition at line 331 of file ComputeOptions.hpp.

Referenced by abort(), and getAbort().

Definition at line 322 of file ComputeOptions.hpp.

Referenced by getBegin(), operator=(), and setBegin().

Definition at line 323 of file ComputeOptions.hpp.

Referenced by getEnd(), operator=(), and setEnd().

Definition at line 320 of file ComputeOptions.hpp.

Referenced by getRenderScale(), operator=(), and setRenderScale().


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