A version numbering class that reports revisions of SceneGraph's geometric data.
Other Systems can use this version number to perform updates when they detect changes to the geometric data they consume. The version of the geometry data is made available through SceneGraphInspector.
The geometry data is partitioned by geometric role and have independent role version values. Some of SceneGraph's API (as variously documented) will cause one or more role versions to change. This class provides the API IsSameAs
that takes another GeometryVersion as well as a Role to help detect whether the provided role of the geometries may have changed. For example:
#include <drake/geometry/geometry_version.h>
Public Member Functions | |
GeometryVersion () | |
Constructs a default-initialized instance; guaranteed to be different from every other instance. More... | |
bool | IsSameAs (const GeometryVersion &other, Role role) const |
Returns true if this GeometryVersion has the same role version as the other GeometryVersion. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
GeometryVersion (const GeometryVersion &)=default | |
GeometryVersion & | operator= (const GeometryVersion &)=default |
GeometryVersion (GeometryVersion &&)=default | |
GeometryVersion & | operator= (GeometryVersion &&)=default |
Friends | |
template<typename T > | |
class | GeometryState |
class | GeometryVersionTest |
|
default |
|
default |
GeometryVersion | ( | ) |
Constructs a default-initialized instance; guaranteed to be different from every other instance.
bool IsSameAs | ( | const GeometryVersion & | other, |
Role | role | ||
) | const |
Returns true if this
GeometryVersion has the same role
version as the other
GeometryVersion.
|
default |
|
default |
|
friend |
|
friend |