Geogram Version 1.9.6-rc
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::Attribute< vecng< DIM, double > > Class Template Reference

An attribute class that can access a vector attribute as a scalar attribute with vec2,vec3 or vec4 element types. More...

#include <geogram/basic/vector_attribute.h>

Public Types

typedef vecng< DIM, double > vec_type
 

Public Member Functions

 Attribute (AttributesManager &manager, const std::string &name)
 
void bind (AttributesManager &manager, const std::string &name)
 
void unbind ()
 
void bind_if_is_defined (AttributesManager &manager, const std::string &name)
 
bool is_bound () const
 
index_t size () const
 
index_t dimension () const
 
AttributesManagermanager ()
 
vec_typeoperator[] (index_t i)
 
const vec_typeoperator[] (index_t i) const
 

Static Public Member Functions

static bool is_defined (AttributesManager &manager, const std::string &name)
 

Static Public Attributes

static constexpr index_t vec_dim = DIM
 

Detailed Description

template<index_t DIM>
class GEO::Attribute< vecng< DIM, double > >

An attribute class that can access a vector attribute as a scalar attribute with vec2,vec3 or vec4 element types.

Definition at line 54 of file vector_attribute.h.

Member Typedef Documentation

◆ vec_type

template<index_t DIM>
typedef vecng<DIM,double> GEO::Attribute< vecng< DIM, double > >::vec_type

Definition at line 56 of file vector_attribute.h.

Constructor & Destructor Documentation

◆ Attribute() [1/2]

template<index_t DIM>
GEO::Attribute< vecng< DIM, double > >::Attribute ( )
inline

Definition at line 59 of file vector_attribute.h.

◆ ~Attribute()

template<index_t DIM>
GEO::Attribute< vecng< DIM, double > >::~Attribute ( )
inline

Definition at line 64 of file vector_attribute.h.

◆ Attribute() [2/2]

template<index_t DIM>
GEO::Attribute< vecng< DIM, double > >::Attribute ( AttributesManager manager,
const std::string &  name 
)
inline

Definition at line 70 of file vector_attribute.h.

Member Function Documentation

◆ bind()

template<index_t DIM>
void GEO::Attribute< vecng< DIM, double > >::bind ( AttributesManager manager,
const std::string &  name 
)
inline

Definition at line 92 of file vector_attribute.h.

◆ bind_if_is_defined()

template<index_t DIM>
void GEO::Attribute< vecng< DIM, double > >::bind_if_is_defined ( AttributesManager manager,
const std::string &  name 
)
inline

Definition at line 117 of file vector_attribute.h.

◆ dimension()

template<index_t DIM>
index_t GEO::Attribute< vecng< DIM, double > >::dimension ( ) const
inline

Definition at line 134 of file vector_attribute.h.

◆ is_bound()

template<index_t DIM>
bool GEO::Attribute< vecng< DIM, double > >::is_bound ( ) const
inline

Definition at line 126 of file vector_attribute.h.

◆ is_defined()

template<index_t DIM>
static bool GEO::Attribute< vecng< DIM, double > >::is_defined ( AttributesManager manager,
const std::string &  name 
)
inlinestatic

Definition at line 76 of file vector_attribute.h.

◆ manager()

template<index_t DIM>
AttributesManager * GEO::Attribute< vecng< DIM, double > >::manager ( )
inline

Definition at line 138 of file vector_attribute.h.

◆ operator[]() [1/2]

template<index_t DIM>
vec_type & GEO::Attribute< vecng< DIM, double > >::operator[] ( index_t  i)
inline

Definition at line 146 of file vector_attribute.h.

◆ operator[]() [2/2]

template<index_t DIM>
const vec_type & GEO::Attribute< vecng< DIM, double > >::operator[] ( index_t  i) const
inline

Definition at line 151 of file vector_attribute.h.

◆ size()

template<index_t DIM>
index_t GEO::Attribute< vecng< DIM, double > >::size ( ) const
inline

Definition at line 130 of file vector_attribute.h.

◆ unbind()

template<index_t DIM>
void GEO::Attribute< vecng< DIM, double > >::unbind ( )
inline

Definition at line 105 of file vector_attribute.h.

Member Data Documentation

◆ vec_dim

template<index_t DIM>
constexpr index_t GEO::Attribute< vecng< DIM, double > >::vec_dim = DIM
staticconstexpr

Definition at line 57 of file vector_attribute.h.


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