![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
virtual CountedPointer< IRealArray > | GetCameraPositions ()=0 |
virtual unsigned int | GetCameraType ()=0 |
virtual const char * | GetClass () |
virtual real | GetFieldOfView ()=0 |
virtual unsigned int | GetNumberOfViews ()=0 |
virtual real | GetOrthographicCameraPixelSize ()=0 |
virtual real | GetPixelFieldOfView ()=0 |
virtual CountedPointer< IRealArray > | GetTargetPositions ()=0 |
virtual bool | GetUseNormalizedCoordinates ()=0 |
virtual bool | IsA (const char *type) const |
virtual void | SetCameraType (unsigned int value)=0 |
virtual void | SetCustomSphereCameraPath (int fidelity, real pitch_angle, real yaw_angle, real coverage_angle)=0 |
virtual void | SetFieldOfView (real value)=0 |
virtual void | SetOrthographicCameraPixelSize (real value)=0 |
virtual void | SetPixelFieldOfView (real value)=0 |
virtual void | SetUseNormalizedCoordinates (bool value)=0 |
virtual bool | ValidateCamera ()=0 |
![]() | |
virtual void | AddChild (ISceneNode *child)=0 |
virtual bool | CalculateExtents ()=0 |
virtual CountedPointer< ISceneMesh > | CreateChildMesh (IGeometryData *geom)=0 |
virtual CountedPointer< IScenePlane > | CreateChildPlane (const real *position_realInputDataPtr, const real *normal_realInputDataPtr)=0 |
virtual void | EvaluateDefaultGlobalTransformation (IMatrix4x4 *global_transform)=0 |
virtual CountedPointer< ISceneNode > | FindNamedChild (const char *name)=0 |
virtual CountedPointer< ISceneNode > | GetChild (rid index)=0 |
virtual unsigned int | GetChildCount ()=0 |
virtual void | GetInf (real *realReturnDataPtr)=0 |
virtual bool | GetIsFrozen ()=0 |
virtual bool | GetIsModified ()=0 |
virtual bool | GetIsVisible ()=0 |
virtual rstring | GetNodeGUID ()=0 |
virtual rstring | GetOriginalName ()=0 |
virtual CountedPointer< ISceneNode > | GetParent ()=0 |
virtual rstring | GetPath ()=0 |
virtual CountedPointer< IMatrix4x4 > | GetRelativeTransform ()=0 |
virtual CountedPointer< IScene > | GetScene ()=0 |
virtual void | GetSup (real *realReturnDataPtr)=0 |
virtual bool | HasChild (ISceneNode *child)=0 |
virtual CountedPointer< ISceneNode > | NewClone ()=0 |
virtual CountedPointer< ISceneNode > | NewCopy ()=0 |
virtual void | RemoveChild (ISceneNode *child)=0 |
virtual void | RemoveChildren ()=0 |
virtual void | RemoveFromParent ()=0 |
virtual void | SetIsFrozen (bool value)=0 |
virtual void | SetIsModified (bool value)=0 |
virtual void | SetIsVisible (bool value)=0 |
virtual void | SetNodeGUID (const char *value)=0 |
virtual void | SetOriginalName (const char *value)=0 |
![]() | |
virtual rid | AddObserver (robserver *Observer, rid EventId)=0 |
virtual void | AddRef ()=0 |
virtual rstring | GetName ()=0 |
virtual void * | GetUserComponentArea (rid userid)=0 |
virtual void | PrintInfo ()=0 |
virtual void | Release ()=0 |
virtual void | RemoveObserver (rid ObserverId)=0 |
virtual void | SetName (const char *Name)=0 |
Static Public Member Functions | |
static bool | IsClassA (const char *type) |
static ISceneCamera * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static ISceneNode * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IObject * | SafeCast (IObject *ptr) |
ISceneCamera is the camera node in the Simplygon scene graph. ISceneCamera contains settings that specify how the camera works and it contains a number of views for that type of camera. A view is a combination of a CameraPosition and a TargetPosition. The SceneCamera can contain any number of views but every element in TargetPositions has to correspond to a tuple element in CameraPosition. TargetPositions is not needed if the camera is set to being omni directional.
Definition at line 15089 of file SimplygonSDK.h.
|
pure virtual |
CameraPositions is an IRealArray (with tuple size 3) where each tuple is a 3d camera position.
|
pure virtual |
Specifies the camera type. SG_CAMERATYPE_PERSPECTIVE - A regular camera that uses the FieldOfView. SG_CAMERATYPE_OMNIDIRECTIONAL - An omni directional camera view all directions from its position and ignores the TargetPositions and FieldOfView. SG_CAMERATYPE_ORTHOGRAPHIC - Orthographic cameras render the scene in a direction determined by the vector from CameraPositions to TargetPositions, it uses OrthographicCameraPixelSize and ignores the FieldOfView and UseNormalizedCoordinates.
|
virtual |
GetClass returns the name of the class of the object.
Reimplemented from SimplygonSDK::ISceneNode.
|
pure virtual |
The field of view (in radians) of the camera.
|
pure virtual |
Returns the number of views.
|
pure virtual |
Specifies the length of the side of a square pixel if the camera type is SG_CAMERATYPE_ORTHOGRAPHIC.
|
pure virtual |
Determines the resolution by specifying the field of view per pixel (both vertically and horizontally) if the camera type is SG_CAMERATYPE_PERSPECTIVE or SG_CAMERATYPE_PERSPECTIVE_OMNIDIRECTIONAL. For instance, if the camera type is SG_CAMERATYPE_PERSPECTIVE and has PI/2 radians field of view (for the entire camera) and the pixel field of view is (PI/2)/512 the camera will have 512x512 pixels.
|
pure virtual |
TargetPositions is an IRealArray (with tuple size 3) where each tuple is a 3d camera target position.
|
pure virtual |
Normalized coordinates means that the coordinates are relative to the scene: the origin is in the center of the scene and 1 unit length is the distance of the scene radius. This can be used to have cameras in front of or above the scene for instance without having to know the coordinates of the scene. If set to false, then absolute coordinates will be used instead.
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the object is, or is a descendant of |
Reimplemented from SimplygonSDK::ISceneNode.
|
inlinestatic |
The IsClassA function returns true if ISceneCamera is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the class is, or is a descendant of |
Definition at line 15110 of file SimplygonSDK.h.
|
inlinestatic |
SafeCast makes sure the pointer is of a class that can be cast into a ISceneCamera pointer, and if this is possible, returns the cast pointer.
ptr | is the pointer to be cast into a ISceneCamera pointer |
Definition at line 15123 of file SimplygonSDK.h.
|
pure virtual |
Specifies the camera type. SG_CAMERATYPE_PERSPECTIVE - A regular camera that uses the FieldOfView. SG_CAMERATYPE_OMNIDIRECTIONAL - An omni directional camera view all directions from its position and ignores the TargetPositions and FieldOfView. SG_CAMERATYPE_ORTHOGRAPHIC - Orthographic cameras render the scene in a direction determined by the vector from CameraPositions to TargetPositions, it uses OrthographicCameraPixelSize and ignores the FieldOfView and UseNormalizedCoordinates.
value | the desired CameraType |
|
pure virtual |
Creates a set of camera views placed on a custom sphere around the center of the scene.
fidelity | determines both the resolution and the amount of cameras and should be between 0 and 10. |
pitch_angle | amount of degrees the sphere should be pitch rotated |
yaw_angle | amount of degrees the sphere should be yaw rotated |
coverage_angle | 360° would be entire sphere, 180° would be hemisphere, 0° would be no sphere. |
|
pure virtual |
The field of view (in radians) of the camera.
value | the desired FieldOfView value |
|
pure virtual |
Specifies the length of the side of a square pixel if the camera type is SG_CAMERATYPE_ORTHOGRAPHIC.
value | the desired OrthographicCameraPixelSize value |
|
pure virtual |
Determines the resolution by specifying the field of view per pixel (both vertically and horizontally) if the camera type is SG_CAMERATYPE_PERSPECTIVE or SG_CAMERATYPE_PERSPECTIVE_OMNIDIRECTIONAL. For instance, if the camera type is SG_CAMERATYPE_PERSPECTIVE and has PI/2 radians field of view (for the entire camera) and the pixel field of view is (PI/2)/512 the camera will have 512x512 pixels.
value | the desired PixelFieldOfView value |
|
pure virtual |
Normalized coordinates means that the coordinates are relative to the scene: the origin is in the center of the scene and 1 unit length is the distance of the scene radius. This can be used to have cameras in front of or above the scene for instance without having to know the coordinates of the scene. If set to false, then absolute coordinates will be used instead.
value | the desired UseNormalizedCoordinates flag |
|
pure virtual |
Validates the camera properties. Asserts on invalid ISceneCamera.