#include <BRAY_Interface.h>
|
| ObjectPtr () |
|
| ~ObjectPtr () override |
|
bool | isValid () const |
| Test validity. More...
|
|
bool | isLeaf () const |
| Query if object is a leaf node (ie not scenegraph or instance) More...
|
|
bool | setMaterial (ScenePtr &scene, const MaterialPtr &mat, const OptionSet &opts, exint nfacesets=0, const FacesetMaterial *faceset_mat=nullptr) |
|
void | setInstancePrototype (const ObjectPtr &proto) |
| Set the prototype for an instance object. More...
|
|
void | setInstanceTransforms (ScenePtr &scene, const UT_Array< SpacePtr > &xforms) |
| Set the transform on the instance. More...
|
|
void | setInstanceAttributes (const ScenePtr &scene, const GT_AttributeListHandle &alist) |
| Set attributes on instances. More...
|
|
void | setInstanceProperties (const ScenePtr &scene, const GT_AttributeListHandle &alist) |
|
void | setInstanceIds (UT_Array< exint > ids) |
|
void | addInstanceToScene (ObjectPtr &obj) |
| Add an object to a scene. More...
|
|
bool | validateInstance () const |
| Check to make sure that number of xforms, attribute list, ids all match. More...
|
|
GT_PrimitiveHandle | geometry () const |
|
BRAY_Procedural * | procedural () |
| Pointer to the contained procedural. This may return a nullptr. More...
|
|
bool | setGeometry (const ScenePtr &scene, const GT_PrimitiveHandle &prim) |
|
bool | setGeometry (const ScenePtr &scene, const GT_PrimitiveHandle &prim, const GT_DataArrayHandle &holes) |
|
bool | setVolume (const ScenePtr &scene, const GT_AttributeListHandle &clist, const FieldList &fields, const UT_BoundingBox &extent) |
|
const GT_AttributeListHandle & | volumeDetailAttributes () const |
| Return the detail attributes for a volume primitive. More...
|
|
void | takeOwnership (BRAY_Object *obj) |
| TODO: Deprecate this. More...
|
|
|
SYS_SAFE_BOOL | operator bool () const |
|
const BRAY_Object * | objectPtr () const |
|
BRAY_Object * | objectPtr () |
|
|
OptionSet | objectProperties (ScenePtr &scene) |
|
const OptionSet | objectProperties (const ScenePtr &scene) const |
|
| InstancablePtr (InstancableType type) |
|
virtual | ~InstancablePtr ()=0 |
|
InstancableType | instancableType () const |
|
Update volume fields. This method will fail if the underlying primitive isn't a volume (see createVolume()) Extents are unused for ordinary voxel-based volumes since the bounds are computed from field data and velocity blur.
Definition at line 853 of file BRAY_Interface.h.
BRAY::ObjectPtr::ObjectPtr |
( |
| ) |
|
|
inline |
BRAY::ObjectPtr::~ObjectPtr |
( |
| ) |
|
|
override |
Add an object to a scene.
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)
bool BRAY::ObjectPtr::isValid |
( |
| ) |
const |
|
inline |
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.
const BRAY_Object* BRAY::ObjectPtr::objectPtr |
( |
| ) |
const |
|
inline |
BRAY_Object* BRAY::ObjectPtr::objectPtr |
( |
| ) |
|
|
inline |
Pointer to the contained procedural. This may return a nullptr.
Update the geometry for the object. The method will fail if you're trying to change the underlying primitive type.
Set the list of "holes" for a polygon mesh (subdivision meshes have the list of holes specified in the subdivision tags).
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.
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.
void BRAY::ObjectPtr::setInstancePrototype |
( |
const ObjectPtr & |
proto | ) |
|
Set the prototype for an instance object.
Set the transform on the instance.
void BRAY::ObjectPtr::takeOwnership |
( |
BRAY_Object * |
obj | ) |
|
bool BRAY::ObjectPtr::validateInstance |
( |
| ) |
const |
Check to make sure that number of xforms, attribute list, ids all match.
Return the detail attributes for a volume primitive.
The documentation for this class was generated from the following file: