Class uipc::geometry::IGeometry
ClassList > uipc > geometry > IGeometry
An abstract class for geometries.
#include <geometry.h>
Inherited by the following classes: uipc::geometry::Geometry
Public Functions
Type | Name |
---|---|
S< IGeometry > | clone () const |
Json | to_json () const |
std::string_view | type () noexcept const Get the type of the geometries, check the type to downcast the geometries to a specific type. |
void | update_from (const GeometryCommit & commit) |
virtual | ~IGeometry () = default |
Protected Functions
Type | Name |
---|---|
virtual void | do_build_from_attribute_collections (span< const std::string > names, span< const AttributeCollection * > collections) = 0 |
virtual S< IGeometry > | do_clone () const = 0 |
virtual void | do_collect_attribute_collections (vector< std::string > & names, vector< const AttributeCollection * > & collections) const = 0 |
virtual void | do_collect_attribute_collections (vector< std::string > & names, vector< AttributeCollection * > & collections) = 0 |
virtual Json | do_to_json () const = 0 |
virtual void | do_update_from (const GeometryCommit & commit) = 0 |
virtual std::string_view | get_type () noexcept const = 0 |
Public Functions Documentation
function clone
function to_json
function type
Get the type of the geometries, check the type to downcast the geometries to a specific type.
Returns:
a string_view of the type of the geometries
function update_from
function ~IGeometry
Protected Functions Documentation
function do_build_from_attribute_collections
virtual void uipc::geometry::IGeometry::do_build_from_attribute_collections (
span< const std::string > names,
span< const AttributeCollection * > collections
) = 0
function do_clone
function do_collect_attribute_collections [1/2]
virtual void uipc::geometry::IGeometry::do_collect_attribute_collections (
vector< std::string > & names,
vector< const AttributeCollection * > & collections
) const = 0
function do_collect_attribute_collections [2/2]
virtual void uipc::geometry::IGeometry::do_collect_attribute_collections (
vector< std::string > & names,
vector< AttributeCollection * > & collections
) = 0
function do_to_json
function do_update_from
function get_type
Friends Documentation
friend GeometryVisitor
The documentation for this class was generated from the following file include/uipc/geometry/geometry.h