#include <BRAY_Interface.h>
|
| ObjectPtr ()=default |
|
| ~ObjectPtr () |
|
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 (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 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 |
|
Create a volume given its detail attribute and the names and GT_PrimitiveHandles of the corresponding fields in the volume
Definition at line 609 of file BRAY_Interface.h.
BRAY::ObjectPtr::ObjectPtr |
( |
| ) |
|
|
default |
BRAY::ObjectPtr::~ObjectPtr |
( |
| ) |
|
Add an object to a scene.
For polygonal meshes, use this to create geometry to handle holes.
Create a procedural object. Ownership of the procedural is passed to the object.
static ObjectPtr BRAY::ObjectPtr::createScene |
( |
| ) |
|
|
static |
Create a nested scene graph.
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.
Set the prototype for an instance object.
Set the transform on the instance.
Bind a material to the object. The method will fail if the underlying object cannot set the material.
Update volume fields. This method will fail if the underlying primitive isn't a volume (see createVolume())
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: