38 #ifndef H_OGF_VOXEL_INTERFACES_VOXEL_GROB_EDITOR_INTERFACE_H
39 #define H_OGF_VOXEL_INTERFACES_VOXEL_GROB_EDITOR_INTERFACE_H
78 const vec3& get_origin()
const {
79 return voxel_grob()->origin();
82 const vec3& get_U()
const {
83 return voxel_grob()->U();
86 const vec3& get_V()
const {
87 return voxel_grob()->V();
90 const vec3& get_W()
const {
91 return voxel_grob()->W();
95 return voxel_grob()->nu();
99 return voxel_grob()->nv();
103 return voxel_grob()->nw();
117 NL::Vector* find_attribute(
118 const std::string& attribute_name,
bool quiet=
false
130 const std::string& attribute_name,
143 const std::string& attribute_name,
Generic mechanism for attributes.
Represents additional functions that can be attached to an object.
A scriptable Vector objects.
A wrapper to script low-level editing operations on a VoxelGrob.
VoxelGrob * voxel_grob() const
Gets the wrapped VoxelGrob.
bool has_attribute(const std::string &attribute_name) const
Tests whether the voxel has an attribute.
bool check_voxel_grob() const
Checks whether VoxelGrob is valid.
NL::Vector * find_or_create_attribute(const std::string &attribute_name, index_t dimension=1, MetaType *type=nullptr)
Creates an attribute.
NL::Vector * create_attribute(const std::string &attribute_name, index_t dimension=1, MetaType *type=nullptr)
Creates an attribute.
void update()
Redisplays the wrapped VoxelGrob.
VoxelGrobEditor()
VoxelGrobEditor constructor.
~VoxelGrobEditor() override
VoxelGrobEditor destrutor.
A Grob class for voxel grids.
class that gathers commands with menu and dialogs.
vecng< 3, Numeric::float64 > vec3
Represents points and vectors in 3d.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
Definitions common to all include files in the voxel library.