# Adding and wrapping a custom namespace within VTK

**URL:** https://discourse.vtk.org/t/adding-and-wrapping-a-custom-namespace-within-vtk/1099
**Category:** Development
**Tags:** proposal
**Created:** [June 7, 2019, 2:14pm UTC](https://discourse.vtk.org/t/adding-and-wrapping-a-custom-namespace-within-vtk/1099 "2019-06-07T14:14:07Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![agirault](https://discourse.vtk.org/user_avatar/discourse.vtk.org/agirault/32/508_2.png) [@agirault](https://discourse.vtk.org/u/agirault)
#### Post date: [June 7, 2019, 2:34pm UTC](https://discourse.vtk.org/t/adding-and-wrapping-a-custom-namespace-within-vtk/1099/3 "2019-06-07T14:34:54Z")

</div>

> [@ben.boeckel](#):
>
> Instead of a namespace, can you put them in a class that is nothing but static methods instead? Those should get wrapped.

Yes I could make [`vtkAnatomicalOrientation`](https://gist.github.com/agirault/5efa4188be4af41e0f09311cd325b786#file-vtkanatomicalorientation-cpp-L5) a class instead, if it’s fine to embed other classes within? Do we have existing classes which only have static methods so I can check how they work? I want to make sure people don’t instantiate it.

Another solution I thought of was to embed those [static methods](https://gist.github.com/agirault/5efa4188be4af41e0f09311cd325b786#file-vtkanatomicalorientation-cpp-L7-L66) and the [`Axis`](https://gist.github.com/agirault/5efa4188be4af41e0f09311cd325b786#file-vtkanatomicalorientation-cpp-L6) direction in [`CoordinateSystem`](https://gist.github.com/agirault/5efa4188be4af41e0f09311cd325b786#file-vtkanatomicalorientation-cpp-L68) (which I would rename something like `vtkAnatomicalSpace` instead), but then I don’t know how I can declare [`LPS`](https://gist.github.com/agirault/5efa4188be4af41e0f09311cd325b786#file-vtkanatomicalorientation-cpp-L172)…

---

_[View the full topic](https://discourse.vtk.org/t/adding-and-wrapping-a-custom-namespace-within-vtk/1099)._
