Blender  V3.3
Public Member Functions | Public Attributes | List of all members
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 176 of file scene/attribute.h.

Constructor & Destructor Documentation

◆ AttributeSet() [1/2]

AttributeSet::AttributeSet ( Geometry geometry,
AttributePrimitive  prim 
)

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

◆ AttributeSet() [2/2]

AttributeSet::AttributeSet ( AttributeSet &&  )
default

◆ ~AttributeSet()

AttributeSet::~AttributeSet ( )

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

Member Function Documentation

◆ add() [1/2]

Attribute * AttributeSet::add ( AttributeStandard  std,
ustring  name = ustring() 
)

◆ add() [2/2]

Attribute * AttributeSet::add ( ustring  name,
TypeDesc  type,
AttributeElement  element 
)

◆ clear()

void AttributeSet::clear ( bool  preserve_voxel_data = false)

◆ clear_modified()

void AttributeSet::clear_modified ( )

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

References attributes, and Attribute::modified.

◆ find() [1/3]

Attribute * AttributeSet::find ( AttributeRequest req)

◆ find() [2/3]

Attribute * AttributeSet::find ( AttributeStandard  std) const

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

References attributes, NULL, and Attribute::std.

◆ find() [3/3]

Attribute * AttributeSet::find ( ustring  name) const

◆ find_matching()

Attribute * AttributeSet::find_matching ( const Attribute other)

◆ modified()

bool AttributeSet::modified ( AttrKernelDataType  kernel_type) const

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

Referenced by update_attribute_realloc_flags().

◆ remove() [1/4]

void AttributeSet::remove ( Attribute attribute)

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

References ATTR_STD_NONE, attribute, and remove().

◆ remove() [2/4]

void AttributeSet::remove ( AttributeStandard  std)

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

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

◆ remove() [3/4]

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

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

References attributes.

◆ remove() [4/4]

void AttributeSet::remove ( ustring  name)

◆ resize()

void AttributeSet::resize ( bool  reserve_only = false)

◆ update()

void AttributeSet::update ( AttributeSet &&  new_attributes)

Member Data Documentation

◆ attributes

list<Attribute> AttributeSet::attributes

◆ geometry

Geometry* AttributeSet::geometry

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

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

◆ prim

AttributePrimitive AttributeSet::prim

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

Referenced by add(), and resize().


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