Skip to content

Commit

Permalink
[Snorkell.ai]: Documentation for ptvState.py
Browse files Browse the repository at this point in the history
  • Loading branch information
penify-dev[bot] authored May 3, 2024
1 parent f3c496b commit 9f098a6
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion src/ptvState.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,45 @@

class PTVState:
def __init__(self):
"""Initialize the attributes of the class.
""" Initialize the attributes of the class.
Initializes various attributes related to image, overlay, current image, 2D and 3D view settings,
scene, and selected spatial objects.
Attributes:
image_pixel_type: The pixel type of the image.
image_type: The type of the image.
overlay_pixel_type: The pixel type of the overlay.
overlay_type: The type of the overlay.
image: The image.
image_array: The array representation of the image.
image_min: The minimum value in the image.
image_max: The maximum value in the image.
image_filename: The filename of the image.
overlay: The overlay.
overlay_array: The array representation of the overlay.
current_image_num: The number of the current image.
current_pixel: The current pixel.
view2D_intensity_window_min: The minimum intensity window for 2D view.
view2D_intensity_window_max: The maximum intensity window for 2D view.
view2D_slice: The slice for 2D view.
view2D_axis: The axis for 2D view.
view2D_flip: The flip setting for 2D view.
view2D_overlay_opacity: The opacity of the overlay for 2D view.
view2D_overlay_auto_update: The auto update setting for the overlay in 2D view.
view3D_scene_auto_update: The auto update setting for the scene in 3D view.
colormap: The colormap setting for both 2D and 3D views.
colormap_scale_factor: The scale factor for the colormap.
scene: The scene for visualization.
scene_list: The list of scenes.
scene_list_ids: The list of scene IDs.
scene_list_properties: The properties of the scene list.
scene_filename: The filename of the scene.
multiple_selections_enabled: The setting for enabling multiple selections.
selected_ids: The selected IDs.
selected_point_ids: The selected point IDs.
highlight_selected: The setting for highlighting selected objects.
logger: The logger for the class.
"""

# Types
Expand Down

0 comments on commit 9f098a6

Please sign in to comment.