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

#include <HUSD_ApexScene.h>

Classes

struct  GeoImportOptions
 Options for how to convert USD prims to geometry for APEX rig inputs. More...
 
struct  ShapeOutputInfo
 
struct  XformOutputInfo
 

Public Member Functions

 HUSD_ApexScene ()
 
 ~HUSD_ApexScene ()
 
bool evaluateOutputs (HUSD_AutoWriteLock &write_lock, const UT_SortedSet< fpreal > &samples, const UT_StringRef &xform_description, bool use_xform_common_api)
 

Static Public Member Functions

static bool loadScenes (const HUSD_AutoAnyLock &read_lock, const HUSD_FindPrims &find_prims, const GeoImportOptions &import_options, UT_Array< HUSD_ApexScene > &scenes)
 
static GU_DetailHandle loadSceneGeometry (const HUSD_AutoAnyLock &read_lock, const HUSD_Path &scene_path, const GeoImportOptions &import_options)
 

Detailed Description

Stores an APEX scene loaded from USD (a HoudiniApexScene prim), along with information about the USD primitives bound to APEX scene outputs. This can be safely cached between LOP cooks to avoid rebuilding APEX scenes unless the input stage has changed.

Definition at line 45 of file HUSD_ApexScene.h.

Constructor & Destructor Documentation

HUSD_ApexScene::HUSD_ApexScene ( )
HUSD_ApexScene::~HUSD_ApexScene ( )

Member Function Documentation

bool HUSD_ApexScene::evaluateOutputs ( HUSD_AutoWriteLock write_lock,
const UT_SortedSet< fpreal > &  samples,
const UT_StringRef xform_description,
bool  use_xform_common_api 
)

Evaluates the scene at the specified list of samples, and updates any prims bound to a scene output.

static GU_DetailHandle HUSD_ApexScene::loadSceneGeometry ( const HUSD_AutoAnyLock read_lock,
const HUSD_Path scene_path,
const GeoImportOptions import_options 
)
static

Assemble the input geometry for an APEX scene from the specified HoudiniApexScene prim.

static bool HUSD_ApexScene::loadScenes ( const HUSD_AutoAnyLock read_lock,
const HUSD_FindPrims find_prims,
const GeoImportOptions import_options,
UT_Array< HUSD_ApexScene > &  scenes 
)
static

Assembles APEX scenes from the specified list of HoudiniApexScene prims. This performs validation checks to ensure that e.g. a prim isn't driven by the output of more than one scene.


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