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
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
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
typedef CMetaAttributes
typedef InstanceAttributes
typedef MetaAttributes
Public Functions Documentation
function Geometry [1/3]
function Geometry [2/3]
function Geometry [3/3]
function as
function instances [1/2]
Get the instance attributes of the geometries.
Returns:
The instance attributes of the geometries.
function instances [2/2]
function meta [1/2]
Get the meta attributes of the geometries.
Returns:
The meta attributes of the geometries.
function meta [2/2]
function operator=
function operator=
Protected Attributes Documentation
variable m_intances
variable 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
Implements uipc::geometry::IGeometry::do_to_json
The documentation for this class was generated from the following file include/uipc/geometry/geometry.h