Graphics3DDataDisplayElement#
- class ansys.stk.core.stkobjects.Graphics3DDataDisplayElement#
Class defining 3D Graphics data display element.
Overview#
Opt whether to show the data display in the selected location. |
|
Add the data display to a 3D window. |
|
Remove the data display from a 3D window. |
|
Add the data display to all 3D windows. |
Name of data display element. |
|
Opt whether to show the data display element. |
|
Get or set the location where the data display is to appear: 3D window, data display area, or offset from the selected object. |
|
Get or set the horizontal point of origin for the marker (left, center or right). |
|
Amount of X offset from the origin. Dimensionless. |
|
Get or set the vertical point of origin for the marker (top, center or bottom.). |
|
Amount of Y offset from the origin. Dimensionless. |
|
Opt whether to show the title of the data display. |
|
Font size of the data display. |
|
Font color of the data display. |
|
Font format of the data display. |
|
Opt whether to use a background with the data display. |
|
Opt whether to make the background transparent. |
|
Get or set the width of the data display background. Dimensionless. |
|
Get or set the height of the data display background. Dimensionless. |
|
Get or set the color of the data display background. |
|
Get the available 3D windows for the data display. |
|
Get or set the title of the data display. |
|
Get or set the translucency of the background between 0 and 1 inclusive. |
|
Opt whether to use a background texture with the data display. |
|
Get or set the filename of the background texture. |
|
Opt whether to use a background border with the data display. |
|
Get or set the color of the border surrounding the data display background. |
|
Opt whether to allow automatic resizing of data display width. |
|
Opt whether to allow automatic resizing of data display height. |
|
Opt whether to show an objects name in the data display title. |
Examples#
Add a Data Display to the 3D Window
# Satellite satellite: Satellite object
# Remove all data displays so you can easily pick one that may already be in
# the list
satellite.graphics_3d.data_display.remove_all()
# Add LLA data display and change size/title
datadisplay = satellite.graphics_3d.data_display.add("LLA Position")
datadisplay.show_graphics = True
datadisplay.font_size = Graphics3DFontSize.MEDIUM
datadisplay.title_text = "My Data Display"
datadisplay.show_name = False
Import detail#
from ansys.stk.core.stkobjects import Graphics3DDataDisplayElement
Property detail#
- property Graphics3DDataDisplayElement.show_graphics: bool#
Opt whether to show the data display element.
- property Graphics3DDataDisplayElement.location: Graphics3DLocation#
Get or set the location where the data display is to appear: 3D window, data display area, or offset from the selected object.
- property Graphics3DDataDisplayElement.x_origin: Graphics3DXOrigin#
Get or set the horizontal point of origin for the marker (left, center or right).
- property Graphics3DDataDisplayElement.y_origin: Graphics3DYOrigin#
Get or set the vertical point of origin for the marker (top, center or bottom.).
- property Graphics3DDataDisplayElement.title: bool#
Opt whether to show the title of the data display.
- property Graphics3DDataDisplayElement.font_size: Graphics3DFontSize#
Font size of the data display.
- property Graphics3DDataDisplayElement.format: Graphics3DFormat#
Font format of the data display.
- property Graphics3DDataDisplayElement.use_background: bool#
Opt whether to use a background with the data display.
- property Graphics3DDataDisplayElement.transparent_background: bool#
Opt whether to make the background transparent.
- property Graphics3DDataDisplayElement.background_width: int#
Get or set the width of the data display background. Dimensionless.
- property Graphics3DDataDisplayElement.background_height: int#
Get or set the height of the data display background. Dimensionless.
- property Graphics3DDataDisplayElement.background_color: Color#
Get or set the color of the data display background.
- property Graphics3DDataDisplayElement.available_windows: list#
Get the available 3D windows for the data display.
- property Graphics3DDataDisplayElement.background_translucency: float#
Get or set the translucency of the background between 0 and 1 inclusive.
- property Graphics3DDataDisplayElement.use_background_texture: bool#
Opt whether to use a background texture with the data display.
- property Graphics3DDataDisplayElement.background_texture_filename: str#
Get or set the filename of the background texture.
- property Graphics3DDataDisplayElement.use_background_border: bool#
Opt whether to use a background border with the data display.
- property Graphics3DDataDisplayElement.background_border_color: Color#
Get or set the color of the border surrounding the data display background.
- property Graphics3DDataDisplayElement.use_automatic_size_width: bool#
Opt whether to allow automatic resizing of data display width.
Method detail#
- Graphics3DDataDisplayElement.is_displayed_in_window(self, title: str) bool #
Opt whether to show the data display in the selected location.
- Graphics3DDataDisplayElement.add_to_window(self, title: str) None #
Add the data display to a 3D window.