# How to get the information of the plane to which the viewWidget belongs

**URL:** https://discourse.vtk.org/t/how-to-get-the-information-of-the-plane-to-which-the-viewwidget-belongs/8520
**Category:** Web
**Created:** [May 18, 2022, 8:30am UTC](https://discourse.vtk.org/t/how-to-get-the-information-of-the-plane-to-which-the-viewwidget-belongs/8520 "2022-05-18T08:30:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![654545342](https://discourse.vtk.org/user_avatar/discourse.vtk.org/654545342/32/5138_2.png) [@654545342](https://discourse.vtk.org/u/654545342)
#### Post date: [May 18, 2022, 8:30am UTC](https://discourse.vtk.org/t/how-to-get-the-information-of-the-plane-to-which-the-viewwidget-belongs/8520/1 "2022-05-18T08:30:26Z")

</div>

How can I get the vector of the plane where the viewWidget is located, or how can I get the plane of its operator, looking forward to your answer

 ![image](https://discourse.vtk.org/uploads/default/original/2X/d/d3c62de5e92df26389ed09f487d036e1c1f54339.png)

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [May 18, 2022, 9:12am UTC](https://discourse.vtk.org/t/how-to-get-the-information-of-the-plane-to-which-the-viewwidget-belongs/8520/2 "2022-05-18T09:12:47Z")

</div>

From the viewWidget you can get its `viewType` (viewWidget.get().viewType), from a viewType and the widget state, you can get the plane: `widgetState.getPlanes()[inViewType]`
