Changeset View
Changeset View
Standalone View
Standalone View
tests/gtests/usd/abstract_hierarchy_iterator_test.cc
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * The Original Code is Copyright (C) 2019 Blender Foundation. | * The Original Code is Copyright (C) 2019 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| #include "IO_abstract_hierarchy_iterator.h" | |||||
| #include "blenloader/blendfile_loading_base_test.h" | #include "blenloader/blendfile_loading_base_test.h" | ||||
| #include "intern/abstract_hierarchy_iterator.h" | |||||
| extern "C" { | extern "C" { | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| } | } | ||||
| #include <map> | #include <map> | ||||
| #include <set> | #include <set> | ||||
| /* Mapping from ID.name to set of export hierarchy path. Duplicated objects can be exported | /* Mapping from ID.name to set of export hierarchy path. Duplicated objects can be exported | ||||
| * multiple times with different export paths, hence the set. */ | * multiple times with different export paths, hence the set. */ | ||||
| typedef std::map<std::string, std::set<std::string>> created_writers; | typedef std::map<std::string, std::set<std::string>> created_writers; | ||||
| using namespace USD; | using namespace blender::io; | ||||
| class TestHierarchyWriter : public AbstractHierarchyWriter { | class TestHierarchyWriter : public AbstractHierarchyWriter { | ||||
| public: | public: | ||||
| std::string writer_type; | std::string writer_type; | ||||
| created_writers &writers_map; | created_writers &writers_map; | ||||
| TestHierarchyWriter(const std::string &writer_type, created_writers &writers_map) | TestHierarchyWriter(const std::string &writer_type, created_writers &writers_map) | ||||
| : writer_type(writer_type), writers_map(writers_map) | : writer_type(writer_type), writers_map(writers_map) | ||||
| ▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines | |||||