13 #ifndef _FBXSDK_SCENE_GEOMETRY_CAMERA_H_
14 #define _FBXSDK_SCENE_GEOMETRY_CAMERA_H_
90 void SetFormat(EFormat pFormat);
95 EFormat GetFormat()
const;
116 void SetAspect(EAspectRatioMode pRatioMode,
double pWidth,
double pHeight);
121 EAspectRatioMode GetAspectRatioMode()
const;
128 void SetPixelRatio(
double pRatio);
133 double GetPixelRatio()
const;
142 void SetNearPlane(
double pDistance);
149 double GetNearPlane()
const;
158 void SetFarPlane(
double pDistance);
165 double GetFarPlane()
const;
204 void SetApertureFormat(EApertureFormat pFormat);
209 EApertureFormat GetApertureFormat()
const;
227 void SetApertureMode(EApertureMode pMode);
232 EApertureMode GetApertureMode()
const;
239 void SetApertureWidth(
double pWidth);
244 double GetApertureWidth()
const;
251 void SetApertureHeight(
double pHeight);
256 double GetApertureHeight()
const;
263 void SetSqueezeRatio(
double pRatio);
268 double GetSqueezeRatio()
const;
293 double ComputeFieldOfView(
double pFocalLength)
const;
300 double ComputeFocalLength(
double pAngleOfView)
const;
334 void SetBackgroundFileName(
const char* pFileName);
341 const char* GetBackgroundFileName()
const;
349 void SetBackgroundMediaName(
const char* pFileName);
356 const char* GetBackgroundMediaName()
const;
364 void SetForegroundFileName(
const char* pFileName);
371 const char* GetForegroundFileName()
const;
379 void SetForegroundMediaName(
const char* pFileName);
386 const char* GetForegroundMediaName()
const;
402 void SetBackgroundAlphaTreshold(
double pThreshold);
408 double GetBackgroundAlphaTreshold()
const;
414 void SetBackPlateFitImage(
bool pFitImage);
420 bool GetBackPlateFitImage()
const;
427 void SetBackPlateCrop(
bool pCrop);
434 bool GetBackPlateCrop()
const;
440 void SetBackPlateCenter(
bool pCenter);
446 bool GetBackPlateCenter()
const;
453 void SetBackPlateKeepRatio(
bool pKeepRatio);
460 bool GetBackPlateKeepRatio()
const;
467 void SetShowFrontPlate(
bool pEnable);
474 bool GetShowFrontPlate()
const;
480 void SetFrontPlateFitImage(
bool pFrontPlateFitImage);
486 bool GetFrontPlateFitImage()
const;
493 void SetFrontPlateCrop(
bool pFrontPlateCrop);
500 bool GetFrontPlateCrop()
const;
506 void SetFrontPlateCenter(
bool pFrontPlateCenter);
512 bool GetFrontPlateCenter()
const;
519 void SetFrontPlateKeepRatio(
bool pFrontPlateKeepRatio);
526 bool GetFrontPlateKeepRatio()
const;
531 void SetForegroundOpacity(
double pOpacity);
536 double GetForegroundOpacity()
const;
541 void SetForegroundTexture(
FbxTexture* pTexture);
560 void SetBackPlaneDistanceMode(EFrontBackPlaneDistanceMode pMode);
565 EFrontBackPlaneDistanceMode GetBackPlaneDistanceMode()
const;
573 void SetFrontPlaneDistance(
double pDistance);
578 double GetFrontPlaneDistance()
const;
583 void SetFrontPlaneDistanceMode(EFrontBackPlaneDistanceMode pMode);
588 EFrontBackPlaneDistanceMode GetFrontPlaneDistanceMode()
const;
603 void SetViewFrustumFrontPlaneMode(EFrontBackPlaneDisplayMode pMode);
608 EFrontBackPlaneDisplayMode GetViewFrustumFrontPlaneMode()
const;
614 void SetViewFrustumBackPlaneMode(EFrontBackPlaneDisplayMode pMode);
619 EFrontBackPlaneDisplayMode GetViewFrustumBackPlaneMode()
const;
633 void SetViewCameraInterest(
bool pEnable);
638 bool GetViewCameraInterest()
const;
643 void SetViewNearFarPlanes(
bool pEnable);
648 bool GetViewNearFarPlanes()
const;
699 eFocusSrcCameraInterest,
701 eFocusSpecificDistance
730 FbxMatrix ComputeProjectionMatrix(
const int pWidth,
const int pHeight,
const bool pVerticalFOV =
true)
const;
753 FbxMatrix ComputeWorldToScreen(
int pPixelWidth,
int pPixelHeight,
const FbxAMatrix& pWorldToCamera)
const;
1858 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1866 double ComputePixelRatio(
FbxUInt pWidth,
FbxUInt pHeight,
double pScreenRatio = 1.3333333333);
FbxPropertyT< FbxReference > BackgroundTexture
This property has the background texture connected to it.
Film Size: 0.825, 0.446 inches.
Film Size: 0.980, 0.735 inches.
FbxPropertyT< EFrontBackPlaneDisplayMode > ViewFrustumFrontPlaneMode
This property handles the front plane mode.
FbxPropertyT< FbxBool > DisplayTurnTableIcon
This property handles a flag that indicates if the camera displays the Turn Table icon or not...
#define FBXSDK_OBJECT_DECLARE(Class, Parent)
Macro used to declare a new class derived from FbxObject.
FbxPropertyT< EFrontBackPlaneDisplayMode > ViewFrustumBackPlaneMode
This property handles the back plane display mode.
FbxPropertyT< FbxBool > BackPlateCrop
This property handles the crop flag of back plane.
FbxPropertyT< FbxDouble > FilmRollValue
This property handles the amount of rotation around the film back.
FBX SDK environment definition.
FbxPropertyT< FbxDouble > FarPlane
This property handles the far plane distance.
FbxPropertyT< EApertureMode > ApertureMode
This property handles the aperture mode.
FbxPropertyT< FbxDouble > BackPlaneScaleY
This property handles the back plane scaling Y.
FbxPropertyT< FbxBool > ShowBackplate
This property handles the flag to show back plane or not.
FbxPropertyT< FbxDouble3 > FrameColor
This property is used to define the color of the border around the camera view.
FbxPropertyT< FbxDouble > FilmSqueezeRatio
This property handles the film aperture squeeze ratio.
EApertureFormat
Camera's aperture formats.
Film Size: 2.080, 1.480 inches.
FbxPropertyT< FbxDouble3 > Position
This property handles the camera's position (XYZ coordinates).
FbxPropertyT< FbxBool > FrontPlateKeepRatio
This property handles the keep ratio flag of front plane.
FbxPropertyT< FbxReference > ForegroundTexture
This property has the foreground texture connected to it.
FbxPropertyT< FbxBool > UseMotionBlur
This property handles a flag that indicates if the camera uses motion blur or not.
Film Size: 0.493, 0.292 inches.
FbxPropertyT< FbxDouble > FocalLength
This property handles the focal length (in millimeters).
FbxPropertyT< FbxBool > ShowFrontplate
This property handles the flag to show front plane or not.
FbxPropertyT< FbxBool > DisplaySafeAreaOnRender
This property handles the flag display safe area on render or not.
EFrontBackPlaneDisplayMode
Front/back plane display modes.
EApertureMode
Camera aperture modes.
Film Size: 0.816, 0.612 inches.
FbxPropertyT< FbxDouble > TurnTable
When modeling 3D objects, you often need to review or evaluate your models during the creation proces...
FbxPropertyT< FbxDouble > Roll
This property handles the camera roll angle in degrees.
FbxPropertyT< FbxBool > ShowAzimut
This property handles the flag to show the camera's sight line or not.
FbxPropertyT< FbxDouble3 > BackgroundColor
This property handles the RGB values of the camera's background color.
Both width and height values are in pixels.
FbxPropertyT< EFormat > CameraFormat
This property handles the camera's format.
FbxPropertyT< FbxDouble > AntialiasingIntensity
This property handles the anti aliasing intensity.
EFormat
Camera formats identifiers.
Image is drawn behind models.
FbxPropertyT< ESamplingType > FrameSamplingType
This property handles the frame sampling type.
FbxPropertyT< EFocusDistanceSource > FocusSource
This property handles the focus source.
FbxPropertyT< FbxDouble > FieldOfViewY
This property handles the Y (vertical) field of view in degrees.
Both width and height values aren't relevant.
ESamplingType
Oversampling types for anti-aliasing.
Recommended computer screen format (640 by 480).
EFilmRollOrder
Specifies how the roll is applied with respect to the pivot value.
virtual FbxObject & Copy(const FbxObject &pObject)
Copy an object content into this object.
FbxPropertyT< FbxDouble > FieldOfView
This property handles the field of view in degrees.
Array that stores pairs of FbxString and a pointer.
Utility class to manipulate strings.
FbxPropertyT< EProjectionType > ProjectionType
This property handles the projection type.
FbxPropertyT< FbxDouble > FilmTranslateY
This property handles the vertical film translation.
FbxPropertyT< FbxDouble > FilmAspectRatio
This property handles the film aperture aspect ratio.
FbxPropertyT< FbxDouble > FilmRollPivotX
This property handles the horizontal pivot point used for rotating the film back. ...
Always shows the front/back plane, even if no texture has been added.
Set only the horizontal angle.
Film Size: 0.864, 0.732 inches.
FbxPropertyT< FbxDouble > AspectHeight
This property handles the camera's aspect height.
FbxPropertyT< FbxDouble > FocusDistance
This property handles the focus distance.
FbxPropertyT< FbxDouble > BackgroundAlphaTreshold
This property handles the background alpha threshold value.
FbxPropertyT< FbxBool > ShowGrid
This property handles the flag to draw floor grid or not.
FbxPropertyT< FbxDouble > NearPlane
This property handles the near plane distance.
FbxPropertyT< FbxBool > ViewFrustumNearFarPlane
This property handles to display the near and far plane or not.
Standard format for D1 PAL (720 by 576).
This class is the base class for textures, ie classes FbxFileTexture, FbxLayeredTexture and FbxProced...
FbxPropertyT< FbxBool > ShowTimeCode
This property handles the flag to show time code or not.
EType
Node attribute types.
EFocusDistanceSource
Camera focus sources, that is the focal point for the depth of field.
FbxPropertyT< FbxBool > UseRealTimeDOFAndAA
This property handles the flag to use real time Depth of Field and Anti-Aliasing or not...
Recommended format for World Wide Web production(320 by 200).
Disables the front/back plane whether a texture is being projected or not.
FbxPropertyT< EFilmRollOrder > FilmRollOrder
This property handles how the roll is applied with respect to the pivot value.
FbxPropertyT< FbxDouble > FrontPlaneDistance
This property handles the front plane distance.
FbxPropertyT< FbxDouble > PreScale
This property handles the pre-scale value.
FbxPropertyT< FbxDouble > MotionBlurIntensity
This property handles the camera's motion blur intensity (in pixels).
FbxPropertyT< FbxDouble > BackPlaneOffsetY
This property handles the back plane offset Y.
FbxPropertyT< FbxDouble > FilmOffsetY
This property handles the vertical offset from the center of the film aperture, defined by the film h...
Set only the vertical angle.
FbxPropertyT< FbxDouble > BackPlaneDistance
This property handles the back plane distance.
FbxPropertyT< EFrontBackPlaneDistanceMode > BackPlaneDistanceMode
This property handles the back plane distance mode.
EAntialiasingMethod
Anti-aliasing methods.
#define FBXSDK_TIME_INFINITE
FbxPropertyT< FbxDouble > FilmRollPivotY
This property handles the vertical pivot point used for rotating the film back.
The film size, squeeze ratio and aspect ratio has been user-specified, and matches none of the other ...
FbxPropertyT< FbxBool > ShowOpticalCenter
This property handles the flag to show optical center or not.
FbxPropertyT< FbxDouble3 > InterestPosition
This property handles the default point (XYZ coordinates) the camera is looking at.
FbxPropertyT< EApertureFormat > FilmFormat
This property handles the film aperture format.
EFbxType FbxTypeOf(const FbxCamera::EAntialiasingMethod &)
FbxPropertyT< FbxBool > LockMode
This property handles the flag to lock the camera's navigation.
Film Size: 2.066, 0.906 inches.
FbxPropertyT< FbxDouble > FilmOffsetX
This property handles the horizontal offset from the center of the film aperture, defined by the film...
FbxPropertyT< FbxBool > ViewCameraToLookAt
This property handles the camera's look-at flag.
EFbxType
Type identifier constants.
FbxPropertyT< FbxBool > ShowName
This property handles the flag to show the camera's name or not.
Fit the resolution gate horizontally within the film gate.
Class to encapsulate time units.
EAspectRatioMode
Camera's aspect ratio modes.
FbxPropertyT< FbxBool > DisplaySafeArea
This property handles the flag to display safe area or not.
The base class of most FBX objects.
FbxPropertyT< FbxDouble > _2DMagnifierZoom
This property handles the 2d magnifier zoom value.
Set the angle values for both the horizontal and vertical settings.
Film Size: 1.485, 0.991 inches.
Fit the resolution gate within the film gate.
Fit the resolution gate vertically within the film gate.
Image is drawn in front of models based on alpha channel.
FbxPropertyT< ESafeAreaStyle > SafeAreaDisplayStyle
This property handles the style to display safe area.
The film back is first rotated then translated by the pivot point value.
FbxPropertyT< FbxDouble3 > AudioColor
This property handles audio color.
FbxPropertyT< FbxDouble > FrontPlaneOffsetY
This property handles the front plane offset Y.
Fit the film gate within the resolution gate.
FbxPropertyT< FbxBool > UseAccumulationBuffer
This property handles the flag to use accumulation buffer or not.
FbxPropertyT< FbxDouble > FrontPlaneScaleX
This property handles the front plane scaling X.
Alternate World Wide Web format(320 by 240).
FbxPropertyT< FbxBool > ShowAudio
This property handles the flag to show audio or not.
FbxPropertyT< FbxDouble > _2DMagnifierX
This property handles the 2d magnifier X value.
FbxPropertyT< FbxDouble > BackPlaneOffsetX
This property handles the back plane offset X.
ERenderOptionsUsageTime
Render options usage time.
FbxPropertyT< FbxDouble > OrthoZoom
This property handles the orthographic zoom value.
FbxPropertyT< FbxBool > UseAntialiasing
This property handles the flag to use anti aliasing or not.
EGateFit
Camera's gate fit modes.
FbxPropertyT< FbxDouble > OpticalCenterY
This property handles the camera optical center Y, in pixels.
PAL standard for European television broadcast (570 by 486).
FbxPropertyT< FbxDouble > FilmWidth
This property handles the film aperture width (in inches).
FbxPropertyT< FbxBool > BackPlateCenter
This property handles the center flag of back plane.
FbxPropertyT< FbxDouble > FrontPlaneOffsetX
This property handles the front plane offset X.
FbxPropertyT< FbxBool > LockInterestNavigation
This property handles the flag to lock the camera interest's navigation.
FbxPropertyT< FbxDouble3 > UpVector
This property handles the camera's Up Vector (XYZ coordinates).
FbxPropertyT< FbxDouble > BackPlaneScaleX
This property handles the back plane scaling X.
FbxPropertyT< EAntialiasingMethod > AntialiasingMethod
This property handles the anti aliasing method.
FbxPropertyT< FbxBool > UseDepthOfField
This property handles the flag to use depth of field or not.
EProjectionType
Camera projection types.
The back plane distance is measured in relation to the camera interest.
FbxPropertyT< FbxDouble > PixelAspectRatio
This property handles the pixel aspect ratio.
FbxPropertyT< FbxBool > FrontPlateCenter
This property handles the center flag of front plane.
FbxPropertyT< EGateFit > GateFit
This property handles the gate fit mode.
A four double mathematic vector class.
FbxPropertyT< FbxDouble > FrontPlaneRotation
This property handles the front plane rotation.
FBX SDK affine matrix class.
FbxPropertyT< FbxDouble > OpticalCenterX
This property handles the camera optical center X, in pixels.
FbxPropertyT< FbxBool > FrontPlateCrop
This property handles the crop flag of front plane.
To do anti-aliasing by oversampling.
Standard format for D1 NTSC (720 by 486).
FbxPropertyT< FbxDouble > FieldOfViewX
This property handles the X (horizontal) field of view in degrees.
This node attribute contains methods for accessing the properties of a camera.
virtual FbxNodeAttribute::EType GetAttributeType() const
Return the type of node attribute.
EPlateDrawingMode
Image plate drawing modes.
FbxPropertyT< FbxDouble > ForegroundOpacity
This property handles the foreground image opacity value.
Film Size: 0.404, 0.295 inches.
EFrontBackPlaneDistanceMode
Front and BackPlane distance modes.
FbxPropertyT< FbxBool > Use2DMagnifierZoom
This property handles the flag to use 2d magnifier zoom or not.
FbxPropertyT< EAspectRatioMode > AspectRatioMode
This property handles the camera's aspect ratio mode.
FbxPropertyT< FbxBool > AutoComputeClipPlanes
This property indicates that the clip planes should be automatically computed or not.
FbxPropertyT< FbxDouble > FrontPlaneScaleY
This property handles the front plane scaling Y.
FbxPropertyT< FbxDouble > SafeAreaAspectRatio
This property handles the display aspect ratio of safe area.
FbxPropertyT< FbxDouble > FilmTranslateX
This property handles the horizontal film horizontal translation.
FbxPropertyT< EFrontBackPlaneDistanceMode > FrontPlaneDistanceMode
This property handles the front plane distance mode.
NTSC standard for North American television broadcast (640 by 480).
FbxPropertyT< FbxDouble > FocusAngle
This property handles the focus angle (in degrees).
FBX SDK basic 4x4 double matrix class.
The width value is in pixels and the height value is relative to the width value. ...
The format's width, height, or pixel ratio has been user-specified, and matches none of the other pic...
FbxPropertyT< FbxDouble > FilmHeight
This property handles the film aperture height (in inches).
ESafeAreaStyle
Camera safe area display styles.
FbxPropertyT< FbxBool > UseRealTimeMotionBlur
This property handles a flag that indicates if the camera uses real time motion blur or not...
This class is the base class to all types of node attributes.
FbxPropertyT< FbxDouble > BackPlaneRotation
This property handles the back plane rotation.
FbxPropertyT< FbxInt > FrameSamplingCount
This property handles the frame sampling count.
This template class is used to contain user properties of specific data types.
virtual void ConstructProperties(bool pForceSet)
Optional property constructor override, automatically called by default constructor.
FbxPropertyT< FbxDouble > AspectWidth
This property handles the camera's aspect width.
Film Size: 0.864, 0.630 inches.
The height value is set to 1.0 and the width value is relative to the height value.
FbxPropertyT< FbxBool > ShowInfoOnMoving
This property handles the flag to show info on moving or not.
FbxPropertyT< FbxBool > BackPlateKeepRatio
This property handles the keep ratio flag of back plane.
FbxPropertyT< FbxDouble > _2DMagnifierY
This property handles the 2d magnifier Y value.
FbxPropertyT< FbxBool > BackPlateFitImage
This property handles the fit image flag of back plane.
FbxPropertyT< FbxBool > UseFrameColor
This property stores a flag that indicates to draw a border with color around the camera's viewable a...
FbxPropertyT< FbxBool > FrontPlateFitImage
This property handles the fit image flag of front plate.