Rename MjcSiteAPI to MjcPhysicsSiteAPI for consistency.

PiperOrigin-RevId: 758708231
Change-Id: I75914ba52159996515547aa9e2e93690cadbfc66
This commit is contained in:
Sam Haves
2025-05-14 09:09:01 -07:00
committed by Copybara-Service
parent e1baa15776
commit 0a5da8db22
7 changed files with 10 additions and 10 deletions
@@ -220,7 +220,7 @@ class "MjcPhysicsSceneAPI" (
) )
} }
class "MjcSiteAPI" ( class "MjcPhysicsSiteAPI" (
doc = "API describing a Mujoco site." doc = "API describing a Mujoco site."
) )
{ {
@@ -18,7 +18,7 @@
}, },
"MjcPhysicsSiteAPI": { "MjcPhysicsSiteAPI": {
"alias": { "alias": {
"UsdSchemaBase": "MjcSiteAPI" "UsdSchemaBase": "MjcPhysicsSiteAPI"
}, },
"autoGenerated": true, "autoGenerated": true,
"bases": [ "bases": [
+1 -1
View File
@@ -510,7 +510,7 @@ class "MjcPhysicsSceneAPI"
) )
} }
class "MjcSiteAPI" class "MjcPhysicsSiteAPI"
( (
customData = { customData = {
string className = "SiteAPI" string className = "SiteAPI"
+2 -2
View File
@@ -34,7 +34,7 @@ PXR_NAMESPACE_OPEN_SCOPE
class SdfAssetPath; class SdfAssetPath;
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
// MJCSITEAPI // // MJCPHYSICSSITEAPI //
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
/// \class MjcPhysicsSiteAPI /// \class MjcPhysicsSiteAPI
@@ -104,7 +104,7 @@ class MjcPhysicsSiteAPI : public UsdAPISchemaBase {
static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr); static bool CanApply(const UsdPrim &prim, std::string *whyNot = nullptr);
/// Applies this <b>single-apply</b> API schema to the given \p prim. /// Applies this <b>single-apply</b> API schema to the given \p prim.
/// This information is stored by adding "MjcSiteAPI" to the /// This information is stored by adding "MjcPhysicsSiteAPI" to the
/// token-valued, listOp metadata \em apiSchemas on the prim. /// token-valued, listOp metadata \em apiSchemas on the prim.
/// ///
/// \return A valid MjcPhysicsSiteAPI object is returned upon success. /// \return A valid MjcPhysicsSiteAPI object is returned upon success.
+2 -2
View File
@@ -86,7 +86,7 @@ MjcPhysicsTokensType::MjcPhysicsTokensType()
rk4("rk4", TfToken::Immortal), rk4("rk4", TfToken::Immortal),
sparse("sparse", TfToken::Immortal), sparse("sparse", TfToken::Immortal),
MjcPhysicsSceneAPI("MjcPhysicsSceneAPI", TfToken::Immortal), MjcPhysicsSceneAPI("MjcPhysicsSceneAPI", TfToken::Immortal),
MjcSiteAPI("MjcSiteAPI", TfToken::Immortal), MjcPhysicsSiteAPI("MjcPhysicsSiteAPI", TfToken::Immortal),
allTokens({auto_, allTokens({auto_,
cg, cg,
dense, dense,
@@ -149,7 +149,7 @@ MjcPhysicsTokensType::MjcPhysicsTokensType()
rk4, rk4,
sparse, sparse,
MjcPhysicsSceneAPI, MjcPhysicsSceneAPI,
MjcSiteAPI}) {} MjcPhysicsSiteAPI}) {}
TfStaticData<MjcPhysicsTokensType> MjcPhysicsTokens; TfStaticData<MjcPhysicsTokensType> MjcPhysicsTokens;
+2 -2
View File
@@ -313,10 +313,10 @@ struct MjcPhysicsTokensType {
/// ///
/// Schema identifer and family for MjcPhysicsSceneAPI /// Schema identifer and family for MjcPhysicsSceneAPI
const TfToken MjcPhysicsSceneAPI; const TfToken MjcPhysicsSceneAPI;
/// \brief "MjcSiteAPI" /// \brief "MjcPhysicsSiteAPI"
/// ///
/// Schema identifer and family for MjcPhysicsSiteAPI /// Schema identifer and family for MjcPhysicsSiteAPI
const TfToken MjcSiteAPI; const TfToken MjcPhysicsSiteAPI;
/// A vector of all of the tokens listed above. /// A vector of all of the tokens listed above.
const std::vector<TfToken> allTokens; const std::vector<TfToken> allTokens;
}; };
@@ -146,5 +146,5 @@ void wrapMjcPhysicsTokens() {
_AddToken(cls, "rk4", MjcPhysicsTokens->rk4); _AddToken(cls, "rk4", MjcPhysicsTokens->rk4);
_AddToken(cls, "sparse", MjcPhysicsTokens->sparse); _AddToken(cls, "sparse", MjcPhysicsTokens->sparse);
_AddToken(cls, "MjcPhysicsSceneAPI", MjcPhysicsTokens->MjcPhysicsSceneAPI); _AddToken(cls, "MjcPhysicsSceneAPI", MjcPhysicsTokens->MjcPhysicsSceneAPI);
_AddToken(cls, "MjcSiteAPI", MjcPhysicsTokens->MjcSiteAPI); _AddToken(cls, "MjcPhysicsSiteAPI", MjcPhysicsTokens->MjcPhysicsSiteAPI);
} }