Public Types | Public Member Functions | Public Attributes | Protected Member Functions

FbxCameraStereo Class Reference

This reference page is linked to from the following overview topics: FBX Node Attributes, Cameras, List of Python Fbx classes.


Search for all occurrences

Detailed Description

This node attribute contains methods for accessing the properties of a stereo camera.

Generally, a set of stereoRig contains the center camera, the left camera and the right camera. FbxCameraStereo is used to represent the center camera. The left and right camera could be FbxCamera. FbxCameraStereo contains stereo properties. The left and right camera can also be get and set via related methods in FbxCameraStereo class.

See also:
FbxCamera and FbxCameraSwitcher.

Definition at line 30 of file fbxcamerastereo.h.

#include <fbxcamerastereo.h>

Inheritance diagram for FbxCameraStereo:
Inheritance graph
[legend]

List of all members.

Public Types

enum  EStereoType { eNone, eConverged, eOffAxis, eParallel }
 

Types of Stereo camera.

More...

Public Member Functions

virtual FbxNodeAttribute::EType GetAttributeType () const
 Return the type of node attribute which is EType::eCameraStereo.
void Reset ()
 Reset the stereo camera to default values.
FbxCameraGetLeftCamera () const
 Get the left camera which connect to property LeftCamera.
FbxCameraGetRightCamera () const
 Get the right camera which connect to property RightCamera.
bool SetLeftCamera (FbxCamera *pCamera)
 Set the left camera, connect property LeftCamera to pCamera.
bool SetRightCamera (FbxCamera *pCamera)
 Set the right camera, connect property RightCamera to pCamera.
FbxAMatrix GetLeftCameraLocalMatrix () const
 Get the local transformation matrix of left camera.
FbxAMatrix GetLeftCameraGlobalMatrix () const
 Get the global matrix of left camera.
FbxAMatrix GetRightCameraLocalMatrix () const
 Get the local transformation matrix of right camera.
FbxAMatrix GetRightCameraGlobalMatrix () const
 Get the global transformation matrix of right camera.
double ReevaluateLeftCameraFilmOffsetX () const
 Reevaluate the FilmOffsetX of left camera.
double ReevaluateRightCameraFilmOffsetX () const
 Reevaluate the FilmOffsetX of right camera.
bool ConnectProperties ()
 connect left and right camera property to stereo camera.

Public Attributes

FbxPropertyT< EStereoTypeStereo
 This property handles the types of Stereo camera.
FbxPropertyT< FbxDoubleInteraxialSeparation
 This property handles the distance between left and right cameras.
FbxPropertyT< FbxDoubleZeroParallax
 This property handles the distance on the camera view axis where the zero parallax plane occurs.
FbxPropertyT< FbxDoubleToeInAdjust
 This property is to offset the computed toe-in effect when it's in Converged mode.
FbxPropertyT< FbxDoubleFilmOffsetRightCam
 This property handles the film offset for the right camera.
FbxPropertyT< FbxDoubleFilmOffsetLeftCam
 This property handles the film offset for the left camera.
FbxPropertyT< FbxReferenceRightCamera
 This property has the right camera connected to it.
FbxPropertyT< FbxReferenceLeftCamera
 This property has the left camera connected to it.
FbxPropertyT< FbxStringPrecompFileName
 This property handles the precomp file name.
FbxPropertyT< FbxStringRelativePrecompFileName
 This property handles the relative precomp file name.

Protected Member Functions

virtual void ConstructProperties (bool pForceSet)
 Optional property constructor override, automatically called by default constructor.
virtual FbxStringList GetTypeFlags () const

Member Enumeration Documentation

Types of Stereo camera.

Enumerator:
eNone 

Disable the stereo effect.

(Default value)

eConverged 

Computes the zero parallax plane by toeing in the cameras.

eOffAxis 

Computes the convergence plane by shifting the frustum using camera film back.

eParallel 

A parallel camera setup where there is effectively no convergence plane.

Definition at line 43 of file fbxcamerastereo.h.


Member Function Documentation

virtual FbxNodeAttribute::EType GetAttributeType ( ) const [virtual]

Return the type of node attribute which is EType::eCameraStereo.

Reimplemented from FbxCamera.

void Reset ( )

Reset the stereo camera to default values.

Reimplemented from FbxCamera.

FbxCamera* GetLeftCamera ( ) const

Get the left camera which connect to property LeftCamera.

Returns:
A pointer to FbxCamera.
Remarks:
Current FbxCameraStereo should work with two FbxCamera, left camera and right camera. Use this method to get the left camera.
FbxCamera* GetRightCamera ( ) const

Get the right camera which connect to property RightCamera.

Returns:
A pointer to FbxCamera.
Remarks:
Current FbxCameraStereo should work with two FbxCamera, left camera and right camera. Use this method to get the right camera.
bool SetLeftCamera ( FbxCamera pCamera)

Set the left camera, connect property LeftCamera to pCamera.

Parameters:
pCameraThe camera to set.
Returns:
true if it's successful, false otherwise.
Remarks:
Current FbxCameraStereo should work with two FbxCamera, left camera and right camera. Use this method to set the left camera.
bool SetRightCamera ( FbxCamera pCamera)

