Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5622: Basic algorithm to assemble a map fingerprint for all containe…
…d nodes
- Loading branch information
1 parent
1a5db5d
commit 059d6ab
Showing
5 changed files
with
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include "inode.h" | ||
|
||
namespace scene | ||
{ | ||
|
||
/** | ||
* Prototype of a comparable scene node, providing hash information | ||
* for comparison to another node. Nodes of the same type can be compared against each other. | ||
*/ | ||
class IComparableNode : | ||
public virtual INode | ||
{ | ||
public: | ||
virtual ~IComparableNode() {} | ||
|
||
// Returns the fingerprint (hash) of this node, to allow for quick | ||
// matching against other nodes of the same type. Fingerprints of different | ||
// types are not comparable, be sure to check the node type first. | ||
virtual std::size_t getFingerprint() = 0; | ||
}; | ||
|
||
} |
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