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 476 of file scene/attribute.cpp.

◆ AttributeSet() [2/2]

AttributeSet::AttributeSet ( AttributeSet && )
default

◆ ~AttributeSet()

AttributeSet::~AttributeSet ( )

Definition at line 481 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 763 of file scene/attribute.cpp.

References ATTR_ELEMENT_VOXEL, and ATTR_STD_GENERATED_TRANSFORM.

Referenced by Mesh::clear().

◆ clear_modified()

void AttributeSet::clear_modified ( )

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

References Attribute::modified.

◆ find() [1/3]

Attribute * AttributeSet::find ( AttributeRequest & req)

◆ find() [2/3]

Attribute * AttributeSet::find ( AttributeStandard std) const

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

References NULL, and Attribute::std.

◆ find() [3/3]

◆ find_matching()

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

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

References attributes.

◆ modified()

bool AttributeSet::modified ( AttrKernelDataType kernel_type) const

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

◆ remove() [1/4]

void AttributeSet::remove ( Attribute * attribute)

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

References ATTR_STD_NONE, and remove().

◆ remove() [2/4]

void AttributeSet::remove ( AttributeStandard std)

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

References find(), and remove().

◆ remove() [3/4]

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

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

◆ remove() [4/4]

void AttributeSet::remove ( ustring name)

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

References find(), and remove().

Referenced by add(), export_pointcloud_motion(), remove(), remove(), remove(), and update().

◆ resize()

void AttributeSet::resize ( bool reserve_only = false)

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

References prim, and Attribute::resize().

Referenced by Mesh::reserve_subd_faces(), and Mesh::resize_subd_faces().

◆ update()

void AttributeSet::update ( AttributeSet && new_attributes)

Member Data Documentation

◆ attributes

◆ geometry

Geometry* AttributeSet::geometry

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

◆ prim

AttributePrimitive AttributeSet::prim

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

Referenced by add(), and resize().


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