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

SoXtPlaneViewer — viewer component which moves the camera in a plane

Description

       The Plane viewer component allows the user to translate the camera in the viewing plane, as well as dolly
       (move foward/backward) and zoom in and out. The viewer also allows the user to roll  the  camera  (rotate
       around  the  forward  direction)  and seek to objects which will specify a new viewing plane. This viewer
       could be used for modeling, in drafting, and architectural work. The camera can be aligned to the X, Y or
       Z axes.

Inherits From

       SoXtComponent > SoXtGLWidget > SoXtRenderArea > SoXtViewer > SoXtFullViewer > SoXtPlaneViewer

Methods

SoXtPlaneViewer(Widgetparent=NULL,constchar*name=NULL,SbBoolbuildInsideParent=TRUE,SoXtFullViewer::BuildFlagflag=BUILD_ALL,SoXtViewer::Typetype=BROWSER)~SoXtPlaneViewer()
          Constructor  and  destructor which specifies the viewer type. Please refer to the SoXtViewer man pages
          for a description of the viewer types.

Name

       SoXtPlaneViewer — viewer component which moves the camera in a plane

Resources

          *SoXtPlaneViewer.decoration: on (on | off)
          *SoXtPlaneViewer.seekAnimationTime: 2.0 (float)
          *SoXtPlaneViewer.seekTo: point (point | object)
          *SoXtPlaneViewer.seekDistanceUsage: percentage (percentage | absolute)
          *SoXtPlaneViewer.zoomMin: 1.0 (float)
          *SoXtPlaneViewer.zoomMax: 179.0 (float)
          *SoXtPlaneViewer.autoClipping: on (on | off)
          *SoXtPlaneViewer.nearDistance: 2.4 (float, when autoClipping is off)
          *SoXtPlaneViewer.farDistance: 2.8 (float, when autoClipping is off)
          *SoXtPlaneViewer*BackgroundColor: black (color name or hex value)

See Also

SoXtFullViewer,SoXtViewer,SoXtComponent,SoXtRenderArea,SoXtWalkViewer,SoXtExaminerViewer,SoXtFlyViewerSoXtPlaneViewer(3IV)()

Synopsis

