All Classes Files Functions Variables Pages
physxCameraFollowAPI.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef PHYSXSCHEMA_GENERATED_PHYSXCAMERAFOLLOWAPI_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXCAMERAFOLLOWAPI_H
26 
28 
29 #include "pxr/pxr.h"
30 #include ".//api.h"
31 #include "pxr/usd/usd/apiSchemaBase.h"
32 #include "pxr/usd/usd/prim.h"
33 #include "pxr/usd/usd/stage.h"
34 #include ".//tokens.h"
35 
36 #include "pxr/base/vt/value.h"
37 
38 #include "pxr/base/gf/vec3d.h"
39 #include "pxr/base/gf/vec3f.h"
40 #include "pxr/base/gf/matrix4d.h"
41 
42 #include "pxr/base/tf/token.h"
43 #include "pxr/base/tf/type.h"
44 
45 PXR_NAMESPACE_OPEN_SCOPE
46 
47 class SdfAssetPath;
48 
49 // -------------------------------------------------------------------------- //
50 // PHYSXCAMERAFOLLOWAPI //
51 // -------------------------------------------------------------------------- //
52 
57 class PhysxSchemaPhysxCameraFollowAPI : public UsdAPISchemaBase
58 {
59 public:
63  static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
64 
69  explicit PhysxSchemaPhysxCameraFollowAPI(const UsdPrim& prim=UsdPrim())
70  : UsdAPISchemaBase(prim)
71  {
72  }
73 
77  explicit PhysxSchemaPhysxCameraFollowAPI(const UsdSchemaBase& schemaObj)
78  : UsdAPISchemaBase(schemaObj)
79  {
80  }
81 
83  PHYSXSCHEMA_API
85 
89  PHYSXSCHEMA_API
90  static const TfTokenVector &
91  GetSchemaAttributeNames(bool includeInherited=true);
92 
102  PHYSXSCHEMA_API
104  Get(const UsdStagePtr &stage, const SdfPath &path);
105 
106 
123  PHYSXSCHEMA_API
124  static bool
125  CanApply(const UsdPrim &prim, std::string *whyNot=nullptr);
126 
142  PHYSXSCHEMA_API
144  Apply(const UsdPrim &prim);
145 
146 protected:
150  PHYSXSCHEMA_API
151  UsdSchemaKind _GetSchemaKind() const override;
152 
153 private:
154  // needs to invoke _GetStaticTfType.
155  friend class UsdSchemaRegistry;
156  PHYSXSCHEMA_API
157  static const TfType &_GetStaticTfType();
158 
159  static bool _IsTypedSchema();
160 
161  // override SchemaBase virtuals.
162  PHYSXSCHEMA_API
163  const TfType &_GetTfType() const override;
164 
165 public:
166  // --------------------------------------------------------------------- //
167  // YAWANGLE
168  // --------------------------------------------------------------------- //
176  PHYSXSCHEMA_API
177  UsdAttribute GetYawAngleAttr() const;
178 
184  PHYSXSCHEMA_API
185  UsdAttribute CreateYawAngleAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
186 
187 public:
188  // --------------------------------------------------------------------- //
189  // PITCHANGLE
190  // --------------------------------------------------------------------- //
198  PHYSXSCHEMA_API
199  UsdAttribute GetPitchAngleAttr() const;
200 
206  PHYSXSCHEMA_API
207  UsdAttribute CreatePitchAngleAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
208 
209 public:
210  // --------------------------------------------------------------------- //
211  // PITCHANGLETIMECONSTANT
212  // --------------------------------------------------------------------- //
220  PHYSXSCHEMA_API
221  UsdAttribute GetPitchAngleTimeConstantAttr() const;
222 
228  PHYSXSCHEMA_API
229  UsdAttribute CreatePitchAngleTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
230 
231 public:
232  // --------------------------------------------------------------------- //
233  // SLOWSPEEDPITCHANGLESCALE
234  // --------------------------------------------------------------------- //
242  PHYSXSCHEMA_API
243  UsdAttribute GetSlowSpeedPitchAngleScaleAttr() const;
244 
250  PHYSXSCHEMA_API
251  UsdAttribute CreateSlowSpeedPitchAngleScaleAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
252 
253 public:
254  // --------------------------------------------------------------------- //
255  // SLOWPITCHANGLESPEED
256  // --------------------------------------------------------------------- //
264  PHYSXSCHEMA_API
265  UsdAttribute GetSlowPitchAngleSpeedAttr() const;
266 
272  PHYSXSCHEMA_API
273  UsdAttribute CreateSlowPitchAngleSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
274 
275 public:
276  // --------------------------------------------------------------------- //
277  // VELOCITYNORMALMINSPEED
278  // --------------------------------------------------------------------- //
286  PHYSXSCHEMA_API
287  UsdAttribute GetVelocityNormalMinSpeedAttr() const;
288 
294  PHYSXSCHEMA_API
295  UsdAttribute CreateVelocityNormalMinSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
296 
297 public:
298  // --------------------------------------------------------------------- //
299  // FOLLOWMINSPEED
300  // --------------------------------------------------------------------- //
308  PHYSXSCHEMA_API
309  UsdAttribute GetFollowMinSpeedAttr() const;
310 
316  PHYSXSCHEMA_API
317  UsdAttribute CreateFollowMinSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
318 
319 public:
320  // --------------------------------------------------------------------- //
321  // FOLLOWMINDISTANCE
322  // --------------------------------------------------------------------- //
330  PHYSXSCHEMA_API
331  UsdAttribute GetFollowMinDistanceAttr() const;
332 
338  PHYSXSCHEMA_API
339  UsdAttribute CreateFollowMinDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
340 
341 public:
342  // --------------------------------------------------------------------- //
343  // FOLLOWMAXSPEED
344  // --------------------------------------------------------------------- //
352  PHYSXSCHEMA_API
353  UsdAttribute GetFollowMaxSpeedAttr() const;
354 
360  PHYSXSCHEMA_API
361  UsdAttribute CreateFollowMaxSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
362 
363 public:
364  // --------------------------------------------------------------------- //
365  // FOLLOWMAXDISTANCE
366  // --------------------------------------------------------------------- //
374  PHYSXSCHEMA_API
375  UsdAttribute GetFollowMaxDistanceAttr() const;
376 
382  PHYSXSCHEMA_API
383  UsdAttribute CreateFollowMaxDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
384 
385 public:
386  // --------------------------------------------------------------------- //
387  // YAWRATETIMECONSTANT
388  // --------------------------------------------------------------------- //
396  PHYSXSCHEMA_API
397  UsdAttribute GetYawRateTimeConstantAttr() const;
398 
404  PHYSXSCHEMA_API
405  UsdAttribute CreateYawRateTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
406 
407 public:
408  // --------------------------------------------------------------------- //
409  // FOLLOWTURNRATEGAIN
410  // --------------------------------------------------------------------- //
418  PHYSXSCHEMA_API
419  UsdAttribute GetFollowTurnRateGainAttr() const;
420 
426  PHYSXSCHEMA_API
427  UsdAttribute CreateFollowTurnRateGainAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
428 
429 public:
430  // --------------------------------------------------------------------- //
431  // CAMERAPOSITIONTIMECONSTANT
432  // --------------------------------------------------------------------- //
440  PHYSXSCHEMA_API
441  UsdAttribute GetCameraPositionTimeConstantAttr() const;
442 
448  PHYSXSCHEMA_API
449  UsdAttribute CreateCameraPositionTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
450 
451 public:
452  // --------------------------------------------------------------------- //
453  // POSITIONOFFSET
454  // --------------------------------------------------------------------- //
462  PHYSXSCHEMA_API
463  UsdAttribute GetPositionOffsetAttr() const;
464 
470  PHYSXSCHEMA_API
471  UsdAttribute CreatePositionOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
472 
473 public:
474  // --------------------------------------------------------------------- //
475  // LOOKAHEADMINSPEED
476  // --------------------------------------------------------------------- //
484  PHYSXSCHEMA_API
485  UsdAttribute GetLookAheadMinSpeedAttr() const;
486 
492  PHYSXSCHEMA_API
493  UsdAttribute CreateLookAheadMinSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
494 
495 public:
496  // --------------------------------------------------------------------- //
497  // LOOKAHEADMINDISTANCE
498  // --------------------------------------------------------------------- //
506  PHYSXSCHEMA_API
507  UsdAttribute GetLookAheadMinDistanceAttr() const;
508 
514  PHYSXSCHEMA_API
515  UsdAttribute CreateLookAheadMinDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
516 
517 public:
518  // --------------------------------------------------------------------- //
519  // LOOKAHEADMAXSPEED
520  // --------------------------------------------------------------------- //
528  PHYSXSCHEMA_API
529  UsdAttribute GetLookAheadMaxSpeedAttr() const;
530 
536  PHYSXSCHEMA_API
537  UsdAttribute CreateLookAheadMaxSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
538 
539 public:
540  // --------------------------------------------------------------------- //
541  // LOOKAHEADMAXDISTANCE
542  // --------------------------------------------------------------------- //
550  PHYSXSCHEMA_API
551  UsdAttribute GetLookAheadMaxDistanceAttr() const;
552 
558  PHYSXSCHEMA_API
559  UsdAttribute CreateLookAheadMaxDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
560 
561 public:
562  // --------------------------------------------------------------------- //
563  // LOOKAHEADTURNRATEGAIN
564  // --------------------------------------------------------------------- //
572  PHYSXSCHEMA_API
573  UsdAttribute GetLookAheadTurnRateGainAttr() const;
574 
580  PHYSXSCHEMA_API
581  UsdAttribute CreateLookAheadTurnRateGainAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
582 
583 public:
584  // --------------------------------------------------------------------- //
585  // LOOKPOSITIONHEIGHT
586  // --------------------------------------------------------------------- //
594  PHYSXSCHEMA_API
595  UsdAttribute GetLookPositionHeightAttr() const;
596 
602  PHYSXSCHEMA_API
603  UsdAttribute CreateLookPositionHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
604 
605 public:
606  // --------------------------------------------------------------------- //
607  // LOOKPOSITIONTIMECONSTANT
608  // --------------------------------------------------------------------- //
616  PHYSXSCHEMA_API
617  UsdAttribute GetLookPositionTimeConstantAttr() const;
618 
624  PHYSXSCHEMA_API
625  UsdAttribute CreateLookPositionTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
626 
627 public:
628  // ===================================================================== //
629  // Feel free to add custom code below this line, it will be preserved by
630  // the code generator.
631  //
632  // Just remember to:
633  // - Close the class declaration with };
634  // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
635  // - Close the include guard with #endif
636  // ===================================================================== //
637  // --(BEGIN CUSTOM CODE)--
638 };
639 
640 PXR_NAMESPACE_CLOSE_SCOPE
641 
642 #endif
PHYSXSCHEMA_API UsdAttribute CreateFollowMinDistanceAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFollowMinDistanceAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateFollowMinSpeedAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFollowMinSpeedAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetFollowTurnRateGainAttr() const
A scale factor that multiplies the filtered yaw rate to yaw the camera position behind the subject...
PHYSXSCHEMA_API UsdAttribute CreatePositionOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPositionOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateLookAheadMaxDistanceAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLookAheadMaxDistanceAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetLookAheadTurnRateGainAttr() const
A scale factor that multiplies the filtered yaw rate to yaw the camera look point left or right...
PHYSXSCHEMA_API UsdAttribute GetFollowMinDistanceAttr() const
The minimum distance used for a linear interpolation to compute the follow distance of the camera...
PHYSXSCHEMA_API UsdAttribute CreateCameraPositionTimeConstantAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetCameraPositionTimeConstantAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs C...
PHYSXSCHEMA_API UsdAttribute GetSlowPitchAngleSpeedAttr() const
Scale of the camera pitch angle at slow speed.
PHYSXSCHEMA_API UsdAttribute CreateSlowPitchAngleSpeedAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSlowPitchAngleSpeedAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetLookAheadMaxSpeedAttr() const
The maximum speed used for a linear interpolation to compute the look ahead distance of the camera lo...
PHYSXSCHEMA_API UsdAttribute GetCameraPositionTimeConstantAttr() const
Filter time constant for the position of the camera for each axis, in seconds.
PHYSXSCHEMA_API UsdAttribute CreatePitchAngleAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPitchAngleAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateYawRateTimeConstantAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetYawRateTimeConstantAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateFollowMaxSpeedAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFollowMaxSpeedAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PhysxSchemaPhysxCameraFollowAPI(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxCameraFollowAPI on UsdPrim prim .
PHYSXSCHEMA_API UsdAttribute CreateFollowMaxDistanceAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFollowMaxDistanceAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static PHYSXSCHEMA_API bool CanApply(const UsdPrim &prim, std::string *whyNot=nullptr)
Returns true if this single-apply API schema can be applied to the given prim.
PHYSXSCHEMA_API UsdAttribute CreateLookPositionTimeConstantAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLookPositionTimeConstantAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Cre...
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxCameraFollowAPI()
Destructor.
PHYSXSCHEMA_API UsdAttribute GetYawRateTimeConstantAttr() const
Time constant to filter the subject yaw rate, in seconds.
PHYSXSCHEMA_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
static PHYSXSCHEMA_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...
PHYSXSCHEMA_API UsdAttribute GetLookAheadMinSpeedAttr() const
The minimum speed used for a linear interpolation to compute the look ahead distance of the camera lo...
PHYSXSCHEMA_API UsdAttribute CreateSlowSpeedPitchAngleScaleAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSlowSpeedPitchAngleScaleAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Cre...
PHYSXSCHEMA_API UsdAttribute GetLookPositionHeightAttr() const
Distance to elevate the camera look point.
PHYSXSCHEMA_API UsdAttribute GetLookAheadMaxDistanceAttr() const
The maximum distance used for a linear interpolation to compute the look ahead distance of the camera...
PHYSXSCHEMA_API UsdAttribute GetYawAngleAttr() const
The yaw angle of the follow vector around the subject.
PhysxSchemaPhysxCameraFollowAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxCameraFollowAPI on the prim held by schemaObj .
PHYSXSCHEMA_API UsdAttribute GetLookAheadMinDistanceAttr() const
The minimum distance used for a linear interpolation to compute the look ahead distance of the camera...
PHYSXSCHEMA_API UsdAttribute GetSlowSpeedPitchAngleScaleAttr() const
Scale of the camera pitch angle at slow speed.
PHYSXSCHEMA_API UsdAttribute CreatePitchAngleTimeConstantAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPitchAngleTimeConstantAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Creat...
PHYSXSCHEMA_API UsdAttribute CreateYawAngleAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetYawAngleAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetPositionOffsetAttr() const
Position offset from the subject center of mass from which the camera follow vector and look vector a...
PHYSXSCHEMA_API UsdAttribute CreateLookAheadMaxSpeedAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLookAheadMaxSpeedAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetFollowMinSpeedAttr() const
The minimum speed used for a linear interpolation to compute the follow distance of the camera...
PHYSXSCHEMA_API UsdAttribute CreateLookAheadTurnRateGainAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLookAheadTurnRateGainAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateLookAheadMinSpeedAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLookAheadMinSpeedAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateVelocityNormalMinSpeedAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetVelocityNormalMinSpeedAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Creat...
PHYSXSCHEMA_API UsdAttribute GetFollowMaxSpeedAttr() const
The maximum speed used for a linear interpolation to compute the follow distance of the camera...
PhysX camera that follows behind the subject as it moves.
PHYSXSCHEMA_API UsdAttribute CreateLookPositionHeightAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLookPositionHeightAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetFollowMaxDistanceAttr() const
The maximum distance used for a linear interpolation to compute the follow distance of the camera...
PHYSXSCHEMA_API UsdAttribute GetPitchAngleAttr() const
The pitch angle of the follow vector around the subject.
static PHYSXSCHEMA_API PhysxSchemaPhysxCameraFollowAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
static PHYSXSCHEMA_API PhysxSchemaPhysxCameraFollowAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxCameraFollowAPI holding the prim adhering to this schema at path on stage...
PHYSXSCHEMA_API UsdAttribute CreateLookAheadMinDistanceAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLookAheadMinDistanceAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetPitchAngleTimeConstantAttr() const
Time constant to filter the pitch angle, in seconds.
PHYSXSCHEMA_API UsdAttribute GetLookPositionTimeConstantAttr() const
Filter time constant for the camera look point, in seconds.
PHYSXSCHEMA_API UsdAttribute GetVelocityNormalMinSpeedAttr() const
The minimum speed, below which, the subject look vector must be used because the normalized velocity ...
PHYSXSCHEMA_API UsdAttribute CreateFollowTurnRateGainAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFollowTurnRateGainAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...