Set the right camera, connect property RightCamera to pCamera.

Parameters:
pCameraThe camera to set.
Returns:
true if it's successful, false otherwise.
Remarks:
Current FbxCameraStereo should work with two FbxCamera, left camera and right camera. Use this method to set the right camera.
FbxAMatrix GetLeftCameraLocalMatrix ( ) const

Get the local transformation matrix of left camera.

Returns:
The local transformation matrix of left camera.
Remarks:
Use this method to reevaluate the local transformation of left camera.
FbxAMatrix GetLeftCameraGlobalMatrix ( ) const

Get the global matrix of left camera.

Returns:
The global transformation matrix of left camera.
Remarks:
Use this method to reevaluate the global transformation of left camera.
FbxAMatrix GetRightCameraLocalMatrix ( ) const

Get the local transformation matrix of right camera.

Returns:
The local transformation matrix of right camera..
Remarks:
Use this method to reevaluate the local transformation of right camera.
FbxAMatrix GetRightCameraGlobalMatrix ( ) const

Get the global transformation matrix of right camera.

Returns:
The global transformation matrix of right camera.
Remarks:
Use this method to reevaluate the global transformation of right camera.
double ReevaluateLeftCameraFilmOffsetX ( ) const

Reevaluate the FilmOffsetX of left camera.

It's computed through stereo camera properties.

Returns:
Current FilmOffsetX value.
Remarks:
This method does not set the FilmOffsetX of left camera.
double ReevaluateRightCameraFilmOffsetX ( ) const

Reevaluate the FilmOffsetX of right camera.

It's computed through stereo camera properties.

Returns:
Current FilmOffsetX value.
Remarks:
this method does not set the FilmOffsetX of right camera
bool ConnectProperties ( )

connect left and right camera property to stereo camera.

Returns:
true if it's successful, otherwise return false.
Remarks:
It's used to connect the left/right camera property [FocalLength, FarPlane, NearPlane, FilmWidth, FilmHeight, FilmSqueezeRatio] to stereo camera. During FBX SDK reevaluating, if ConnectProperties is called, to get the newest FocalLength property of left camera, please use lLeft_Camera->FocalLength.GetSrcProperty();
virtual void ConstructProperties ( bool  pForceSet) [protected, virtual]

Optional property constructor override, automatically called by default constructor.

Parameters:
pForceSetIf the property value must be set regardless of default value.
Remarks:
If your object have properties, they must be initialized in this function.

Reimplemented from FbxCamera.

virtual FbxStringList GetTypeFlags ( ) const [protected, virtual]

Member Data Documentation

This property handles the types of Stereo camera.

To access this property do: Stereo.Get(). To set this property do: Stereo.Set(EStereoType).

Remarks:
Default Value is eNone.

Definition at line 136 of file fbxcamerastereo.h.

This property handles the distance between left and right cameras.

To access this property do: InteraxialSeparation.Get(). To set this property do: InteraxialSeparation.Set(FbxDouble).

Remarks:
Default Value is 0.0.

Definition at line 145 of file fbxcamerastereo.h.

This property handles the distance on the camera view axis where the zero parallax plane occurs.

To access this property do: ZeroParallax.Get(). To set this property do: ZeroParallax.Set(FbxDouble).

Remarks:
Default Value is 0.0.

Definition at line 154 of file fbxcamerastereo.h.

This property is to offset the computed toe-in effect when it's in Converged mode.

To access this property do: ToeInAdjust.Get(). To set this property do: ToeInAdjust.Set(FbxDouble).

Remarks:
Default Value is 0.0. This value is specified in degrees and acts as an offset to the computed toe-in.
See also:
EStereoType.

Definition at line 165 of file fbxcamerastereo.h.

This property handles the film offset for the right camera.

To access this property do: FilmOffsetRightCam.Get(). To set this property do: FilmOffsetRightCam.Set(FbxDouble).

Remarks:
Default Value is 0.0.

Definition at line 174 of file fbxcamerastereo.h.

This property handles the film offset for the left camera.

To access this property do: FilmOffsetLeftCam.Get(). To set this property do: FilmOffsetLeftCam.Set(FbxDouble).

Remarks:
Default Value is 0.0.

Definition at line 183 of file fbxcamerastereo.h.

This property has the right camera connected to it.

To access this property do: GetRightCamera(). To set this property do: SetRightCamera(FbxCamera* pCamera).

Remarks:
The right camera is connected as source object.

Definition at line 192 of file fbxcamerastereo.h.

This property has the left camera connected to it.

To access this property do: GetLeftCamera(). To set this property do: SetLeftCamera(FbxCamera* pCamera).

Remarks:
The left camera is connected as source object.

Definition at line 201 of file fbxcamerastereo.h.

This property handles the precomp file name.

To access this property do: PrecompFileName.Get(). To set this property do: PrecompFileName.Set(FbxString).

Default value is ""

Definition at line 210 of file fbxcamerastereo.h.

This property handles the relative precomp file name.

To access this property do: RelativePrecompFileName.Get(). To set this property do: RelativePrecompFileName.Set(FbxString).

Default value is ""

Definition at line 219 of file fbxcamerastereo.h.


The documentation for this class was generated from the following file:

FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo
FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo FbxCameraStereo