37 #ifndef H_OGF_SCENE_GRAPH_NL_VECTOR_H
38 #define H_OGF_SCENE_GRAPH_NL_VECTOR_H
90 MetaType* element_meta_type,
bool read_only
140 index_t get_nb_elements()
const override {
141 return nb_elements();
165 return element_meta_type_;
203 size_t element_size_;
Generic mechanism for attributes.
Base class for attributes. They are notified whenever the AttributeStore is modified.
Notifies a set of AttributeStoreObservers each time the stored array changes size and/or base address...
A class that stores a variable of arbitrary type.
Base class for all 3D Graphite objects.
A scriptable Vector objects.
bool check_index(index_t i) const
Tests whether index i is valid.
Vector(Grob *grob, void *data, index_t size, index_t dimension, MetaType *element_meta_type, bool read_only)
Vector constructor.
bool get_read_only() const
Tests whether this Vector is read-only.
void set_element(index_t i, const Any &value) override
Sets an element.
index_t * data_index_t() const
Gets the data pointer as index_t.
MetaType * get_element_meta_type() const
Gets the MetaType of the elements.
index_t get_dimension() const
Gets the dimension.
Vector(Grob *grob, AttributeStore *attribute_store)
Vector constructor.
Vector(index_t size=0, index_t dimension=1, MetaType *element_meta_type=nullptr)
Vector constructor.
void get_element(index_t i, Any &value) const override
Gets an element.
Memory::pointer data() const
Gets the data pointer.
~Vector() override
Vector destructor.
double * data_double() const
Gets the data pointer as doubles.
index_t get_size() const
Gets the size.
Base class for all objects in the GOM system.
byte * pointer
Pointer to unsigned byte(s)
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
The base class for all objects in the GOM system.
Definitions common to all include files in the scene_graph library.