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
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.
virtual ~IGeometry () = default

Protected Functions

Type Name
virtual void do_collect_attribute_collections (vector< std::string > & names, vector< AttributeCollection * > & collections) = 0
virtual Json do_to_json () const = 0
virtual std::string_view get_type () noexcept const = 0

Public Functions Documentation

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 ~IGeometry

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

Protected Functions Documentation

function do_collect_attribute_collections

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 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