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
8#ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_XFORM_RESOLVER_H
9#define PXR_USD_IMAGING_USD_SKEL_IMAGING_XFORM_RESOLVER_H
10
11#include "pxr/usdImaging/usdSkelImaging/api.h"
12
13#include "pxr/imaging/hd/dataSourceTypeDefs.h"
14#include "pxr/imaging/hd/dataSourceLocator.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
19
43{
44public:
47 HdSceneIndexBaseRefPtr const &sceneIndex,
48 HdContainerDataSourceHandle const &primSource);
49
51 HdMatrixDataSourceHandle GetPrimLocalToCommonSpace() const;
52
56 return _instancerPaths;
57 }
58
69
70private:
71 HdSceneIndexBaseRefPtr const _sceneIndex;
72 HdContainerDataSourceHandle const _primSource;
73 const VtArray<SdfPath> _instancerPaths;
74};
75
76PXR_NAMESPACE_CLOSE_SCOPE
77
78#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:43
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...
const VtArray< SdfPath > & GetInstancerPaths() const
Paths of instancer contributing to the transform.
Definition: xformResolver.h:55
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