|
| UsdGeomCamera (const UsdPrim &prim=UsdPrim()) |
|
| UsdGeomCamera (const UsdSchemaBase &schemaObj) |
|
virtual USDGEOM_API | ~UsdGeomCamera () |
| Destructor. More...
|
|
USDGEOM_API UsdAttribute | GetProjectionAttr () const |
|
USDGEOM_API UsdAttribute | CreateProjectionAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetHorizontalApertureAttr () const |
|
USDGEOM_API UsdAttribute | CreateHorizontalApertureAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetVerticalApertureAttr () const |
|
USDGEOM_API UsdAttribute | CreateVerticalApertureAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetHorizontalApertureOffsetAttr () const |
|
USDGEOM_API UsdAttribute | CreateHorizontalApertureOffsetAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetVerticalApertureOffsetAttr () const |
|
USDGEOM_API UsdAttribute | CreateVerticalApertureOffsetAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetFocalLengthAttr () const |
|
USDGEOM_API UsdAttribute | CreateFocalLengthAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetClippingRangeAttr () const |
|
USDGEOM_API UsdAttribute | CreateClippingRangeAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetClippingPlanesAttr () const |
|
USDGEOM_API UsdAttribute | CreateClippingPlanesAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetFStopAttr () const |
|
USDGEOM_API UsdAttribute | CreateFStopAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetFocusDistanceAttr () const |
|
USDGEOM_API UsdAttribute | CreateFocusDistanceAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetStereoRoleAttr () const |
|
USDGEOM_API UsdAttribute | CreateStereoRoleAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetShutterOpenAttr () const |
|
USDGEOM_API UsdAttribute | CreateShutterOpenAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetShutterCloseAttr () const |
|
USDGEOM_API UsdAttribute | CreateShutterCloseAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetExposureAttr () const |
|
USDGEOM_API UsdAttribute | CreateExposureAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API GfCamera | GetCamera (const UsdTimeCode &time) const |
|
USDGEOM_API void | SetFromCamera (const GfCamera &camera, const UsdTimeCode &time) |
|
| UsdGeomXformable (const UsdPrim &prim=UsdPrim()) |
|
| UsdGeomXformable (const UsdSchemaBase &schemaObj) |
|
virtual USDGEOM_API | ~UsdGeomXformable () |
| Destructor. More...
|
|
USDGEOM_API UsdAttribute | GetXformOpOrderAttr () const |
|
USDGEOM_API UsdAttribute | CreateXformOpOrderAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdGeomXformOp | AddXformOp (UsdGeomXformOp::Type const opType, UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionDouble, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetXformOp (UsdGeomXformOp::Type const opType, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddTranslateOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionDouble, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetTranslateOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddScaleOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetScaleOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateXOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateXOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateYOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateYOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateZOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateZOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateXYZOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateXYZOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateXZYOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateXZYOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateYXZOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateYXZOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateYZXOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateYZXOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateZXYOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateZXYOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddRotateZYXOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetRotateZYXOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddOrientOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionFloat, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetOrientOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | AddTransformOp (UsdGeomXformOp::Precision const precision=UsdGeomXformOp::PrecisionDouble, TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API UsdGeomXformOp | GetTransformOp (TfToken const &opSuffix=TfToken(), bool isInverseOp=false) const |
|
USDGEOM_API bool | SetResetXformStack (bool resetXform) const |
|
USDGEOM_API bool | GetResetXformStack () const |
|
USDGEOM_API bool | SetXformOpOrder (std::vector< UsdGeomXformOp > const &orderedXformOps, bool resetXformStack=false) const |
|
USDGEOM_API std::vector
< UsdGeomXformOp > | GetOrderedXformOps (bool *resetsXformStack) const |
|
USDGEOM_API bool | ClearXformOpOrder () const |
| Clears the local transform stack. More...
|
|
USDGEOM_API UsdGeomXformOp | MakeMatrixXform () const |
|
USDGEOM_API bool | TransformMightBeTimeVarying () const |
|
USDGEOM_API bool | TransformMightBeTimeVarying (const std::vector< UsdGeomXformOp > &ops) const |
|
USDGEOM_API bool | GetTimeSamples (std::vector< double > *times) const |
|
USDGEOM_API bool | GetTimeSamplesInInterval (const GfInterval &interval, std::vector< double > *times) const |
|
USDGEOM_API bool | GetLocalTransformation (GfMatrix4d *transform, bool *resetsXformStack, const UsdTimeCode time=UsdTimeCode::Default()) const |
|
USDGEOM_API bool | GetLocalTransformation (GfMatrix4d *transform, bool *resetsXformStack, const std::vector< UsdGeomXformOp > &ops, const UsdTimeCode time=UsdTimeCode::Default()) const |
|
| UsdGeomImageable (const UsdPrim &prim=UsdPrim()) |
|
| UsdGeomImageable (const UsdSchemaBase &schemaObj) |
|
virtual USDGEOM_API | ~UsdGeomImageable () |
| Destructor. More...
|
|
USDGEOM_API UsdAttribute | GetVisibilityAttr () const |
|
USDGEOM_API UsdAttribute | CreateVisibilityAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdAttribute | GetPurposeAttr () const |
|
USDGEOM_API UsdAttribute | CreatePurposeAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
|
USDGEOM_API UsdRelationship | GetProxyPrimRel () const |
|
USDGEOM_API UsdRelationship | CreateProxyPrimRel () const |
|
USDGEOM_API void | MakeVisible (const UsdTimeCode &time=UsdTimeCode::Default()) const |
|
USDGEOM_API void | MakeInvisible (const UsdTimeCode &time=UsdTimeCode::Default()) const |
|
USDGEOM_API TfToken | ComputeVisibility (UsdTimeCode const &time=UsdTimeCode::Default()) const |
|
USDGEOM_API UsdAttribute | GetPurposeVisibilityAttr (const TfToken &purpose=UsdGeomTokens->default_) const |
|
USDGEOM_API TfToken | ComputeEffectiveVisibility (const TfToken &purpose=UsdGeomTokens->default_, const UsdTimeCode &time=UsdTimeCode::Default()) const |
|
USDGEOM_API PurposeInfo | ComputePurposeInfo () const |
|
USDGEOM_API PurposeInfo | ComputePurposeInfo (const PurposeInfo &parentPurposeInfo) const |
|
USDGEOM_API TfToken | ComputePurpose () const |
|
USDGEOM_API UsdPrim | ComputeProxyPrim (UsdPrim *renderPrim=NULL) const |
|
USDGEOM_API bool | SetProxyPrim (const UsdPrim &proxy) const |
|
USDGEOM_API bool | SetProxyPrim (const UsdSchemaBase &proxy) const |
|
USDGEOM_API GfBBox3d | ComputeWorldBound (UsdTimeCode const &time, TfToken const &purpose1=TfToken(), TfToken const &purpose2=TfToken(), TfToken const &purpose3=TfToken(), TfToken const &purpose4=TfToken()) const |
|
USDGEOM_API GfBBox3d | ComputeLocalBound (UsdTimeCode const &time, TfToken const &purpose1=TfToken(), TfToken const &purpose2=TfToken(), TfToken const &purpose3=TfToken(), TfToken const &purpose4=TfToken()) const |
|
USDGEOM_API GfBBox3d | ComputeUntransformedBound (UsdTimeCode const &time, TfToken const &purpose1=TfToken(), TfToken const &purpose2=TfToken(), TfToken const &purpose3=TfToken(), TfToken const &purpose4=TfToken()) const |
|
USDGEOM_API GfMatrix4d | ComputeLocalToWorldTransform (UsdTimeCode const &time) const |
|
USDGEOM_API GfMatrix4d | ComputeParentToWorldTransform (UsdTimeCode const &time) const |
|
| UsdTyped (const UsdPrim &prim=UsdPrim()) |
|
| UsdTyped (const UsdSchemaBase &schemaObj) |
|
virtual USD_API | ~UsdTyped () |
| Destructor. More...
|
|
bool | IsConcrete () const |
|
bool | IsTyped () const |
|
bool | IsAPISchema () const |
| Returns whether this is an API schema or not. More...
|
|
bool | IsAppliedAPISchema () const |
|
bool | IsMultipleApplyAPISchema () const |
|
UsdSchemaKind | GetSchemaKind () const |
| Returns the kind of schema this class is. More...
|
|
USD_API | UsdSchemaBase (const UsdPrim &prim=UsdPrim()) |
| Construct and store prim as the held prim. More...
|
|
USD_API | UsdSchemaBase (const UsdSchemaBase &otherSchema) |
| Construct and store for the same prim held by otherSchema . More...
|
|
virtual USD_API | ~UsdSchemaBase () |
| Destructor. More...
|
|
USD_API | operator bool () const |
|
UsdPrim | GetPrim () const |
| Return this schema object's held prim. More...
|
|
SdfPath | GetPath () const |
| Shorthand for GetPrim()->GetPath(). More...
|
|
USD_API const UsdPrimDefinition * | GetSchemaClassPrimDefinition () const |
|
Transformable camera.
Describes optical properties of a camera via a common set of attributes that provide control over the camera's frustum as well as its depth of field. For stereo, the left and right camera are individual prims tagged through the stereoRole attribute.
There is a corresponding class GfCamera, which can hold the state of a camera (at a particular time). UsdGeomCamera::GetCamera() and UsdGeomCamera::SetFromCamera() convert between a USD camera prim and a GfCamera.
To obtain the camera's location in world space, call the following on a UsdGeomCamera 'camera':
- Note
- Cameras in USD are always "Y up", regardless of the stage's orientation (i.e. UsdGeomGetStageUpAxis()). This means that the inverse of 'camXform' (the VIEW half of the MODELVIEW transform in OpenGL parlance) will transform the world such that the camera is at the origin, looking down the -Z axis, with +Y as the up axis, and +X pointing to the right. This describes a right handed coordinate system.
Units of Measure for Camera Properties
Despite the familiarity of millimeters for specifying some physical camera properties, UsdGeomCamera opts for greater consistency with all other UsdGeom schemas, which measure geometric properties in scene units, as determined by UsdGeomGetStageMetersPerUnit(). We do make a concession, however, in that lens and filmback properties are measured in tenths of a scene unit rather than "raw" scene units. This means that with the fallback value of .01 for metersPerUnit - i.e. scene unit of centimeters - then these "tenth of scene unit" properties are effectively millimeters.
- Note
- If one adds a Camera prim to a UsdStage whose scene unit is not centimeters, the fallback values for filmback properties will be incorrect (or at the least, unexpected) in an absolute sense; however, proper imaging through a "default camera" with focusing disabled depends only on ratios of the other properties, so the camera is still usable. However, it follows that if even one property is authored in the correct scene units, then they all must be.
- See Also
- UsdGeom_LinAlgBasics
For any described attribute Fallback Value or Allowed Values below that are text/tokens, the actual token is published and defined in UsdGeomTokens. So to set an attribute to the value "rightHanded", use UsdGeomTokens->rightHanded as the value.
Definition at line 111 of file camera.h.