Skip to content

Class uipc::geometry::GeometryAtlas

ClassList > uipc > geometry > GeometryAtlas

Public Functions

Type Name
GeometryAtlas ()
SizeT attribute_collection_count () noexcept const
vector< std::string > attribute_collection_names () noexcept const
IndexT create (const Geometry & geo, bool evolving_only=false)
Create a geometry in the atlas.
void create (std::string_view name, const AttributeCollection & ac, bool evolving_only=false)
Create a named AttributeCollection in the atlas.
S< const GeometrySlot > find (IndexT id) const
Find the geometry slot by id.
S< const AttributeCollection > find (std::string_view name) const
Find the AttributeCollection by name.
void from_json (const Json & j)
Create geometry atlas from json.
SizeT geometry_count () noexcept const
Json to_json () const
Create json representation of the geometry atlas.
~GeometryAtlas ()

Public Functions Documentation

function GeometryAtlas

uipc::geometry::GeometryAtlas::GeometryAtlas () 

function attribute_collection_count

SizeT uipc::geometry::GeometryAtlas::attribute_collection_count () noexcept const

function attribute_collection_names

vector< std::string > uipc::geometry::GeometryAtlas::attribute_collection_names () noexcept const

function create [1/2]

Create a geometry in the atlas.

IndexT uipc::geometry::GeometryAtlas::create (
    const Geometry & geo,
    bool evolving_only=false
) 

function create [2/2]

Create a named AttributeCollection in the atlas.

void uipc::geometry::GeometryAtlas::create (
    std::string_view name,
    const AttributeCollection & ac,
    bool evolving_only=false
) 

function find [1/2]

Find the geometry slot by id.

S< const GeometrySlot > uipc::geometry::GeometryAtlas::find (
    IndexT id
) const

Only return const version, not allow to modify the geometry.


function find [2/2]

Find the AttributeCollection by name.

S< const AttributeCollection > uipc::geometry::GeometryAtlas::find (
    std::string_view name
) const

Only return const version, not allow to modify the geometry.


function from_json

Create geometry atlas from json.

void uipc::geometry::GeometryAtlas::from_json (
    const Json & j
) 

Parameters:

  • j The json representation of the geometry atlas
  • attributes The attributes to be used in the geometry

function geometry_count

SizeT uipc::geometry::GeometryAtlas::geometry_count () noexcept const

function to_json

Create json representation of the geometry atlas.

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

function ~GeometryAtlas

uipc::geometry::GeometryAtlas::~GeometryAtlas () 


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