# How to do "Annotation&Measurement" on MPR?

**URL:** https://discourse.vtk.org/t/how-to-do-annotation-measurement-on-mpr/8920
**Category:** Support
**Tags:** jobs, code
**Created:** [July 11, 2022, 3:02am UTC](https://discourse.vtk.org/t/how-to-do-annotation-measurement-on-mpr/8920 "2022-07-11T03:02:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [July 11, 2022, 3:02am UTC](https://discourse.vtk.org/t/how-to-do-annotation-measurement-on-mpr/8920/1 "2022-07-11T03:02:13Z")

</div>

How to do “Annotation&Measurement” on MPR like MITK or 3D Slicer?

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [July 11, 2022, 2:11pm UTC](https://discourse.vtk.org/t/how-to-do-annotation-measurement-on-mpr/8920/2 "2022-07-11T14:11:26Z")

</div>

Both MITK and Slicer are VTK-based open-source software with restriction-free license, so you can use them or copy-paste any code from them as you see fit.

If you only need to make measurements in a single view then you might do away with stock VTK widgets, otherwise it probably makes more sense to use/customize/extend MITK or Slicer. Both these application frameworks are developed to serve as a basis for custom applications.

---

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [July 13, 2022, 7:22am UTC](https://discourse.vtk.org/t/how-to-do-annotation-measurement-on-mpr/8920/3 "2022-07-13T07:22:38Z")

</div>

sorry, I thank it is too complex, I want an simple VTK widget,like vtkLineWidget,vtkDistanceWidgete,etc.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [July 14, 2022, 1:50pm UTC](https://discourse.vtk.org/t/how-to-do-annotation-measurement-on-mpr/8920/4 "2022-07-14T13:50:09Z")

</div>

There is no place for simple desktop applications anymore: that field has been taken over by web applications. You would have really hard time convincing anybody nowadays to install a desktop application for doing simple tasks, because users expect they can do simple tasks anywhere, anytime, on any device, without installing anything.

If you are completely sure that your application GUI will never evolve to be anything more complex then I would recommend to implement a web application using VTK.js.

If you want to develop sophisticated desktop applications then it is probably worth learning an application framework that people in your field use to avoid design, development, support, and maintenance workload.

---

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [July 17, 2022, 5:26am UTC](https://discourse.vtk.org/t/how-to-do-annotation-measurement-on-mpr/8920/5 "2022-07-17T05:26:08Z")

</div>

thank you very much! And I want to know How it draw a line when I using the vtkLineWidget and vtkLineRepresentation. I can’t find the source code like drawing from one point to another. Do you know?
