DD::Image::Black Class Reference

Inherits DD::Image::Iop.

List of all members.

Public Member Functions

const char * Class () const
const char * node_help () const
 Black (Node *, const Format *=0, const Format *=0)
 Black (const Format *=0, const Format *=0)
void first_frame (int a)
int first_frame () const
void last_frame (int a)
int last_frame () const
void fragment_shader (const VertexContext &, Pixel &out)
bool shade_GL (ViewerContext *, GeoInfo &)

Detailed Description

This operator produces a completely empty and black image. The output bounding box is 1x1 and the output channels is Mask_None.

Nuke uses this for all disconnected inputs, setting the formats from those set on the Root group.


Constructor & Destructor Documentation

Black::Black ( Node *  node,
const Format format = 0,
const Format full_size_format = 0 
)

The constructor takes the format and full-size-format to return. If format is null then Format::None is used. If full_size_format is null then format is used.

References DD::Image::IopInfo::black_outside(), DD::Image::Info2D::full_size_format(), DD::Image::IopInfoOwner::info_, DD::Image::Op::inputs(), DD::Image::Format::is_none(), DD::Image::Format::None, DD::Image::Box::set(), DD::Image::Box::x(), and DD::Image::Box::y().

Black::Black ( const Format format = 0,
const Format full_size_format = 0 
)

The constructor takes the format and full-size-format to return. If format is null then Format::None is used. If full_size_format is null then format is used.

References DD::Image::IopInfo::black_outside(), DD::Image::Info2D::full_size_format(), DD::Image::IopInfoOwner::info_, DD::Image::Op::inputs(), DD::Image::Format::is_none(), DD::Image::Format::None, DD::Image::Box::set(), DD::Image::Box::x(), and DD::Image::Box::y().


Member Function Documentation

void Black::fragment_shader ( const VertexContext vtx,
Pixel out 
) [virtual]

When used to shade an object, this always renders opaque black.

Reimplemented from DD::Image::Iop.

bool Black::shade_GL ( ViewerContext ctx,
GeoInfo geo 
) [virtual]

OpenGL preview shading fails, an indication that the user interface color should be used to color the object instead.

Reimplemented from DD::Image::Iop.

References DD::Image::GeoInfo::draw_solid().