#include<Inventor/Xt/viewers/SoXtPlaneViewer.h>

          Methods from class SoXtPlaneViewer:

                         SoXtPlaneViewer(Widgetparent=NULL,constchar*name=NULL,SbBoolbuildInsideParent=TRUE,SoXtFullViewer::BuildFlagflag=BUILD_ALL,SoXtViewer::Typetype=BROWSER)~SoXtPlaneViewer()

          Methods from class SoXtFullViewer:

     voidsetDecoration(SbBoolonOrOff)SbBoolisDecoration()voidsetPopupMenuEnabled(SbBooltrueOrFalse)SbBoolisPopupMenuEnabled()WidgetgetAppPushButtonParent()constvoidaddAppPushButton(WidgetnewButton)voidinsertAppPushButton(WidgetnewButton,intindex)voidremoveAppPushButton(WidgetoldButton)intfindAppPushButton(WidgetoldButton)intlengthAppPushButton()WidgetgetRenderAreaWidget()

          Methods from class SoXtViewer:

     virtualvoidsetCamera(SoCamera*cam)SoCamera*getCamera()virtualvoidsetCameraType(SoTypetype)SoTypegetCameraType()virtualvoidviewAll()virtualvoidsaveHomePosition()virtualvoidresetToHomePosition()virtualvoidsetHeadlight(SbBoolonOrOff)SbBoolisHeadlight()SoDirectionalLight*getHeadlight()virtualvoidsetDrawStyle(SoXtViewer::DrawTypetype,SoXtViewer::DrawStylestyle)SoXtViewer::DrawStylegetDrawStyle(SoXtViewer::DrawTypetype)virtualvoidsetBufferingType(SoXtViewer::BufferTypetype)SoXtViewer::BufferTypegetBufferingType()virtualvoidsetViewing(SbBoolonOrOff)SbBoolisViewing()constvirtualvoidsetCursorEnabled(SbBoolonOrOff)SbBoolisCursorEnabled()constvoidsetAutoClipping(SbBoolonOrOff)SbBoolisAutoClipping()constvirtualvoidsetStereoViewing(SbBoolonOrOff)virtualSbBoolisStereoViewing()voidsetStereoOffset(floatdist)floatgetStereoOffset()voidsetDetailSeek(SbBoolonOrOff)SbBoolisDetailSeek()voidsetSeekTime(floatseconds)floatgetSeekTime()voidaddStartCallback(SoXtViewerCB*f,void*userData=NULL)voidaddFinishCallback(SoXtViewerCB*f,void*userData=NULL)voidremoveStartCallback(SoXtViewerCB*f,void*userData=NULL)voidremoveFinishCallback(SoXtViewerCB*f,void*userData=NULL)voidcopyView(TimeeventTime)voidpasteView(TimeeventTime)virtualvoidrecomputeSceneSize()

          Methods from class SoXtRenderArea:

     virtualvoidsetSceneGraph(SoNode*newScene)virtualSoNode*getSceneGraph()voidsetOverlaySceneGraph(SoNode*newScene)SoNode*getOverlaySceneGraph()voidregisterDevice(SoXtDevice*)voidunregisterDevice(SoXtDevice*)voidsetBackgroundColor(constSbColor&c)constSbColor&getBackgroundColor()constvoidsetBackgroundIndex(intindex)intgetBackgroundIndex()constvoidsetOverlayBackgroundIndex(intindex)intgetOverlayBackgroundIndex()constvoidsetColorMap(intstartIndex,intnum,constSbColor*colors)voidsetOverlayColorMap(intstartIndex,intnum,constSbColor*colors)voidsetViewportRegion(constSbViewportRegion&newRegion)constSbViewportRegion&getViewportRegion()constvoidsetTransparencyType(SoGLRenderAction::TransparencyTypetype)SoGLRenderAction::TransparencyTypegetTransparencyType()constvoidsetAntialiasing(SbBoolsmoothing,intnumPasses)voidgetAntialiasing(SbBool&smoothing,int&numPasses)constvoidsetClearBeforeRender(SbBooltrueOrFalse)SbBoolisClearBeforeRender()constvoidsetClearBeforeOverlayRender(SbBooltrueOrFalse)SbBoolisClearBeforeOverlayRender()constvoidsetAutoRedraw(SbBooltrueOrFalse)SbBoolisAutoRedraw()constvoidsetRedrawPriority(uint32_tpriority)uint32_tgetRedrawPriority()conststaticuint32_tgetDefaultRedrawPriority()voidrender()voidrenderOverlay()voidscheduleRedraw()voidscheduleOverlayRedraw()voidredrawOnSelectionChange(SoSelection*s)voidredrawOverlayOnSelectionChange(SoSelection*s)voidsetEventCallback(SoXtRenderAreaEventCB*fcn,void*userData=NULL)voidsetGLRenderAction(SoGLRenderAction*ra)SoGLRenderAction*getGLRenderAction()constvoidsetOverlayGLRenderAction(SoGLRenderAction*ra)SoGLRenderAction*getOverlayGLRenderAction()constvoidsetSceneManager(SoSceneManager*sm)SoSceneManager*getSceneManager()constvoidsetOverlaySceneManager(SoSceneManager*sm)SoSceneManager*getOverlaySceneManager()const

          Methods from class SoXtGLWidget:

     voidsetBorder(SbBoolonOrOff)SbBoolisBorder()constvirtualvoidsetDoubleBuffer(SbBoolonOrOff)SbBoolisDoubleBuffer()WindowgetNormalWindow()WindowgetOverlayWindow()GLXContextgetNormalContext()GLXContextgetOverlayContext()WidgetgetNormalWidget()WidgetgetOverlayWidget()virtualvoidsetNormalVisual(XVisualInfo*vis)XVisualInfo*getNormalVisual()virtualvoidsetOverlayVisual(XVisualInfo*vis)XVisualInfo*getOverlayVisual()voidsetDrawToFrontBufferEnable(SbBoolenableFlag)SbBoolisDrawToFrontBufferEnable()const

          Methods from class SoXtComponent:

     virtualvoidshow()virtualvoidhide()SbBoolisVisible()WidgetgetWidget()constSbBoolisTopLevelShell()constWidgetgetShellWidget()constWidgetgetParentWidget()constvoidsetSize(constSbVec2s&size)SbVec2sgetSize()Display*getDisplay()voidsetTitle(constchar*newTitle)constchar*getTitle()constvoidsetIconTitle(constchar*newIconTitle)constchar*getIconTitle()constvoidsetWindowCloseCallback(SoXtComponentCB*func,void*data=NULL)staticSoXtComponent*getComponent(Widgetw)constchar*getWidgetName()constconstchar*getClassName()const

Usage

LeftMouse:Left+MiddleMouse: Dolly in and out (gets closer to and further
          away from the object).

          MiddleMouse:Ctrl+LeftMouse: Translate up, down, left and right.

          Ctrl+MiddleMouse: Used for roll action (rotates around the viewer
          forward direction).

          <s>+click: Alternative to the Seek button. Press (but do not
          hold down) the <s> key, then click on a target object.

          RightMouse: Open the popup menu.

See Also