This repository has been archived by the owner on Nov 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Daniel W. S. Almeida <[email protected]>
- Loading branch information
1 parent
be664cd
commit 41b5332
Showing
3 changed files
with
76 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// ------------------------------------------------------------------------- | ||
// Copyright (C) 2019 Daniel Werner Lima Souza de Almeida | ||
// ------------------------------------------------------------------------- | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
// ------------------------------------------------------------------------- | ||
|
||
#include "ramses-python/SceneGraphIterator.h" | ||
#include "ramses-client-api/SceneGraphIterator.h" | ||
#include "ramses-client-api/RamsesObjectTypes.h" | ||
|
||
namespace RamsesPython | ||
{ | ||
|
||
SceneGraphIterator::SceneGraphIterator(RamsesPython::Node& startNode, | ||
ramses::ETreeTraversalStyle traversalStyle, | ||
ramses::ERamsesObjectType objectType) | ||
:m_iter{*startNode.m_node, traversalStyle, objectType} | ||
{ | ||
|
||
}; | ||
|
||
RamsesPython::Node SceneGraphIterator::getNext() | ||
{ | ||
ramses::Node* next {m_iter.getNext()}; | ||
return RamsesPython::Node {next}; | ||
} | ||
|
||
} |
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,34 @@ | ||
// ------------------------------------------------------------------------- | ||
// Copyright (C) 2019 Daniel Werner Lima Souza de Almeida | ||
// ------------------------------------------------------------------------- | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
// ------------------------------------------------------------------------- | ||
|
||
#ifndef PYTHONRAMSES_SCENEGRAPHITERATOR_H | ||
#define PYTHONRAMSES_SCENEGRAPHITERATOR_H | ||
|
||
#include "ramses-python/Node.h" | ||
#include "ramses-client-api/SceneGraphIterator.h" | ||
#include "ramses-client-api/RamsesObjectTypes.h" | ||
|
||
namespace RamsesPython | ||
{ | ||
|
||
class SceneGraphIterator | ||
{ | ||
public: | ||
SceneGraphIterator(RamsesPython::Node& startNode, | ||
ramses::ETreeTraversalStyle traversalStyle, | ||
ramses::ERamsesObjectType objectType); | ||
|
||
RamsesPython::Node getNext(); | ||
|
||
private: | ||
ramses::SceneGraphIterator m_iter; | ||
}; | ||
|
||
} | ||
|
||
#endif |