HDK
|
#include <BRAY_Interface.h>
Public Types | |
using | FieldList = UT_Array< std::pair< UT_StringHolder, GT_PrimitiveHandle >> |
Protected Attributes | |
UT_SharedPtr< BRAY_Object > | myObject |
Friends | |
class | ScenePtr |
Definition at line 642 of file BRAY_Interface.h.
using BRAY::ObjectPtr::FieldList = UT_Array<std::pair<UT_StringHolder, GT_PrimitiveHandle>> |
Update volume fields. This method will fail if the underlying primitive isn't a volume (see createVolume())
Definition at line 724 of file BRAY_Interface.h.
|
default |
BRAY::ObjectPtr::~ObjectPtr | ( | ) |
GT_PrimitiveHandle BRAY::ObjectPtr::geometry | ( | ) | const |
Get the underlying GT_PrimitiveHandle (if possible). This method may return a nullptr.
bool BRAY::ObjectPtr::isLeaf | ( | ) | const |
Query if object is a leaf node (ie not scenegraph or instance)
|
inline |
Test validity.
Definition at line 649 of file BRAY_Interface.h.
This will return the object's base properties, or the scene defaults if the object isn't defined yet.
This will return the object's base properties, or the scene defaults if the object isn't defined yet.
|
inline |
Access to the underlying object
Definition at line 657 of file BRAY_Interface.h.
|
inline |
Access to the underlying object
Definition at line 658 of file BRAY_Interface.h.
|
inline |
Access to the underlying object
Definition at line 656 of file BRAY_Interface.h.
BRAY_Procedural* BRAY::ObjectPtr::procedural | ( | ) |
Pointer to the contained procedural. This may return a nullptr.
bool BRAY::ObjectPtr::setGeometry | ( | const ScenePtr & | scene, |
const GT_PrimitiveHandle & | prim | ||
) |
Update the geometry for the object. The method will fail if you're trying to change the underlying primitive type.
bool BRAY::ObjectPtr::setGeometry | ( | const ScenePtr & | scene, |
const GT_PrimitiveHandle & | prim, | ||
const GT_DataArrayHandle & | holes | ||
) |
Set the list of "holes" for a polygon mesh (subdivision meshes have the list of holes specified in the subdivision tags).
void BRAY::ObjectPtr::setInstanceAttributes | ( | const ScenePtr & | scene, |
const GT_AttributeListHandle & | alist | ||
) |
Set attributes on instances.
Set instance IDs. If not set (or given an empty array), it is assumed that the ids are contiguous 0...N-1 where N is the number of xforms.
void BRAY::ObjectPtr::setInstanceProperties | ( | const ScenePtr & | scene, |
const GT_AttributeListHandle & | alist | ||
) |
Set property overrides for instances. The array must have an entry for every instance. It's possible to have default options. Each attribute's name should match an object property name. Warnings will be output if an attribute doesn't match.
Set the prototype for an instance object.
void BRAY::ObjectPtr::setInstanceTransforms | ( | ScenePtr & | scene, |
const UT_Array< SpacePtr > & | xforms | ||
) |
Set the transform on the instance.
bool BRAY::ObjectPtr::setMaterial | ( | ScenePtr & | scene, |
const MaterialPtr & | mat, | ||
const OptionSet & | opts, | ||
exint | nfacesets = 0 , |
||
const FacesetMaterial * | faceset_mat = nullptr |
||
) |
Bind a material to the object. The method will fail if the underlying object cannot set the material.
bool BRAY::ObjectPtr::setVolume | ( | const ScenePtr & | scene, |
const GT_AttributeListHandle & | clist, | ||
const FieldList & | fields | ||
) |
void BRAY::ObjectPtr::takeOwnership | ( | BRAY_Object * | obj | ) |
TODO: Deprecate this.
bool BRAY::ObjectPtr::validateInstance | ( | ) | const |
Check to make sure that number of xforms, attribute list, ids all match.
const GT_AttributeListHandle& BRAY::ObjectPtr::volumeDetailAttributes | ( | ) | const |
Return the detail attributes for a volume primitive.
Definition at line 737 of file BRAY_Interface.h.
|
protected |
Definition at line 736 of file BRAY_Interface.h.