Blender V5.0
AttributeSet Class Reference

#include <attribute.h>

Public Member Functions

 AttributeSet (Geometry *geometry, AttributePrimitive prim)
 AttributeSet (AttributeSet &&)=default
 ~AttributeSet ()
Attributeadd (ustring name, const 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)
Attributecopy (const Attribute &attr)
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 175 of file scene/attribute.h.

Constructor & Destructor Documentation

◆ AttributeSet() [1/2]

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

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

References geometry, and prim.

Referenced by AttributeSet(), update(), and ~AttributeSet().

◆ AttributeSet() [2/2]

AttributeSet::AttributeSet ( AttributeSet && )
default

References AttributeSet().

◆ ~AttributeSet()

AttributeSet::~AttributeSet ( )
default

References AttributeSet(), element, and name.

Member Function Documentation

◆ add() [1/2]

◆ add() [2/2]

◆ clear()

void AttributeSet::clear ( bool preserve_voxel_data = false)

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

References ATTR_ELEMENT_VOXEL, ATTR_STD_GENERATED_TRANSFORM, and attributes.

◆ clear_modified()

void AttributeSet::clear_modified ( )

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

References attributes.

◆ copy()

Attribute & AttributeSet::copy ( const Attribute & attr)

◆ find() [1/3]

Attribute * AttributeSet::find ( AttributeRequest & req)

◆ find() [2/3]

Attribute * AttributeSet::find ( AttributeStandard std) const

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

References attributes.

◆ find() [3/3]

◆ find_matching()

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

◆ modified()

bool AttributeSet::modified ( AttrKernelDataType kernel_type) const

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

Referenced by update_attribute_realloc_flags().

◆ remove() [1/4]

void AttributeSet::remove ( Attribute * attribute)

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

References ATTR_STD_NONE, Attribute::name, remove(), and Attribute::std.

◆ remove() [2/4]

void AttributeSet::remove ( AttributeStandard std)

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

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

◆ remove() [3/4]

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

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

References attributes.

◆ remove() [4/4]

void AttributeSet::remove ( ustring name)

◆ resize()

void AttributeSet::resize ( bool reserve_only = false)

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

References attributes, geometry, and prim.

◆ update()

void AttributeSet::update ( AttributeSet && new_attributes)

Member Data Documentation

◆ attributes

◆ geometry

Geometry* AttributeSet::geometry

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

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

◆ prim

AttributePrimitive AttributeSet::prim

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

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


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