24 #ifndef USDGEOM_GENERATED_POINTBASED_H 25 #define USDGEOM_GENERATED_POINTBASED_H 30 #include "pxr/usd/usdGeom/api.h" 36 #include "pxr/base/vt/value.h" 43 #include "pxr/base/tf/type.h" 45 PXR_NAMESPACE_OPEN_SCOPE
105 Get(
const UsdStagePtr &stage,
const SdfPath &path);
119 static const TfType &_GetStaticTfType();
121 static bool _IsTypedSchema();
125 const TfType &_GetTfType()
const override;
289 static bool ComputeExtent(
const VtVec3fArray& points, VtVec3fArray* extent);
295 const GfMatrix4d& transform, VtVec3fArray* extent);
352 const std::vector<UsdTimeCode>& times,
381 UsdStageWeakPtr& stage,
383 const VtVec3fArray& positions,
384 const VtVec3fArray& velocities,
386 const VtVec3fArray& accelerations,
387 float velocityScale=1.0);
391 PXR_NAMESPACE_CLOSE_SCOPE
USDGEOM_API UsdAttribute CreatePointsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPointsAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
Base class for all UsdGeomGprims that possess points, providing common attributes such as normals and...
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
UsdGeomPointBased(const UsdPrim &prim=UsdPrim())
Construct a UsdGeomPointBased on UsdPrim prim .
USDGEOM_API UsdAttribute CreateNormalsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetNormalsAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
Token for efficient comparison, assignment, and hashing of known strings.
static USDGEOM_API bool ComputeExtent(const VtVec3fArray &points, VtVec3fArray *extent)
Compute the extent for the point cloud defined by points.
UsdGeomPointBased(const UsdSchemaBase &schemaObj)
Construct a UsdGeomPointBased on the prim held by schemaObj .
Stores a 4x4 matrix of double elements.
static USDGEOM_API UsdGeomPointBased Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdGeomPointBased holding the prim adhering to this schema at path on stage.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
USDGEOM_API UsdAttribute CreateAccelerationsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetAccelerationsAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDGEOM_API UsdAttribute GetVelocitiesAttr() const
If provided, 'velocities' should be used by renderers to.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
std::vector< TfToken > TfTokenVector
Convenience types.
USDGEOM_API bool ComputePointsAtTime(VtArray< GfVec3f > *points, const UsdTimeCode time, const UsdTimeCode baseTime) const
Compute points given the positions, velocities and accelerations at time.
A path value used to locate objects in layers or scenegraphs.
USDGEOM_API bool SetNormalsInterpolation(TfToken const &interpolation)
Set the interpolation for the normals attribute.
virtual USDGEOM_API ~UsdGeomPointBased()
Destructor.
USDGEOM_API UsdAttribute CreateVelocitiesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetVelocitiesAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
Contains an asset path and an optional resolved path.
USDGEOM_API UsdAttribute GetNormalsAttr() const
Provide an object-space orientation for individual points, which, depending on subclass,...
Base class for all geometric primitives.
USDGEOM_API UsdAttribute GetPointsAttr() const
The primary geometry attribute for all PointBased primitives, describes points in (local) space.
Represents a non-concrete typed schema.
TfType represents a dynamic runtime type.
Singleton registry that provides access to schema type information and the prim definitions for regis...
The base class for all schema types in Usd.
USDGEOM_API bool ComputePointsAtTimes(std::vector< VtArray< GfVec3f >> *pointsArray, const std::vector< UsdTimeCode > ×, const UsdTimeCode baseTime) const
Compute points as in ComputePointsAtTime, but using multiple sample times.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
USDGEOM_API UsdAttribute GetAccelerationsAttr() const
If provided, 'accelerations' should be used with velocities to compute positions between samples for ...
USDGEOM_API TfToken GetNormalsInterpolation() const
Get the interpolation for the normals attribute.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
static USDGEOM_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...
USDGEOM_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.