This is a small utility tool to draw a AUSAlib setup file.
AUSADraw
---------------
AUSADraw is a small framework to draw AUSA setups. It comes as a library and an [executable](https://git.kern.phys.au.dk/ausa/Drawer/wikis/home). The executable can handle most situation, but if you want to use it in your own projects you can use the library.
In the current state you need to be on the povray-branch in AUSAlib.
Just give the defaults...
----------------------
This will read in a setup from json and produce 1280x960 test.png.
The camera viewpoint will be from (650, 500, 600)mm.
So far we can draw W1, S3 and a somewhat adapted version of a (BB7) 32x32 DSSD.
```c++
#include"ausa/json/IO.h"
#include"ausa/povray/SetupRender.h"
usingnamespaceAUSA;
It is also possible to get the coordinate axes drawn.
It is possible to draw a Target. So far it only supports box-targets. Whenever AUSAlib support other geometries it will be updated here too. In order to add a Target, you simply add it to the renderer:
```c++
Povray::SetupRenderrender;
Targettarget;
...
render.setTarget(make_shared<Target>(target));
```
What if my detector is not supported?
--------------------------------------
Fear not. That is fixable.
Simple - I'm never going to draw this again solution: Just add to the pov file.
However if you have added your own Detector class or a render is missing for an AUSAlib one then you need to
1. Subclass the virtual class [DetectorRender](include/ausa/povray/DetectorRender.h).
Have a look at [W1Render.h](include/ausa/povray/renders/W1Render.h) and [W1Render.cpp](source/povray/renders/W1Render.cpp)
Let us say I have defined `FooRender` for `FooDetector`.