forked from BRL-CAD/brlcad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get ready to re-try the merge of scene_obj_manage
First step is to revert the reversion of the original merge.
- Loading branch information
1 parent
288e893
commit e4b642a
Showing
68 changed files
with
1,110 additions
and
754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* V I E W _ S E T S . H | ||
* BRL-CAD | ||
* | ||
* Copyright (c) 1993-2022 United States Government as represented by | ||
* the U.S. Army Research Laboratory. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public License | ||
* version 2.1 as published by the Free Software Foundation. | ||
* | ||
* This library is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this file; see the file named COPYING for more | ||
* information. | ||
*/ | ||
/** @addtogroup bv_util | ||
* | ||
* In applications with multiple views, those views typically share common | ||
* scene objects and memory. To manage this sharing, we define view sets. | ||
*/ | ||
/** @{ */ | ||
/** @file bv/view_sets.h */ | ||
|
||
#ifndef BV_VIEW_SETS_H | ||
#define BV_VIEW_SETS_H | ||
|
||
#include "common.h" | ||
#include "bv/defines.h" | ||
|
||
__BEGIN_DECLS | ||
|
||
/** | ||
* Initialize an empty view set | ||
*/ | ||
BV_EXPORT void | ||
bv_set_init(struct bview_set *s); | ||
|
||
/** | ||
* Free view set | ||
*/ | ||
BV_EXPORT void | ||
bv_set_free(struct bview_set *s); | ||
|
||
/** | ||
* Add view v to set s, handling shared memory assignments. | ||
*/ | ||
BV_EXPORT void | ||
bv_set_add_view(struct bview_set *s, struct bview *v); | ||
|
||
/** | ||
* Remove view v from set s | ||
*/ | ||
BV_EXPORT void | ||
bv_set_rm_view(struct bview_set *s, struct bview *v); | ||
|
||
/** | ||
* Return a bu_ptbl holding pointers to all views in set s | ||
*/ | ||
BV_EXPORT struct bu_ptbl * | ||
bv_set_views(struct bview_set *s); | ||
|
||
/** | ||
* Return a pointer to the view with name vname, if it is present in s. If not | ||
* found, returns NULL | ||
*/ | ||
BV_EXPORT struct bview * | ||
bv_set_find_view(struct bview_set *s, const char *vname); | ||
|
||
|
||
// Expose free_scene_obj for older codes - do not use in new coding | ||
BV_EXPORT struct bv_scene_obj * | ||
bv_set_fsos(struct bview_set *s); | ||
|
||
|
||
__END_DECLS | ||
|
||
/** @} */ | ||
|
||
#endif /* BV_VIEW_SETS_H */ | ||
|
||
/* | ||
* Local Variables: | ||
* mode: C | ||
* tab-width: 8 | ||
* indent-tabs-mode: t | ||
* c-file-style: "stroustrup" | ||
* End: | ||
* ex: shiftwidth=4 tabstop=8 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.