DD::Image::OutputContext Class Reference

Inherits DD::Image::ProxyContext.

List of all members.

Public Types

typedef ProxyContext::ProxySetting ProxySetting

Public Member Functions

double frame () const
void setFrame (double v)
void frame (double v)
int view () const
void setView (int v)
void view (int v)
void append (Hash &) const
bool operator== (const OutputContext &other) const
bool operator!= (const OutputContext &other) const
bool operator< (const OutputContext &other) const
bool operator> (const OutputContext &other) const
const std::string & viewname () const
const Formatto_proxy_rel (const Format &from, Format &to, const OutputContext &rel) const
bool sameProxy (const DD::Image::OutputContext &other) const

Static Public Member Functions

static const OutputContextdefaultContext ()
static const std::string & viewname (int v)
static const std::string & viewshort (int v)
static int viewcount ()
static bool MultiView ()
static int lookup_view (const std::string &viewname)
static void set_viewnames (const std::string &s)

Static Public Attributes

static const OutputContext default_
static void(* create_view )(const std::string &s)

Friends

std::ostream & operator<< (std::ostream &o, const OutputContext &)

Detailed Description

This is a block of data that is passed *up* the Op tree. The context modifies the values that are stored by knobs. An Op can further use information from it (such as the frame number) to modify it's behavior, by implementing Op::setOutputContext(). And an Op can modify the context that is used by each input, by implementing Op::inputContext().


Member Function Documentation

void OutputContext::append ( Hash hash) const

Add the contents of this to the hash, thus producing a different hash for any different setting of OutputContext.

int OutputContext::viewcount ( ) [static]

how many views exist. View 0 is always an extra view called 'default'. If there is one view, this is will be view 1.

Referenced by MultiView().

bool OutputContext::MultiView ( ) [static]

whether or not there are more than one actual view (not counting the hidden 'default' view)

References viewcount().