Skip to content

Class uipc::geometry::Geometry

ClassList > uipc > geometry > Geometry

A base geometries class that contains the instance attributes and the meta attributes.

  • #include <geometry.h>

Inherits the following classes: uipc::geometry::IGeometry

Inherited by the following classes: uipc::geometry::AbstractSimplicialComplex, uipc::geometry::ImplicitGeometry, uipc::geometry::SimplicialComplex

Classes

Type Name
class InstanceAttributesT <IsConst>
A wrapper class for the instance attributes of a geometries.
class MetaAttributesT <IsConst>
A wrapper class for the meta attributes of a geometries.

Public Types

Type Name
typedef InstanceAttributesT< true > CInstanceAttributes
typedef MetaAttributesT< true > CMetaAttributes
typedef InstanceAttributesT< false > InstanceAttributes
typedef MetaAttributesT< false > MetaAttributes

Public Functions

Type Name
Geometry ()
Geometry (const Geometry & o) = default
Geometry (Geometry && o) = default
T * as ()
InstanceAttributes instances ()
Get the instance attributes of the geometries.
CInstanceAttributes instances () const
MetaAttributes meta ()
Get the meta attributes of the geometries.
CMetaAttributes meta () const
Geometry & operator= (const Geometry & o) = delete
Geometry & operator= (Geometry && o) = delete

Public Functions inherited from uipc::geometry::IGeometry

See uipc::geometry::IGeometry

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 Attributes

Type Name
AttributeCollection m_intances
AttributeCollection m_meta

Protected Functions

Type Name
virtual void do_collect_attribute_collections (vector< std::string > & names, vector< AttributeCollection * > & collections) override
virtual Json do_to_json () override const

Protected Functions inherited from uipc::geometry::IGeometry

See uipc::geometry::IGeometry

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

typedef CInstanceAttributes

using uipc::geometry::Geometry::CInstanceAttributes =  InstanceAttributesT<true>;

typedef CMetaAttributes

using uipc::geometry::Geometry::CMetaAttributes =  MetaAttributesT<true>;

typedef InstanceAttributes

using uipc::geometry::Geometry::InstanceAttributes =  InstanceAttributesT<false>;

typedef MetaAttributes

using uipc::geometry::Geometry::MetaAttributes =  MetaAttributesT<false>;

Public Functions Documentation

function Geometry [1/3]

uipc::geometry::Geometry::Geometry () 

function Geometry [2/3]

uipc::geometry::Geometry::Geometry (
    const Geometry & o
) = default

function Geometry [3/3]

uipc::geometry::Geometry::Geometry (
    Geometry && o
) = default

function as

template<std::derived_from< Geometry > T>
T * uipc::geometry::Geometry::as () 

function instances [1/2]

Get the instance attributes of the geometries.

InstanceAttributes uipc::geometry::Geometry::instances () 

Returns:

The instance attributes of the geometries.


function instances [2/2]

CInstanceAttributes uipc::geometry::Geometry::instances () const

function meta [1/2]

Get the meta attributes of the geometries.

MetaAttributes uipc::geometry::Geometry::meta () 

Returns:

The meta attributes of the geometries.


function meta [2/2]

CMetaAttributes uipc::geometry::Geometry::meta () const

function operator=

Geometry & uipc::geometry::Geometry::operator= (
    const Geometry & o
) = delete

function operator=

Geometry & uipc::geometry::Geometry::operator= (
    Geometry && o
) = delete

Protected Attributes Documentation

variable m_intances

AttributeCollection uipc::geometry::Geometry::m_intances;

variable m_meta

AttributeCollection uipc::geometry::Geometry::m_meta;

Protected Functions Documentation

function do_collect_attribute_collections

virtual void uipc::geometry::Geometry::do_collect_attribute_collections (
    vector< std::string > & names,
    vector< AttributeCollection * > & collections
) override

Implements uipc::geometry::IGeometry::do_collect_attribute_collections


function do_to_json

virtual Json uipc::geometry::Geometry::do_to_json () override const

Implements uipc::geometry::IGeometry::do_to_json



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