Loading...
Searching...
No Matches
boundableComputeExtent.h
Go to the documentation of this file.
1//
2// Copyright 2017 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_USD_GEOM_BOUNDABLE_COMPUTE_EXTENT_H
8#define PXR_USD_USD_GEOM_BOUNDABLE_COMPUTE_EXTENT_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/usdGeom/api.h"
14
15#include "pxr/base/gf/vec3f.h"
16#include "pxr/base/vt/array.h"
17
18#include "pxr/base/tf/type.h"
19
20PXR_NAMESPACE_OPEN_SCOPE
21
23class UsdTimeCode;
24
36 const UsdTimeCode&,
37 const GfMatrix4d*,
38 VtVec3fArray*);
39
72template <class PrimType>
73inline void
76{
77 static_assert(
78 std::is_base_of<UsdGeomBoundable, PrimType>::value,
79 "Prim type must derive from UsdGeomBoundable");
80
81 UsdGeomRegisterComputeExtentFunction(TfType::Find<PrimType>(), fn);
82}
83
85USDGEOM_API
86void
88 const TfType& boundableType,
90
91PXR_NAMESPACE_CLOSE_SCOPE
92
93#endif // PXR_USD_USD_GEOM_BOUNDABLE_COMPUTE_EXTENT_H
bool(*)(const UsdGeomBoundable &, const UsdTimeCode &, const GfMatrix4d *, VtVec3fArray *) UsdGeomComputeExtentFunction
Function registered with UsdGeomRegisterComputeExtentFunction for computing extents for a Boundable p...
void UsdGeomRegisterComputeExtentFunction(const UsdGeomComputeExtentFunction &fn)
Registers fn as the function to use for computing extents for Boundable prims of type PrimType by Usd...
Stores a 4x4 matrix of double elements.
Definition: matrix4d.h:71
TfType represents a dynamic runtime type.
Definition: type.h:48
Boundable introduces the ability for a prim to persistently cache a rectilinear, local-space,...
Definition: boundable.h:66
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition: timeCode.h:72