|
|
| (One intermediate revision by the same user not shown) |
| 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 SceneTexture Properties Table</span> | | {{VIServerClassTables|111}} |
| <div class="mw-collapsible" id="mw-customcollapsible-propertiestable">
| |
| {{VIServerLegend|showrw=TRUE|showrte=TRUE}}
| |
| {| class="wikitable sortable"
| |
| |+ SceneTexture Properties Table
| |
| ! Property ID
| |
| ! Short Name (English)
| |
| ! Description
| |
| ! R/W
| |
| ! RTE
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3804
| |
| | [[SceneTexture class/ApplyMode property|ApplyMode]]
| |
| |Reads or writes how LabVIEW applies the texture to the 3D object.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3805
| |
| | [[SceneTexture class/BlendColor property|BlendColor]]
| |
| |Reads or writes the RGBA color used to blend the texture you apply to the object. Use this property when the Apply Mode property is set to <b>With Blending</b>.
| |
| | |
| Elements
| |
| | |
| Name
| |
| Description
| |
| | |
| Red
| |
| Indicates the red value. Valid values include 0 through 1.
| |
| | |
| Green
| |
| Indicates the green value. Valid values include 0 through 1.
| |
| | |
| Blue
| |
| Indicates the blue value. Valid values include 0 through 1.
| |
| | |
| Alpha
| |
| Indicates the Alpha value. Valid values include 0 through 1.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3803
| |
| | [[SceneTexture class/FilterMode property|FilterMode]]
| |
| |Reads or writes the method used to filter the texel colors applied to the geometry. Different values affect the quality and speed of the texture mapping.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3802
| |
| | [[SceneTexture class/HorizontalWrapMode property|HorizontalWrapMode]]
| |
| |Read or writes how the texture is wrapped horizontally around a 3D object.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3800
| |
| | [[SceneTexture class/Image property|Image]]
| |
| |Reads or writes the image data for a texture you apply to an object in a 3D scene.
| |
| | |
| Elements
| |
| | |
| Name
| |
| Description
| |
| | |
| Image Type
| |
| Reserved for future use.
| |
| | |
| Image Depth
| |
| Specifies the color depth of the image, which is the number of bits to use to describe the color of each pixel in the image. Valid values include 1, 4, 8, and 24 bits per pixel. Image Depth affects how LabVIEW interprets the values of Image and Colors.
| |
| | |
| Image
| |
| A 1-D array of bytes that describes the color of each pixel in the image in raster order. The value of Image Depth determines how LabVIEW interprets the value of this input.<br><br>
| |
| If Image Depth is 24, each pixel has three bytes to describe its color. The first byte for each pixel describes the red value, the second byte describes the green value, and the third byte describes the blue value.<br><br>
| |
| If Image Depth is 8, each pixel has one byte to describe its color. The value of each bit corresponds to an element in Colors, which stores 32-bit RGB values where the most-significant byte is zero, followed in order by red, green, and blue values. Valid values include 0 through 255.<br><br>
| |
| If Image Depth is 4, the behavior is similar to when Image Depth is 8 except valid values in image include 0 through 15.<br><br>
| |
| If Image Depth is 1, any value of zero in Image corresponds to element 0 in Colors. All other values correspond to element 1 in Colors.
| |
| | |
| Mask
| |
| An array of bytes in which each bit describes mask information for a pixel. The first byte describes the first eight pixels, the second byte describes the next eight pixels, and so on. If a bit is zero, LabVIEW draws the corresponding pixel as transparent. If the array is empty, LabVIEW draws all pixels without transparency. If the array does not contain a bit for each pixel in the image, LabVIEW draws any pixels missing from the array without transparency.
| |
| | |
| Colors
| |
| An array of RGB color values that correspond to the values in image. The value of Image Depth determines how LabVIEW interprets the value of this input.<br><br>
| |
| If Image Depth is 24, LabVIEW ignores this input.<br><br>
| |
| If Image Depth is 8, the array can have 256 elements.<br><br>
| |
| If Image Depth is 4, the array can have 16 elements.<br><br>
| |
| If Image Depth is 1, the array can have 2 elements.
| |
| | |
| Rectangle
| |
| A cluster that contains coordinates that describe the bounding rectangle in which you want to draw the image. The VI clips the image to the width and height of the rectangle. The bottom and right edges of the rectangle bounds do not contain image pixels. Horizontal coordinates increase to the right, and vertical coordinates increase to the bottom.
| |
| | |
| Left—The horizontal coordinate of the left edge of the rectangle.
| |
| Top—The vertical coordinate of the top edge of the rectangle.
| |
| Right—The horizontal coordinate of the right edge of the rectangle.
| |
| Bottom—The vertical coordinate of the bottom edge of the rectangle.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C380A
| |
| | [[SceneTexture class/Transformation property|Transformation]]
| |
| |Reads or writes the transformation you apply to the texture. The transformation must be a 4x4 2D array of single precision numbers that represents the transformation matrix you want to apply to the texture.
| |
| |R/W
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3801
| |
| | [[SceneTexture class/VerticalWrapMode property|VerticalWrapMode]]
| |
| |Read or writes how the texture is vertically wrapped around a 3D object.
| |
| |R/W
| |
| |X
| |
| |}
| |
| </div>
| |
| | |
| ==Methods==
| |
| <span class="mw-customtoggle-methodstable">Show/Hide SceneTexture Methods Table</span>
| |
| <div class="mw-collapsible" id="mw-customcollapsible-methodstable">
| |
| {{VIServerLegend|showrte=TRUE}} | |
| {| class="wikitable sortable"
| |
| |+ SceneTexture Methods Table
| |
| ! Method ID
| |
| ! Short Name (English)
| |
| ! Description
| |
| ! RTE
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3406
| |
| | [[SceneTexture class/Transformation.Clear Transformation method|Transformation.Clear Transformation]]
| |
| |Removes any transformations previously applied to the texture.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C340A
| |
| | [[SceneTexture class/Transformation.Get Rotation method|Transformation.Get Rotation]]
| |
| |Returns the <b>Axis</b> and <b>Angle</b> that define the rotation of the object.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C340C
| |
| | [[SceneTexture class/Transformation.Get Scale method|Transformation.Get Scale]]
| |
| |Returns the scale factors of the object.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C340B
| |
| | [[SceneTexture class/Transformation.GetTranslation method|Transformation.GetTranslation]]
| |
| |Returns the translation of the object.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3400
| |
| | [[SceneTexture class/Transformation.Rotate method|Transformation.Rotate]]
| |
| |Rotates the texture by the specified number of radians. This method performs a relative rotation from the current orientation of the texture.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3402
| |
| | [[SceneTexture class/Transformation.Scale method|Transformation.Scale]]
| |
| |Scales the texture by the given scale factors. This method performs a relative scale from the current position of the object.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3407
| |
| | [[SceneTexture class/Transformation.Set Rotation method|Transformation.Set Rotation]]
| |
| |Rotates the texture by the specified number of radians. This method performs an absolute rotation from the current position of the texture.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3409
| |
| | [[SceneTexture class/Transformation.Set Scale method|Transformation.Set Scale]]
| |
| |Scales the texture by the specified scaling factor. This method performs an absolute scale from the current position of the texture.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3408
| |
| | [[SceneTexture class/Transformation.SetTranslation method|Transformation.SetTranslation]]
| |
| |Translates the texture by the specified vector. This method performs an absolute translation from the initial position of the texture.
| |
| |X
| |
| |- style="background-color:#FFFFCC;"
| |
| |22C3401
| |
| | [[SceneTexture class/Transformation:Translate method|Transformation:Translate]]
| |
| |Translates the texture by the specified vector. This method performs a relative translation from the initial position of the texture.
| |
| |X
| |
| |}
| |
| </div>
| |
| | |
| ==Events==
| |
| ''No Events for this class.''
| |
|
| |
|
| == History == | | == History == |
| Line 196: |
Line 24: |
| *[[VI Server]] | | *[[VI Server]] |
|
| |
|
| [[Category:VI Server]]
| | |
| [[Category:VI Server Class]] | | [[Category:VI Server Class]] |
The SceneTexture class is a class in the VI Server Class Hierarchy, (see also VI Server).
Properties
Show/Hide SceneTexture Properties Table
SceneTexture Properties Table
| Property ID
|
Long Name (English)
|
Description
|
R/W
|
RTE
|
| 22C3800 | Image | Reads or writes the image data for a texture you apply to an object in a 3D scene. | Read/Write | Yes |
| 22C3801 | Vertical Wrap Mode | Read or writes how the texture is vertically wrapped around a 3D object. | Read/Write | Yes |
| 22C3802 | Horizontal Wrap Mode | Read or writes how the texture is wrapped horizontally around a 3D object. | Read/Write | Yes |
| 22C3803 | Filter Mode | Reads or writes the method used to filter the texel colors applied to the geometry. Different values affect the quality and speed of the texture mapping. | Read/Write | Yes |
| 22C3804 | Apply Mode | Reads or writes how LabVIEW applies the texture to the 3D object. | Read/Write | Yes |
| 22C3805 | Blend Color | Reads or writes the RGBA color used to blend the texture you apply to the object. Use this property when the Apply Mode property is set to With Blending. | Read/Write | Yes |
| 22C380A | Transformation | Reads or writes the transformation you apply to the texture. The transformation must be a 4x4 2D array of single precision numbers that represents the transformation matrix you want to apply to the texture. | Read/Write | Yes |
Methods
Show/Hide SceneTexture Properties Table
SceneTexture Methods Table
| Method ID
|
Long Name (English)
|
Description
|
RTE
|
| 22C3400 | Transformation:Rotate | Rotates the texture by the specified number of radians. This method performs a relative rotation from the current orientation of the texture. | Yes (Read/Write) |
| 22C3401 | Transformation:Translate | Translates the texture by the specified vector. This method performs a relative translation from the initial position of the texture. | Yes (Read/Write) |
| 22C3402 | Transformation:Scale | Scales the texture by the given scale factors. This method performs a relative scale from the current position of the object. | Yes (Read/Write) |
| 22C3406 | Transformation:Clear Transformation | Removes any transformations previously applied to the texture. | Yes (Read/Write) |
| 22C3407 | Transformation:Set Rotation | Rotates the texture by the specified number of radians. This method performs an absolute rotation from the current position of the texture. | Yes (Read/Write) |
| 22C3408 | Transformation:Set Translation | Translates the texture by the specified vector. This method performs an absolute translation from the initial position of the texture. | Yes (Read/Write) |
| 22C3409 | Transformation:Set Scale | Scales the texture by the specified scaling factor. This method performs an absolute scale from the current position of the texture. | Yes (Read/Write) |
| 22C340A | Transformation:Get Rotation | Returns the Axis and Angle that define the rotation of the object. | Yes (Read/Write) |
| 22C340B | Transformation:Get Translation | Returns the translation of the object. | Yes (Read/Write) |
| 22C340C | Transformation:Get Scale | Returns the scale factors of the object. | Yes (Read/Write) |
Events
This class has no events or it inherits events from its parent: Scene Class.
History
| Version
|
Change(s)
|
|
More info to come.
|
See Also