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

SoOrthographicCamera — orthographic camera node

Action Behavior

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

Description

       An  orthographic  camera  defines  a  parallel projection from a viewpoint. This camera does not diminish
       objects with distance, as an SoPerspectiveCamera does. The viewing volume for an orthographic camera is a
       rectangular parallelepiped (a box).

       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 height field defines the total height of the
       viewing volume; this and the aspectRatio field determine its width.

Fields

SoSFFloatheight
          Height of the viewing volume.

File Format/Defaults

OrthographicCamera{viewportMappingADJUST_CAMERAposition001orientation0010aspectRatio1nearDistance1farDistance10focalDistance5height2}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoCamera > SoOrthographicCamera

Methods

SoOrthographicCamera()
          Creates an orthographic camera node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoOrthographicCamera — orthographic camera node

See Also

SbViewVolume,SoPerspectiveCameraSoOrthographicCamera(3IV)()

Synopsis

#include<Inventor/nodes/SoOrthographicCamera.h>

          Fields from class SoOrthographicCamera:

     SoSFFloatheight

          Fields from class SoCamera:

     SoSFEnumviewportMappingSoSFVec3fpositionSoSFRotationorientationSoSFFloataspectRatioSoSFFloatnearDistanceSoSFFloatfarDistanceSoSFFloatfocalDistance

          Methods from class SoOrthographicCamera:

                         SoOrthographicCamera()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