HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Promote Class Reference

Promote attributes from one owner to another. More...

#include <GU_Promote.h>

Public Types

enum  PROMOTE_METHOD {
  GU_PROMOTE_MAX, GU_PROMOTE_MIN, GU_PROMOTE_MEAN, GU_PROMOTE_MODE,
  GU_PROMOTE_MEDIAN, GU_PROMOTE_SUM, GU_PROMOTE_SUMSQUARE, GU_PROMOTE_RMS,
  GU_PROMOTE_FIRST, GU_PROMOTE_LAST
}
 

Static Public Member Functions

static GA_Attributepromote (GU_Detail &gdp, GA_Attribute *attrib, GA_AttributeOwner new_owner, bool destroy_existing=true, PROMOTE_METHOD method=GU_PROMOTE_MEAN, const char *new_name=NULL, const GA_Attribute *piece_attrib=nullptr)
 
static UT_UniquePtr< GA_Attributecreate (GA_AttributeOwner dst_owner, const GA_Attribute &src_attrib, PROMOTE_METHOD method=GU_PROMOTE_MEAN)
 

Detailed Description

Promote attributes from one owner to another.

Definition at line 23 of file GU_Promote.h.

Member Enumeration Documentation

Enumerator
GU_PROMOTE_MAX 
GU_PROMOTE_MIN 
GU_PROMOTE_MEAN 
GU_PROMOTE_MODE 
GU_PROMOTE_MEDIAN 
GU_PROMOTE_SUM 
GU_PROMOTE_SUMSQUARE 
GU_PROMOTE_RMS 
GU_PROMOTE_FIRST 
GU_PROMOTE_LAST 

Definition at line 26 of file GU_Promote.h.

Member Function Documentation

static UT_UniquePtr<GA_Attribute> GU_Promote::create ( GA_AttributeOwner  dst_owner,
const GA_Attribute src_attrib,
PROMOTE_METHOD  method = GU_PROMOTE_MEAN 
)
static

Promote the given (tuple) attribute to the new attribute class into a newly created detached attribute.

static GA_Attribute* GU_Promote::promote ( GU_Detail gdp,
GA_Attribute attrib,
GA_AttributeOwner  new_owner,
bool  destroy_existing = true,
PROMOTE_METHOD  method = GU_PROMOTE_MEAN,
const char *  new_name = NULL,
const GA_Attribute piece_attrib = nullptr 
)
static

Promote the given attribute to the new attribute class. The new attribute is returned.


The documentation for this class was generated from the following file: