Loading...
Searching...
No Matches
xformResolver.h
1//
2// Copyright 2025 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_XFORM_RESOLVER_H
8#define PXR_USD_IMAGING_USD_SKEL_IMAGING_XFORM_RESOLVER_H
9
10#include "pxr/usdImaging/usdSkelImaging/api.h"
11
12#include "pxr/imaging/hd/dataSourceTypeDefs.h"
13#include "pxr/imaging/hd/dataSourceLocator.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
18
42{
43public:
46 HdSceneIndexBaseRefPtr const &sceneIndex,
47 HdContainerDataSourceHandle const &primSource);
48
50 HdMatrixDataSourceHandle GetPrimLocalToCommonSpace() const;
51
55
59 return _instancerPaths;
60 }
61
75
76private:
77 HdSceneIndexBaseRefPtr const _sceneIndex;
78 HdContainerDataSourceHandle const _primSource;
79 const VtArray<SdfPath> _instancerPaths;
80};
81
82PXR_NAMESPACE_CLOSE_SCOPE
83
84#endif
Represents an object that can identify the location of a data source.
Abstract interface to scene data.
Definition: sceneIndex.h:54
Given a prim, computes transform from prim local space to a space common to all descendants of a skel...
Definition: xformResolver.h:42
static const HdDataSourceLocator & GetXformLocator()
If a dirty message for this prim or any instancer includes this locator, we need to refetch the trans...
static const HdDataSourceLocator & GetInstancedByLocator()
If a dirty message for this prim or any instancer includes this locator, we need to reconstruct UsdSk...
static const HdDataSourceLocator & GetInstanceXformLocator()
If a dirty message for any instancer includes this locator, we need to refetch the transform data sou...
VtArray< SdfPath > GetInstanceAnimationSource() const
Get skel:animationSource instance primvar value from the immediate instancer.
static const HdDataSourceLocator & GetInstanceAnimationSourceLocator()
If a dirty message for any instancer includes this locator, we need to refresh XXXXX.
const VtArray< SdfPath > & GetInstancerPaths() const
Paths of instancer contributing to the transform.
Definition: xformResolver.h:58
HdMatrixDataSourceHandle GetPrimLocalToCommonSpace() const
Data source for the transform.
UsdSkelImagingDataSourceXformResolver(HdSceneIndexBaseRefPtr const &sceneIndex, HdContainerDataSourceHandle const &primSource)
Construct from data source of relevant prim.
Represents an arbitrary dimensional rectangular container class.
Definition: array.h:213
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Definition: declarePtrs.h:58