Skip to content

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

S< IGeometry > uipc::geometry::IGeometry::clone () const

function to_json

Json uipc::geometry::IGeometry::to_json () const

function type

Get the type of the geometries, check the type to downcast the geometries to a specific type.

std::string_view uipc::geometry::IGeometry::type () noexcept const

Returns:

a string_view of the type of the geometries


function update_from

void uipc::geometry::IGeometry::update_from (
    const GeometryCommit & commit
) 

function ~IGeometry

virtual uipc::geometry::IGeometry::~IGeometry () = default

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

virtual S< IGeometry > uipc::geometry::IGeometry::do_clone () const = 0

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

virtual Json uipc::geometry::IGeometry::do_to_json () const = 0

function do_update_from

virtual void uipc::geometry::IGeometry::do_update_from (
    const GeometryCommit & commit
) = 0

function get_type

virtual std::string_view uipc::geometry::IGeometry::get_type () noexcept const = 0

Friends Documentation

friend GeometryVisitor

class uipc::geometry::IGeometry::GeometryVisitor (
    backend::GeometryVisitor
) 


The documentation for this class was generated from the following file include/uipc/geometry/geometry.h