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 ".//physxCameraAPI.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 
58 {
59 public:
63  static const UsdSchemaType schemaType = UsdSchemaType::SingleApplyAPI;
64 
69  explicit PhysxSchemaPhysxCameraFollowAPI(const UsdPrim& prim=UsdPrim())
71  {
72  }
73 
77  explicit PhysxSchemaPhysxCameraFollowAPI(const UsdSchemaBase& schemaObj)
78  : PhysxSchemaPhysxCameraAPI(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 
121  PHYSXSCHEMA_API
123  Apply(const UsdPrim &prim);
124 
125 protected:
129  PHYSXSCHEMA_API
130  UsdSchemaType _GetSchemaType() const override;
131 
132 private:
133  // needs to invoke _GetStaticTfType.
134  friend class UsdSchemaRegistry;
135  PHYSXSCHEMA_API
136  static const TfType &_GetStaticTfType();
137 
138  static bool _IsTypedSchema();
139 
140  // override SchemaBase virtuals.
141  PHYSXSCHEMA_API
142  const TfType &_GetTfType() const override;
143 
144 public:
145  // --------------------------------------------------------------------- //
146  // YAWANGLE
147  // --------------------------------------------------------------------- //
155  PHYSXSCHEMA_API
156  UsdAttribute GetYawAngleAttr() const;
157 
163  PHYSXSCHEMA_API
164  UsdAttribute CreateYawAngleAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
165 
166 public:
167  // --------------------------------------------------------------------- //
168  // PITCHANGLE
169  // --------------------------------------------------------------------- //
177  PHYSXSCHEMA_API
178  UsdAttribute GetPitchAngleAttr() const;
179 
185  PHYSXSCHEMA_API
186  UsdAttribute CreatePitchAngleAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
187 
188 public:
189  // --------------------------------------------------------------------- //
190  // PITCHANGLETIMECONSTANT
191  // --------------------------------------------------------------------- //
199  PHYSXSCHEMA_API
200  UsdAttribute GetPitchAngleTimeConstantAttr() const;
201 
207  PHYSXSCHEMA_API
208  UsdAttribute CreatePitchAngleTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
209 
210 public:
211  // --------------------------------------------------------------------- //
212  // SLOWSPEEDPITCHANGLESCALE
213  // --------------------------------------------------------------------- //
221  PHYSXSCHEMA_API
222  UsdAttribute GetSlowSpeedPitchAngleScaleAttr() const;
223 
229  PHYSXSCHEMA_API
230  UsdAttribute CreateSlowSpeedPitchAngleScaleAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
231 
232 public:
233  // --------------------------------------------------------------------- //
234  // SLOWPITCHANGLESPEED
235  // --------------------------------------------------------------------- //
243  PHYSXSCHEMA_API
244  UsdAttribute GetSlowPitchAngleSpeedAttr() const;
245 
251  PHYSXSCHEMA_API
252  UsdAttribute CreateSlowPitchAngleSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
253 
254 public:
255  // --------------------------------------------------------------------- //
256  // VELOCITYNORMALMINSPEED
257  // --------------------------------------------------------------------- //
265  PHYSXSCHEMA_API
266  UsdAttribute GetVelocityNormalMinSpeedAttr() const;
267 
273  PHYSXSCHEMA_API
274  UsdAttribute CreateVelocityNormalMinSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
275 
276 public:
277  // --------------------------------------------------------------------- //
278  // FOLLOWMINSPEED
279  // --------------------------------------------------------------------- //
287  PHYSXSCHEMA_API
288  UsdAttribute GetFollowMinSpeedAttr() const;
289 
295  PHYSXSCHEMA_API
296  UsdAttribute CreateFollowMinSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
297 
298 public:
299  // --------------------------------------------------------------------- //
300  // FOLLOWMINDISTANCE
301  // --------------------------------------------------------------------- //
309  PHYSXSCHEMA_API
310  UsdAttribute GetFollowMinDistanceAttr() const;
311 
317  PHYSXSCHEMA_API
318  UsdAttribute CreateFollowMinDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
319 
320 public:
321  // --------------------------------------------------------------------- //
322  // FOLLOWMAXSPEED
323  // --------------------------------------------------------------------- //
331  PHYSXSCHEMA_API
332  UsdAttribute GetFollowMaxSpeedAttr() const;
333 
339  PHYSXSCHEMA_API
340  UsdAttribute CreateFollowMaxSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
341 
342 public:
343  // --------------------------------------------------------------------- //
344  // FOLLOWMAXDISTANCE
345  // --------------------------------------------------------------------- //
353  PHYSXSCHEMA_API
354  UsdAttribute GetFollowMaxDistanceAttr() const;
355 
361  PHYSXSCHEMA_API
362  UsdAttribute CreateFollowMaxDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
363 
364 public:
365  // --------------------------------------------------------------------- //
366  // YAWRATETIMECONSTANT
367  // --------------------------------------------------------------------- //
375  PHYSXSCHEMA_API
376  UsdAttribute GetYawRateTimeConstantAttr() const;
377 
383  PHYSXSCHEMA_API
384  UsdAttribute CreateYawRateTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
385 
386 public:
387  // --------------------------------------------------------------------- //
388  // FOLLOWTURNRATEGAIN
389  // --------------------------------------------------------------------- //
397  PHYSXSCHEMA_API
398  UsdAttribute GetFollowTurnRateGainAttr() const;
399 
405  PHYSXSCHEMA_API
406  UsdAttribute CreateFollowTurnRateGainAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
407 
408 public:
409  // --------------------------------------------------------------------- //
410  // CAMERAPOSITIONTIMECONSTANT
411  // --------------------------------------------------------------------- //
419  PHYSXSCHEMA_API
420  UsdAttribute GetCameraPositionTimeConstantAttr() const;
421 
427  PHYSXSCHEMA_API
428  UsdAttribute CreateCameraPositionTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
429 
430 public:
431  // --------------------------------------------------------------------- //
432  // POSITIONOFFSET
433  // --------------------------------------------------------------------- //
441  PHYSXSCHEMA_API
442  UsdAttribute GetPositionOffsetAttr() const;
443 
449  PHYSXSCHEMA_API
450  UsdAttribute CreatePositionOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
451 
452 public:
453  // --------------------------------------------------------------------- //
454  // LOOKAHEADMINSPEED
455  // --------------------------------------------------------------------- //
463  PHYSXSCHEMA_API
464  UsdAttribute GetLookAheadMinSpeedAttr() const;
465 
471  PHYSXSCHEMA_API
472  UsdAttribute CreateLookAheadMinSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
473 
474 public:
475  // --------------------------------------------------------------------- //
476  // LOOKAHEADMINDISTANCE
477  // --------------------------------------------------------------------- //
485  PHYSXSCHEMA_API
486  UsdAttribute GetLookAheadMinDistanceAttr() const;
487 
493  PHYSXSCHEMA_API
494  UsdAttribute CreateLookAheadMinDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
495 
496 public:
497  // --------------------------------------------------------------------- //
498  // LOOKAHEADMAXSPEED
499  // --------------------------------------------------------------------- //
507  PHYSXSCHEMA_API
508  UsdAttribute GetLookAheadMaxSpeedAttr() const;
509 
515  PHYSXSCHEMA_API
516  UsdAttribute CreateLookAheadMaxSpeedAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
517 
518 public:
519  // --------------------------------------------------------------------- //
520  // LOOKAHEADMAXDISTANCE
521  // --------------------------------------------------------------------- //
529  PHYSXSCHEMA_API
530  UsdAttribute GetLookAheadMaxDistanceAttr() const;
531 
537  PHYSXSCHEMA_API
538  UsdAttribute CreateLookAheadMaxDistanceAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
539 
540 public:
541  // --------------------------------------------------------------------- //
542  // LOOKAHEADTURNRATEGAIN
543  // --------------------------------------------------------------------- //
551  PHYSXSCHEMA_API
552  UsdAttribute GetLookAheadTurnRateGainAttr() const;
553 
559  PHYSXSCHEMA_API
560  UsdAttribute CreateLookAheadTurnRateGainAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
561 
562 public:
563  // --------------------------------------------------------------------- //
564  // LOOKPOSITIONHEIGHT
565  // --------------------------------------------------------------------- //
573  PHYSXSCHEMA_API
574  UsdAttribute GetLookPositionHeightAttr() const;
575 
581  PHYSXSCHEMA_API
582  UsdAttribute CreateLookPositionHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
583 
584 public:
585  // --------------------------------------------------------------------- //
586  // LOOKPOSITIONTIMECONSTANT
587  // --------------------------------------------------------------------- //
595  PHYSXSCHEMA_API
596  UsdAttribute GetLookPositionTimeConstantAttr() const;
597 
603  PHYSXSCHEMA_API
604  UsdAttribute CreateLookPositionTimeConstantAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
605 
606 public:
607  // ===================================================================== //
608  // Feel free to add custom code below this line, it will be preserved by
609  // the code generator.
610  //
611  // Just remember to:
612  // - Close the class declaration with };
613  // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
614  // - Close the include guard with #endif
615  // ===================================================================== //
616  // --(BEGIN CUSTOM CODE)--
617 };
618 
619 PXR_NAMESPACE_CLOSE_SCOPE
620 
621 #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 UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
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...
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.
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 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.
static const UsdSchemaType schemaType
Compile time constant representing what kind of schema this class is.
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...