GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco::PointAttribute Class Reference

#include <point_attribute.h>

Inheritance diagram for draco::PointAttribute:
Collaboration diagram for draco::PointAttribute:

Public Member Functions

 PointAttribute ()
 PointAttribute (const GeometryAttribute &att)
 PointAttribute (PointAttribute &&attribute)=default
PointAttribute & operator= (PointAttribute &&attribute)=default
void Init (Type attribute_type, int8_t num_components, DataTypeDataType data_type, bool normalized, size_t num_attribute_values)
void CopyFrom (const PointAttribute &src_att)
bool Reset (size_t num_attribute_values)
size_t size () const
AttributeValueIndex mapped_index (PointIndex point_index) const
DataBuffer * buffer () const
bool is_mapping_identity () const
size_t indices_map_size () const
const uint8_t * GetAddressOfMappedIndex (PointIndex point_index) const
void Resize (size_t new_num_unique_entries)
void SetIdentityMapping ()
void SetExplicitMapping (size_t num_points)
void SetPointMapEntry (PointIndex point_index, AttributeValueIndex entry_index)
void GetMappedValue (PointIndex point_index, void *out_data) const
void SetAttributeTransformData (std::unique_ptr< AttributeTransformData > transform_data)
const AttributeTransformData * GetAttributeTransformData () const
Public Member Functions inherited from draco::GeometryAttribute
 GeometryAttribute ()
void Init (Type attribute_type, DataBuffer *buffer, uint8_t num_components, DataTypeDataType data_type, bool normalized, int64_t byte_stride, int64_t byte_offset)
bool IsValid () const
bool CopyFrom (const GeometryAttribute &src_att)
template<typename T, int att_components_t>
std::array< T, att_components_t > GetValue (AttributeValueIndex att_index) const
template<typename T, int att_components_t>
bool GetValue (AttributeValueIndex att_index, std::array< T, att_components_t > *out) const
int64_t GetBytePos (AttributeValueIndex att_index) const
const uint8_t * GetAddress (AttributeValueIndex att_index) const
uint8_t * GetAddress (AttributeValueIndex att_index)
bool IsAddressValid (const uint8_t *address) const
void GetValue (AttributeValueIndex att_index, void *out_data) const
void SetAttributeValue (AttributeValueIndex entry_index, const void *value)
template<typename OutT, int out_att_components_t>
bool ConvertValue (AttributeValueIndex att_id, OutT *out_val) const
template<typename OutT>
bool ConvertValue (AttributeValueIndex att_id, int8_t out_num_components, OutT *out_val) const
template<typename OutT>
bool ConvertValue (AttributeValueIndex att_index, OutT *out_value) const
bool operator== (const GeometryAttribute &va) const
Type attribute_type () const
void set_attribute_type (Type type)
DataTypeDataType data_type () const
uint8_t num_components () const
bool normalized () const
void set_normalized (bool normalized)
const DataBuffer * buffer () const
int64_t byte_stride () const
int64_t byte_offset () const
void set_byte_offset (int64_t byte_offset)
DataBufferDescriptor buffer_descriptor () const
uint32_t unique_id () const
void set_unique_id (uint32_t id)

Friends

struct PointAttributeHasher

Additional Inherited Members

Public Types inherited from draco::GeometryAttribute
enum  Type {
  INVALID = -1 , POSITION = 0 , NORMAL , COLOR ,
  TEX_COORD , GENERIC , NAMED_ATTRIBUTES_COUNT
}
Static Public Member Functions inherited from draco::GeometryAttribute
static std::string TypeToString (Type attribute_type)
Protected Member Functions inherited from draco::GeometryAttribute
void ResetBuffer (DataBuffer *buffer, int64_t byte_stride, int64_t byte_offset)

Constructor & Destructor Documentation

◆ PointAttribute() [1/3]

PointAttribute::PointAttribute ( )
Here is the caller graph for this function:

◆ PointAttribute() [2/3]

PointAttribute::PointAttribute ( const GeometryAttribute & att)
explicit

◆ PointAttribute() [3/3]

draco::PointAttribute::PointAttribute ( PointAttribute && attribute)
default

Member Function Documentation

◆ buffer()

DataBuffer * draco::PointAttribute::buffer ( ) const
inline
Here is the caller graph for this function:

◆ CopyFrom()

void PointAttribute::CopyFrom ( const PointAttribute & src_att)
Here is the caller graph for this function:

◆ GetAddressOfMappedIndex()

const uint8_t * draco::PointAttribute::GetAddressOfMappedIndex ( PointIndex point_index) const
inline

◆ GetAttributeTransformData()

const AttributeTransformData * draco::PointAttribute::GetAttributeTransformData ( ) const
inline
Here is the caller graph for this function:

◆ GetMappedValue()

void draco::PointAttribute::GetMappedValue ( PointIndex point_index,
void * out_data ) const
inline
Here is the caller graph for this function:

◆ indices_map_size()

size_t draco::PointAttribute::indices_map_size ( ) const
inline

◆ Init()

void PointAttribute::Init ( Type attribute_type,
int8_t num_components,
DataTypeDataType data_type,
bool normalized,
size_t num_attribute_values )
Here is the caller graph for this function:

◆ is_mapping_identity()

bool draco::PointAttribute::is_mapping_identity ( ) const
inline
Here is the caller graph for this function:

◆ mapped_index()

AttributeValueIndex draco::PointAttribute::mapped_index ( PointIndex point_index) const
inline
Here is the caller graph for this function:

◆ operator=()

PointAttribute & draco::PointAttribute::operator= ( PointAttribute && attribute)
default

◆ Reset()

bool PointAttribute::Reset ( size_t num_attribute_values)
Here is the caller graph for this function:

◆ Resize()

void PointAttribute::Resize ( size_t new_num_unique_entries)

◆ SetAttributeTransformData()

void draco::PointAttribute::SetAttributeTransformData ( std::unique_ptr< AttributeTransformData > transform_data)
inline
Here is the caller graph for this function:

◆ SetExplicitMapping()

void draco::PointAttribute::SetExplicitMapping ( size_t num_points)
inline
Here is the caller graph for this function:

◆ SetIdentityMapping()

void draco::PointAttribute::SetIdentityMapping ( )
inline
Here is the caller graph for this function:

◆ SetPointMapEntry()

void draco::PointAttribute::SetPointMapEntry ( PointIndex point_index,
AttributeValueIndex entry_index )
inline
Here is the caller graph for this function:

◆ size()

size_t draco::PointAttribute::size ( ) const
inline
Here is the caller graph for this function:

◆ PointAttributeHasher

friend struct PointAttributeHasher
friend

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