# How to show an local axes in the center of actor?

**URL:** https://discourse.vtk.org/t/how-to-show-an-local-axes-in-the-center-of-actor/7514
**Category:** Support
**Created:** [December 28, 2021, 8:46am UTC](https://discourse.vtk.org/t/how-to-show-an-local-axes-in-the-center-of-actor/7514 "2021-12-28T08:46:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AlexLuya](https://discourse.vtk.org/user_avatar/discourse.vtk.org/alexluya/32/4036_2.png) [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)
#### Post date: [December 28, 2021, 8:46am UTC](https://discourse.vtk.org/t/how-to-show-an-local-axes-in-the-center-of-actor/7514/1 "2021-12-28T08:46:41Z")

</div>

Something like this:

 ![Workspace 1_1333](https://discourse.vtk.org/uploads/default/original/2X/7/72b6d58a4507711b62c06d29d72b14eedea94727.png)

As you can see,the left cube has a local axes in the center when clicking it,how to do same thing with VTK?

---

<div class="post-metadata">

### Author: ![Joel\_Mckay](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joel_mckay/32/4443_2.png) [@Joel\_Mckay](https://discourse.vtk.org/u/Joel_Mckay)
#### Post date: [December 28, 2021, 1:38pm UTC](https://discourse.vtk.org/t/how-to-show-an-local-axes-in-the-center-of-actor/7514/2 "2021-12-28T13:38:53Z")

</div>

I am new to using vtk too, so YMMV with my advice =)  
I would recommend this [YT video by Han-Wei](https://www.youtube.com/watch?v=0m611JTA6l0) Shen, as it explains how libvtk chains its rendering pipeline together.

Also, depending on the environment you use… adding callbacks can get complicated. Have a look at the predefined widgets to get started, and their class source for more low level details.  
LMGTFY 😉 (also recommend looking around the examples site a bit)  
[AffineWidget](https://kitware.github.io/vtk-examples/site/Cxx/Widgets/AffineWidget/)  
[OrientationMarkerWidget](https://kitware.github.io/vtk-examples/site/Cxx/Widgets/OrientationMarkerWidget/)  
[BoxWidget](https://kitware.github.io/vtk-examples/site/Cxx/Widgets/BoxWidget/)  
[ImagePlaneWidget](https://kitware.github.io/vtk-examples/site/Cxx/Widgets/ImagePlaneWidget/)

Cheers,  
J
