40 #ifndef H_OGF_GEOGRAMPLUG_GROB_MESH_GROB_H
41 #define H_OGF_GEOGRAMPLUG_GROB_MESH_GROB_H
119 std::string get_attributes()
const;
151 std::string list_attributes(
152 const std::string& localisations=
"",
153 const std::string& types=
"",
154 const std::string& dims=
""
A Composite Graphite Object.
Base class for all 3D Graphite objects.
A Grob wrapper around Geogram's Mesh class.
Box3d bbox() const override
Gets the bounding box.
~MeshGrob() override
MeshGrob destructor;.
bool is_serializable() const override
Tests whether this Grob can be serialized in GeoFile.
bool load(const FileName &value) override
Replaces this Grob with the contents of a file.
bool serialize_read(InputGraphiteFile &geofile) override
Reads this Grob from a GeoFile.
std::string get_scalar_attributes() const
Gets the list of all scalar attributes.
bool save(const NewFileName &value) override
Saves this Grob to a file.
bool serialize_write(OutputGraphiteFile &geofile) override
Writes this Grob into a stream.
void clear() override
Clears this Grob.
static MeshGrob * find(SceneGraph *sg, const std::string &name)
Finds a MeshGrob by name.
static MeshGrob * find_or_create(SceneGraph *sg, const std::string &name)
Finds or creates a MeshGrob with the specified name.
static void register_geogram_file_extensions()
Registers all Geogram file extensions in Graphite.
Grob * duplicate(SceneGraph *sg) override
Duplicates this Grob.
std::string get_filters() const
Gets the list of all filters.
MeshGrob(CompositeGrob *parent)
MeshGrob constructor.
std::string get_selections() const
Gets the list of all selections.
bool append(const FileName &value) override
Appends the content of the specified file to this Grob.
A template class for strings that need to have a specific type in the GOM system.
An extension of InputGeoFile for storing a complete Graphite scenegraph in a structured binary file.
Represents the list of objects loaded in Graphite.
The base class for all 3D objects in the system.
The class that represents a mesh.
Global Graphite namespace.
Name< MeshGrob * > MeshGrobName
The name of an existing MeshGrob in the SceneGraph.
Name< MeshGrob *, true > NewMeshGrobName
The name of an (existing or not) MeshGrob in the SceneGraph.
Definitions common to all include files in the mesh library.