DD::Image::DeepFilterOp Class Reference

Inherits DD::Image::DeepOnlyOp.

Inherited by DD::Image::DeepPixelOp.

List of all members.

Public Member Functions

 DeepFilterOp (Node *node)
virtual bool test_input (int idx, Op *op) const
void _validate (bool for_real)
void getDeepRequests (DD::Image::Box box, const DD::Image::ChannelSet &channels, int count, std::vector< RequestData > &requests)
DeepOpinput0 ()

Detailed Description

Helper class for Deep operators. The DeepFilterOp is intended for use as a base class by Ops that have only one input, which is a DeepOp, and themselves output Deep Data only (e.g. DeepSelect),

_validate gets the deep info from the input, and getDeepRequests() forwards the request to the input (adding Mask_Z). The only remaining function for subclasses to implement is doDeepEngine().


Member Function Documentation

virtual bool DD::Image::DeepFilterOp::test_input ( int  idx,
Op op 
) const [inline, virtual]

Only allow DeepOps to be connected as inputs

Reimplemented from DD::Image::Op.

void DD::Image::DeepFilterOp::_validate ( bool  for_real) [inline, virtual]

Copy the input deepInfo as this Op's deepInfo, otherwise start a new (empty) one.

Implements DD::Image::DeepOp.

void DD::Image::DeepFilterOp::getDeepRequests ( DD::Image::Box  box,
const DD::Image::ChannelSet channels,
int  count,
std::vector< RequestData > &  requests 
) [inline, virtual]

Pass through the request, but additionally add on a request for the Z channel

Implements DD::Image::DeepOp.

DeepOp* DD::Image::DeepFilterOp::input0 ( ) [inline]

Get the first input, as a DeepOp, or NULL if it is not connected.

References DD::Image::Op::input().