logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoPerspectiveCamera — perspective camera node

Action Behavior

SoGLRenderAction,SoCallbackAction,SoGetBoundingBoxAction,SoHandleEventAction,SoRayPickAction
          Sets the viewport and camera information in the state.

Description

       A  perspective  camera  defines  a  perspective  projection  from  a  viewpoint. The viewing volume for a
       perspective camera is a truncated right pyramid.

       By default, the camera is located at (0,0,1) and looks  along  the  negative  z-axis;  the  position  and
       orientation  fields  can be used to change these values. The heightAngle field defines the total vertical
       angle of the viewing volume; this and the aspectRatio field determine the horizontal angle.

Fields

SoSFFloatheightAngle
          Vertical angle of the viewing volume.

File Format/Defaults

PerspectiveCamera{viewportMappingADJUST_CAMERAposition001orientation0010aspectRatio1nearDistance1farDistance10focalDistance5heightAngle0.785398}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoCamera > SoPerspectiveCamera

Methods

SoPerspectiveCamera()
          Creates a perspective camera node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoPerspectiveCamera — perspective camera node

See Also

SbViewVolume,SoOrthographicCameraSoPerspectiveCamera(3IV)()

Synopsis

#include<Inventor/nodes/SoPerspectiveCamera.h>

          Fields from class SoPerspectiveCamera:

     SoSFFloatheightAngle

          Fields from class SoCamera:

     SoSFEnumviewportMappingSoSFVec3fpositionSoSFRotationorientationSoSFFloataspectRatioSoSFFloatnearDistanceSoSFFloatfarDistanceSoSFFloatfocalDistance

          Methods from class SoPerspectiveCamera:

                         SoPerspectiveCamera()staticSoTypegetClassTypeId()

          Methods from class SoCamera:

     voidpointAt(constSbVec3f&targetPoint)virtualvoidscaleHeight(floatscaleFactor)virtualSbViewVolumegetViewVolume(floatuseAspectRatio=0.0)constvoidviewAll(SoNode*sceneRoot,constSbViewportRegion&vpRegion,floatslack=1.0)voidviewAll(SoPath*path,constSbViewportRegion&vpRegion,floatslack=1.0)SbViewportRegiongetViewportBounds(constSbViewportRegion&region)const

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also