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 
)

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


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.

References DD::Image::Pixel::channels, and DD::Image::VertexContext::w().

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().



©2009 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk