3ds Max C++ API Reference
Output Class Reference

Class that stores output information for a fragment. More...

#include <ConnectionPoint.h>

+ Inheritance diagram for Output:

Public Member Functions

virtual FragmentGraphAPI ~Output ()
 Destructor. More...
 
FragmentGraphAPI size_t GetNumberOfVarTargets () const
 Gets the number of connected inputs. More...
 
FragmentGraphAPI InputGetVarTarget (size_t i) const
 Gets the i-th connected input. More...
 
const VariableGetVar () const
 Gets the variable that stores in the output. More...
 
FragmentGraphAPI bool SetVar (const Variable &v)
 Update the variable that stores in the output. More...
 
virtual FragmentGraphAPI bool Evaluate (void *evaluationContext)
 Evaluate the current output. More...
 
- Public Member Functions inherited from ConnectionPoint
virtual FragmentGraphAPI ~ConnectionPoint ()
 Destructor. More...
 
FragmentGetOwnerFragment () const
 Gets the pointer to owner view fragment. More...
 
const Class_IDGetTypeID () const
 Gets the data type of this connection point. More...
 

Protected Member Functions

FragmentGraphAPI Output (Fragment *pOwnerFragment, const Class_ID &typeID)
 
FragmentGraphAPI void AddVarTarget (Input *pVarTarget)
 
FragmentGraphAPI void RemoveVarTarget (Input *pVarTarget)
 
- Protected Member Functions inherited from ConnectionPoint
FragmentGraphAPI ConnectionPoint (Fragment *pOwnerFragment, const Class_ID &typeID)
 

Friends

class Input
 
class Fragment
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 
- Protected Attributes inherited from ConnectionPoint
FragmentmpOwnerFragment
 
Class_ID mVarTypeID
 

Detailed Description

Class that stores output information for a fragment.

An output can be connected to multiple inputs.

Constructor & Destructor Documentation

◆ Output()

FragmentGraphAPI Output ( Fragment pOwnerFragment,
const Class_ID typeID 
)
protected

◆ ~Output()

virtual FragmentGraphAPI ~Output ( )
virtual

Destructor.

Member Function Documentation

◆ AddVarTarget()

FragmentGraphAPI void AddVarTarget ( Input pVarTarget)
protected

◆ RemoveVarTarget()

FragmentGraphAPI void RemoveVarTarget ( Input pVarTarget)
protected

◆ GetNumberOfVarTargets()

FragmentGraphAPI size_t GetNumberOfVarTargets ( ) const

Gets the number of connected inputs.

Returns
the number of connected inputs.

◆ GetVarTarget()

FragmentGraphAPI Input* GetVarTarget ( size_t  i) const

Gets the i-th connected input.

Parameters
[in]ithe index of the input connected to this output class.
Returns
pointer to the i-th connected input.

◆ GetVar()

const Variable& GetVar ( ) const
inline

Gets the variable that stores in the output.

Returns
the variable that stores in the output.
204  {
205  return mVar;
206  }

◆ SetVar()

FragmentGraphAPI bool SetVar ( const Variable v)

Update the variable that stores in the output.

Returns
true if the type of the variable is compatible with the type of this output, false otherwise.

◆ Evaluate()

virtual FragmentGraphAPI bool Evaluate ( void evaluationContext)
virtual

Evaluate the current output.

If this output has an owner fragment, the owner fragment will also be evaluated.

Parameters
[in]evaluationContextcontext info for evaluation.
Returns
true if succeed, false otherwise.

Friends And Related Function Documentation

◆ Input

friend class Input
friend

◆ Fragment

friend class Fragment
friend