MDGContext Class Reference

+ この参照ページは、次の概要トピックと関連付けられています。

#include <MDGContext.h>

Class Description

Public Member Functions

 MDGContext ()
 Constructor. More...
 
 MDGContext (const MTime &when)
 Constructor. More...
 
 MDGContext (const MDGContext &in)
 Copy constructor. More...
 
 ~MDGContext ()
 Destructor.
 
bool isNormal (MStatus *ReturnStatus=NULL) const
 Determines if this context is that of "normal" evaluation. More...
 
MStatus getTime (MTime &) const
 Return the single time for which this context is valid. More...
 
MDGContextoperator= (const MDGContext &other)
 Assignment operator. More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 

Friends

class MPlug
 
class MDataBlock
 

Constructor & Destructor Documentation

Constructor.

Creates a context to define the way in which a dependency node is evaluated. In this case the new context will be for a normal evaluation.

MDGContext ( const MTime atTime)

Constructor.

Creates a context to define the way in which a dependency node is evaluated. In this case the new context will be for an evaluation at a specific time.

Parameters
[in]atTimeThe time in which the evaluation will take place
MDGContext ( const MDGContext other)

Copy constructor.

Duplicates the given DG context.

Parameters
[in]otherDG context to be copied.

Member Function Documentation

bool isNormal ( MStatus ReturnStatus = NULL) const

Determines if this context is that of "normal" evaluation.

Parameters
[out]ReturnStatusStatus code
Returns
  • true this context is normal
  • false this context is not normal
Status Codes:
+ Examples:
MStatus getTime ( MTime timeVal) const

Return the single time for which this context is valid.

The context must be a timed context, i.e. not a normal one.

Parameters
[out]timeValStorage for the time
Returns
Status Code
Status Codes:
MDGContext & operator= ( const MDGContext other)

Assignment operator.

Copies the RHS into this context.

Parameters
[in]otherDG context to be copied.
const char * className ( )
static

Returns the name of this class.

Returns
Name of this class.

The documentation for this class was generated from the following files:
  • MDGContext.h
  • MDGContext.cpp