Skip to content

Commit 652e612

Browse files
Merge pull request #1145 from Geode-solutions/feat/component-active
feat(Component): add active compoennt status
2 parents 1c54306 + e6a11d8 commit 652e612

File tree

66 files changed

+842
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+842
-153
lines changed

include/geode/model/mixin/core/detail/count_relationships.hpp renamed to include/geode/basic/detail/count_range_elements.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323

2424
#pragma once
2525

26+
#include <geode/basic/common.hpp>
27+
2628
namespace geode
2729
{
2830
namespace detail
2931
{
3032
template < typename Range >
31-
[[nodiscard]] index_t count_relationships( const Range& range )
33+
[[nodiscard]] index_t count_range_elements( const Range& range )
3234
{
3335
index_t nb{ 0 };
3436
for( const auto& unused : range )

include/geode/model/mixin/builder/block_collections_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ namespace geode
4545

4646
void set_block_collection_name( const uuid& id, std::string_view name );
4747

48+
void set_block_collection_active( const uuid& id, bool active );
49+
4850
protected:
4951
explicit BlockCollectionsBuilder(
5052
BlockCollections< dimension >& collections )

include/geode/model/mixin/builder/blocks_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ namespace geode
6464

6565
void set_block_name( const uuid& id, std::string_view name );
6666

67+
void set_block_active( const uuid& id, bool active );
68+
6769
protected:
6870
explicit BlocksBuilder( Blocks< dimension >& blocks )
6971
: blocks_( blocks )

include/geode/model/mixin/builder/corner_collections_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ namespace geode
4646
void set_corner_collection_name(
4747
const uuid& id, std::string_view name );
4848

49+
void set_corner_collection_active( const uuid& id, bool active );
50+
4951
protected:
5052
explicit CornerCollectionsBuilder(
5153
CornerCollections< dimension >& collections )

include/geode/model/mixin/builder/corners_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ namespace geode
5656

5757
void set_corner_name( const uuid& id, std::string_view name );
5858

59+
void set_corner_active( const uuid& id, bool active );
60+
5961
protected:
6062
explicit CornersBuilder( Corners< dimension >& corners )
6163
: corners_( corners )

include/geode/model/mixin/builder/line_collections_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ namespace geode
4545

4646
void set_line_collection_name( const uuid& id, std::string_view name );
4747

48+
void set_line_collection_active( const uuid& id, bool active );
49+
4850
protected:
4951
explicit LineCollectionsBuilder(
5052
LineCollections< dimension >& collections )

include/geode/model/mixin/builder/lines_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ namespace geode
5656

5757
void set_line_name( const uuid& id, std::string_view name );
5858

59+
void set_line_active( const uuid& id, bool active );
60+
5961
protected:
6062
explicit LinesBuilder( Lines< dimension >& lines ) : lines_( lines ) {}
6163

include/geode/model/mixin/builder/model_boundaries_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ namespace geode
4545

4646
void set_model_boundary_name( const uuid& id, std::string_view name );
4747

48+
void set_model_boundary_active( const uuid& id, bool active );
49+
4850
protected:
4951
explicit ModelBoundariesBuilder(
5052
ModelBoundaries< dimension >& boundaries )

include/geode/model/mixin/builder/surface_collections_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ namespace geode
4646
void set_surface_collection_name(
4747
const uuid& id, std::string_view name );
4848

49+
void set_surface_collection_active( const uuid& id, bool active );
50+
4951
protected:
5052
explicit SurfaceCollectionsBuilder(
5153
SurfaceCollections< dimension >& collections )

include/geode/model/mixin/builder/surfaces_builder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ namespace geode
6464

6565
void set_surface_name( const uuid& id, std::string_view name );
6666

67+
void set_surface_active( const uuid& id, bool active );
68+
6769
protected:
6870
explicit SurfacesBuilder( Surfaces< dimension >& surfaces )
6971
: surfaces_( surfaces )

0 commit comments

Comments
 (0)