|
|
| Line 7: |
Line 7: |
| {{TOCright}} | | {{TOCright}} |
|
| |
|
| ==Properties==
| | <!--Edit Properties, Methods, or Events in the appropriate table in one on the VI Server Templates--> |
| <span class="mw-customtoggle-propertiestable">Show/Hide SceneGraphDisplay Properties Table</span> | | {{VIServerClassTables|100}} |
| <div class="mw-collapsible" id="mw-customcollapsible-propertiestable">
| |
| {{VIServerLegend|showrw=TRUE|showrte=TRUE}}
| |
| {| class="wikitable sortable"
| |
| |+ SceneGraphDisplay Properties Table
| |
| ! Property ID
| |
| ! Short Name (English)
| |
| ! Description
| |
| ! R/W
| |
| ! RTE
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27405
| |
| | [[SceneGraphDisplay class/AutoProjection property|AutoProjection]]
| |
| |Reads or writes whether LabVIEW automatically updates the projection mode for the scene. If set to <b>Orthographic</b> or <b>Perspective</b>, LabVIEW sets up an appropriate projection based on the scene or the size of the control.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27401
| |
| | [[SceneGraphDisplay class/BackgroundColor property|BackgroundColor]]
| |
| |Reads or writes the RGBA color value for the background of the 3D scene.
| |
| | |
| {| class="wikitable"
| |
| |+ scope="col" style="text-align:left;"|Elements:
| |
| ! scope="col" style="text-align:left;"| Name
| |
| ! scope="col" style="text-align:left;"| Description
| |
| |- style="vertical-align:top;"
| |
| ! scope="row" style="text-align:left;"|Red
| |
| |Indicates the red value. Valid values include 0 through 1.
| |
| |- style="vertical-align:top;"
| |
| ! scope="row" style="text-align:left;"|Green
| |
| |Indicates the green value. Valid values include 0 through 1.
| |
| |- style="vertical-align:top;"
| |
| ! scope="row" style="text-align:left;"|Blue
| |
| |Indicates the blue value. Valid values include 0 through 1.
| |
| |- style="vertical-align:top;"
| |
| ! scope="row" style="text-align:left;"|Alpha
| |
| |Indicates the Alpha value. Set the Alpha value on the background of a 3D scene only for blending. Setting this value does not make the background of the 3D picture control transparent. Valid values include 0 through 1.
| |
| |}
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F2740C
| |
| | [[SceneGraphDisplay class/CameraController.AutoRedraw property|CameraController.AutoRedraw]]
| |
| |Reads or writes if this control becomes invalid when you use the camera controller.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27404
| |
| | [[SceneGraphDisplay class/CameraController.Type property|CameraController.Type]]
| |
| |Reads or writes the configuration of the scene camera. Click and hold the left mouse button and drag the cursor to operate the camera.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27406
| |
| | [[SceneGraphDisplay class/ContentBounds property|ContentBounds]]
| |
| |Reads or writes the bounds for the 3D picture control in which LabVIEW renders a 3D scene.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27408
| |
| | [[SceneGraphDisplay class/ContentBounds.Height property|ContentBounds.Height]]
| |
| |Reads or writes the height of the 3D picture control.
| |
| | |
| This property is an element of the Content Bounds property.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27407
| |
| | [[SceneGraphDisplay class/ContentBounds.Width property|ContentBounds.Width]]
| |
| |Reads or writes the width of the 3D picture control.
| |
| | |
| This property is an element of the Content Bounds property.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27409
| |
| | [[SceneGraphDisplay class/ContentPosition property|ContentPosition]]
| |
| |Reads or writes the position of the area in which content appears in the 3D picture control.
| |
| |R
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F2740A
| |
| | [[SceneGraphDisplay class/ContentPosition.Horizontal property|ContentPosition.Horizontal]]
| |
| |Reads or writes the horizontal position of the area in which content appears in the 3D picture control.
| |
| | |
| This property is an element of the Content Position property.
| |
| |R
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F2740B
| |
| | [[SceneGraphDisplay class/ContentPosition.Vertical property|ContentPosition.Vertical]]
| |
| |Reads or writes the vertical position of the area in which content appears in the 3D picture control.
| |
| | |
| This property is an element of the Content Position property.
| |
| |R
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27400
| |
| | [[SceneGraphDisplay class/ModelViewMatrix property|ModelViewMatrix]]
| |
| |Reads or writes a matrix that contains the translation, rotation, and scale values for the 3D scene that appears in the 3D picture control.
| |
| | |
| This property returns a 4 x 4 array of single-precision numbers.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27403
| |
| | [[SceneGraphDisplay class/ProjectionMatrix property|ProjectionMatrix]]
| |
| |Read or writes the matrix that represents the transformations LabVIEW uses to project the scene in the 3D picture control viewer.
| |
| | |
| This property returns a 4 x 4 array of single-precision numbers.
| |
| |R/W
| |
| |X
| |
| |}
| |
| </div>
| |
| | |
| ==Methods==
| |
| <span class="mw-customtoggle-methodstable">Show/Hide SceneGraphDisplay Methods Table</span>
| |
| <div class="mw-collapsible" id="mw-customcollapsible-methodstable">
| |
| {{VIServerLegend|showrte=TRUE}} | |
| {| class="wikitable sortable"
| |
| |+ SceneGraphDisplay Methods Table
| |
| ! Method ID
| |
| ! Short Name (English)
| |
| ! Description
| |
| ! RTE
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27009
| |
| | [[SceneGraphDisplay class/AutoFocus method|AutoFocus]]
| |
| |Positions the camera to view all 3D scene objects in the front panel window.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27006
| |
| | [[SceneGraphDisplay class/Pick Model method|Pick Model]]
| |
| |Casts a ray through a 3D scene at the <b>Point</b> coordinate and determines which models in the scene intersect with the ray.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27008
| |
| | [[SceneGraphDisplay class/PickPoint method|PickPoint]]
| |
| |Given an x and y coordinate, casts a ray through the 3D scene and returns the x, y, and z-coordinates of the first object the ray intersects.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27005
| |
| | [[SceneGraphDisplay class/Projection.Frustum method|Projection.Frustum]]
| |
| |Sets coordinates to render the scene in a frustum-shaped view. This projection causes objects farther from the camera to appear smaller.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27002
| |
| | [[SceneGraphDisplay class/Projection.Orthographic method|Projection.Orthographic]]
| |
| |Sets coordinates to render the scene in a box-shaped view. The distance of the camera from the objects does not affect the size of the objects in this view.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27003
| |
| | [[SceneGraphDisplay class/Projection.Perspective method|Projection.Perspective]]
| |
| |Sets coordinates to render the scene in a frustum-shaped view, where you specify an angle for the horizontal and vertical viewing fields. This projection causes objects closer to the camera to appear larger in size. This method is similar to the Projection:Frustum method.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27007
| |
| | [[SceneGraphDisplay class/Redraw method|Redraw]]
| |
| |Redraws the 3D scene in the 3D picture control.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27004
| |
| | [[SceneGraphDisplay class/Render to Image method|Render to Image]]
| |
| |Returns an image of the scene.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F27000
| |
| | [[SceneGraphDisplay class/Setup Camera method|Setup Camera]]
| |
| |Specifies the position of the camera relative to the scene. This method modifies the ModelView Matrix.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |50F2700A
| |
| | [[SceneGraphDisplay class/WindowToObjectCoords method|WindowToObjectCoords]]
| |
| |Converts a point in window coordinates to points in object coordinates on the near and far clip planes of the view.
| |
| |X
| |
| |}
| |
| </div>
| |
| | |
| ==Events==
| |
| ''No Events for this class.''
| |
|
| |
|
| == History == | | == History == |
The SceneGraphDisplay class is a class in the VI Server Class Hierarchy, (see also VI Server).
Properties
Show/Hide SceneGraphDisplay Properties Table
SceneGraphDisplay Properties Table
| Property ID
|
Long Name (English)
|
Description
|
R/W
|
RTE
|
| 50F27400 | ModelView Matrix | Reads or writes a matrix that contains the translation, rotation, and scale values for the 3D scene that appears in the 3D picture control. | Read/Write | Yes |
| 50F27401 | Background Color | Reads or writes the RGBA color value for the background of the 3D scene. | Read/Write | Yes |
| 50F27403 | Projection Matrix | Read or writes the matrix that represents the transformations LabVIEW uses to project the scene in the 3D picture control viewer. | Read/Write | Yes |
| 50F27404 | Camera Controller:Type | Reads or writes the configuration of the scene camera. Click and hold the left mouse button and drag the cursor to operate the camera. | Read/Write | Yes |
| 50F27405 | Automatic Projection Mode | Reads or writes whether LabVIEW automatically updates the projection mode for the scene. If set to Orthographic or Perspective, LabVIEW sets up an appropriate projection based on the scene or the size of the control. | Read/Write | Yes |
| 50F27406 | Content Bounds | Reads or writes the bounds for the 3D picture control in which LabVIEW renders a 3D scene. | Read/Write | Yes |
| 50F27407 | Content Bounds:Width | Reads or writes the width of the 3D picture control. | Read/Write | Yes |
| 50F27408 | Content Bounds:Height | Reads or writes the height of the 3D picture control. | Read/Write | Yes |
| 50F27409 | Content Position | Reads or writes the position of the area in which content appears in the 3D picture control. | Read Only | Yes |
| 50F2740A | Content Position:Horizontal | Reads or writes the horizontal position of the area in which content appears in the 3D picture control. | Read Only | Yes |
| 50F2740B | Content Position:Vertical | Reads or writes the vertical position of the area in which content appears in the 3D picture control. | Read Only | Yes |
| 50F2740C | Camera Controller:Auto Redraw | Reads or writes if this control becomes invalid when you use the camera controller. | Read/Write | Yes |
Methods
Show/Hide SceneGraphDisplay Properties Table
SceneGraphDisplay Methods Table
| Method ID
|
Long Name (English)
|
Description
|
RTE
|
| 50F27000 | Setup Camera | Specifies the position of the camera relative to the scene. This method modifies the ModelView Matrix. | Yes (Read/Write) |
| 50F27002 | Projection:Orthographic | Sets coordinates to render the scene in a box-shaped view. The distance of the camera from the objects does not affect the size of the objects in this view. | Yes (Read/Write) |
| 50F27003 | Projection:Perspective | Sets coordinates to render the scene in a frustum-shaped view, where you specify an angle for the horizontal and vertical viewing fields. This projection causes objects closer to the camera to appear larger in size. This method is similar to the Projection:Frustum method. | Yes (Read/Write) |
| 50F27004 | Render to Image | Returns an image of the scene. | Yes (Read/Write) |
| 50F27005 | Projection:Frustum | Sets coordinates to render the scene in a frustum-shaped view. This projection causes objects farther from the camera to appear smaller. | Yes (Read/Write) |
| 50F27006 | Pick Model | Casts a ray through a 3D scene at the Point coordinate and determines which models in the scene intersect with the ray. | Yes (Read/Write) |
| 50F27007 | Redraw | Redraws the 3D scene in the 3D picture control. | Yes (Read/Write) |
| 50F27008 | PickPoint | Given an x and y coordinate, casts a ray through the 3D scene and returns the x, y, and z-coordinates of the first object the ray intersects. | Yes (Read/Write) |
| 50F27009 | AutoFocus | Positions the camera to view all 3D scene objects in the front panel window. | Yes (Read/Write) |
| 50F2700A | WindowToObjectCoords | Converts a point in window coordinates to points in object coordinates on the near and far clip planes of the view. | Yes (Read/Write) |
Events
This class has no events or it inherits events from its parent: Control Class.
History
| Version
|
Change(s)
|
|
More info to come.
|
See Also