Blender V4.3
AttributeSet Class Reference

#include <attribute.h>

Public Member Functions

 AttributeSet (Geometry *geometry, AttributePrimitive prim)
 AttributeSet (AttributeSet &&)=default
 ~AttributeSet ()
Attributeadd (ustring name, TypeDesc type, AttributeElement element)
Attributefind (ustring name) const
void remove (ustring name)
Attributeadd (AttributeStandard std, ustring name=ustring())
Attributefind (AttributeStandard std) const
void remove (AttributeStandard std)
Attributefind (AttributeRequest &req)
Attributefind_matching (const Attribute &other)
void remove (Attribute *attribute)
void remove (list< Attribute >::iterator it)
void resize (bool reserve_only=false)
void clear (bool preserve_voxel_data=false)
void update (AttributeSet &&new_attributes)
bool modified (AttrKernelDataType kernel_type) const
void clear_modified ()

Public Attributes

Geometrygeometry
AttributePrimitive prim
list< Attributeattributes

Detailed Description

Definition at line 177 of file scene/attribute.h.

Constructor & Destructor Documentation

◆ AttributeSet() [1/2]

AttributeSet::AttributeSet ( Geometry * geometry,
AttributePrimitive prim )

Definition at line 471 of file scene/attribute.cpp.

References geometry, and prim.

Referenced by AttributeSet(), and update().

◆ AttributeSet() [2/2]

AttributeSet::AttributeSet ( AttributeSet && )
default

References attribute, AttributeSet(), and element.

◆ ~AttributeSet()

AttributeSet::~AttributeSet ( )

Definition at line 476 of file scene/attribute.cpp.

Member Function Documentation

◆ add() [1/2]

◆ add() [2/2]

◆ clear()

void AttributeSet::clear ( bool preserve_voxel_data = false)

Definition at line 758 of file scene/attribute.cpp.

References ATTR_ELEMENT_VOXEL, ATTR_STD_GENERATED_TRANSFORM, and attributes.

◆ clear_modified()

void AttributeSet::clear_modified ( )

Definition at line 801 of file scene/attribute.cpp.

References attributes, and Attribute::modified.

Referenced by GeometryManager::device_update().

◆ find() [1/3]

Attribute * AttributeSet::find ( AttributeRequest & req)

◆ find() [2/3]

Attribute * AttributeSet::find ( AttributeStandard std) const

Definition at line 679 of file scene/attribute.cpp.

References attributes, NULL, and Attribute::std.

◆ find() [3/3]

◆ find_matching()

Attribute * AttributeSet::find_matching ( const Attribute & other)

◆ modified()

bool AttributeSet::modified ( AttrKernelDataType kernel_type) const

Definition at line 824 of file scene/attribute.cpp.

Referenced by update_attribute_realloc_flags().

◆ remove() [1/4]

void AttributeSet::remove ( Attribute * attribute)

Definition at line 735 of file scene/attribute.cpp.

References ATTR_STD_NONE, attribute, and remove().

◆ remove() [2/4]

void AttributeSet::remove ( AttributeStandard std)

Definition at line 709 of file scene/attribute.cpp.

References attributes, find(), and remove().

◆ remove() [3/4]

void AttributeSet::remove ( list< Attribute >::iterator it)

Definition at line 745 of file scene/attribute.cpp.

References attributes.

◆ remove() [4/4]

◆ resize()

void AttributeSet::resize ( bool reserve_only = false)

Definition at line 751 of file scene/attribute.cpp.

References attributes, geometry, prim, and Attribute::resize().

◆ update()

void AttributeSet::update ( AttributeSet && new_attributes)

Member Data Documentation

◆ attributes

◆ geometry

Geometry* AttributeSet::geometry

Definition at line 181 of file scene/attribute.h.

Referenced by add(), add(), AttributeSet(), resize(), and update().

◆ prim

AttributePrimitive AttributeSet::prim

Definition at line 182 of file scene/attribute.h.

Referenced by add(), AttributeSet(), and resize().


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