|
Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Draw the mesh of a field-map component. More...
#include <ViewFEMesh.hh>
Inheritance diagram for Garfield::ViewFEMesh:Public Member Functions | |
| ViewFEMesh () | |
| Constructor. | |
| ~ViewFEMesh ()=default | |
| Destructor. | |
| void | SetComponent (ComponentFieldMap *comp) |
| Set the component from which to retrieve the mesh and field. | |
| void | SetArea () |
| Set area to be plotted to the default. | |
| void | SetArea (const double xmin, const double ymin, const double zmin, const double xmax, const double ymax, const double zmax) |
| Set area to be plotted explicitly. | |
| void | SetDefaultProjection () |
| Reset the projection plane. | |
| void | SetPlane (double fx, double fy, double fz, double x0, double y0, double z0) |
| Set the projection plane. | |
| void | SetPlane (double fx, double fy, double fz, double x0, double y0, double z0, double hx, double hy, double hz) |
| Set the projection plane specifying hint for in-plane x axis. | |
| void | SetXaxis (TGaxis *ax) |
| void | SetYaxis (TGaxis *ay) |
| void | SetXaxisTitle (const char *xtitle) |
| void | SetYaxisTitle (const char *ytitle) |
| void | EnableAxes () |
| void | DisableAxes () |
| bool | Plot () |
| Plot method to be called by user. | |
| void | SetFillMesh (const bool f) |
| Element fill switch; 2D only, set false for wireframe mesh. | |
| void | SetDrawViewRegion (bool do_draw) |
| Display intersection of projection plane with viewing area. | |
| bool | GetDrawViewRegion (void) const |
| void | SetColor (int matID, int colorID) |
| void | SetFillColor (int matID, int colorID) |
| void | SetViewDrift (ViewDrift *vd) |
| Set the optional associated ViewDrift. | |
| void | SetFillMeshWithBorders () |
| Show filled mesh elements. | |
| void | CreateDefaultAxes () |
| Create a default set of custom-made axes. | |
| void | DisableMaterial (int materialID) |
| Disable a material so that its mesh cells are not drawn. | |
Public Member Functions inherited from Garfield::ViewBase | |
| ViewBase ()=delete | |
| Default constructor. | |
| ViewBase (const std::string &name) | |
| Constructor. | |
| virtual | ~ViewBase () |
| Destructor. | |
| void | SetCanvas (TCanvas *c) |
| Set the canvas to be painted on. | |
| TCanvas * | GetCanvas () |
| Retrieve the canvas. | |
| void | EnableDebugging (const bool on=true) |
| Switch on/off debugging output. | |
Additional Inherited Members | |
Protected Member Functions inherited from Garfield::ViewBase | |
| std::string | FindUnusedFunctionName (const std::string &s) const |
| std::string | FindUnusedHistogramName (const std::string &s) const |
Protected Attributes inherited from Garfield::ViewBase | |
| std::string | m_className = "ViewBase" |
| bool | m_debug = false |
| TCanvas * | m_canvas = nullptr |
| bool | m_hasExternalCanvas = false |
| double | m_proj [3][3] |
Draw the mesh of a field-map component.
Definition at line 26 of file ViewFEMesh.hh.
| Garfield::ViewFEMesh::ViewFEMesh | ( | ) |
Constructor.
Definition at line 15 of file ViewFEMesh.cc.
|
default |
Destructor.
| void Garfield::ViewFEMesh::CreateDefaultAxes | ( | ) |
Create a default set of custom-made axes.
Definition at line 194 of file ViewFEMesh.cc.
|
inline |
Definition at line 56 of file ViewFEMesh.hh.
|
inline |
Disable a material so that its mesh cells are not drawn.
Definition at line 88 of file ViewFEMesh.hh.
|
inline |
|
inline |
Definition at line 66 of file ViewFEMesh.hh.
| bool Garfield::ViewFEMesh::Plot | ( | ) |
Plot method to be called by user.
Definition at line 71 of file ViewFEMesh.cc.
Referenced by main().
| void Garfield::ViewFEMesh::SetArea | ( | ) |
Set area to be plotted to the default.
Definition at line 67 of file ViewFEMesh.cc.
Referenced by main().
| void Garfield::ViewFEMesh::SetArea | ( | const double | xmin, |
| const double | ymin, | ||
| const double | zmin, | ||
| const double | xmax, | ||
| const double | ymax, | ||
| const double | zmax | ||
| ) |
Set area to be plotted explicitly.
Definition at line 49 of file ViewFEMesh.cc.
|
inline |
Associate a color with each element material map ID; Uses ROOT color numberings
Definition at line 70 of file ViewFEMesh.hh.
Referenced by main().
| void Garfield::ViewFEMesh::SetComponent | ( | ComponentFieldMap * | comp | ) |
Set the component from which to retrieve the mesh and field.
Definition at line 40 of file ViewFEMesh.cc.
Referenced by main().
| void Garfield::ViewFEMesh::SetDefaultProjection | ( | ) |
Reset the projection plane.
Definition at line 25 of file ViewFEMesh.cc.
Referenced by ViewFEMesh().
|
inline |
Display intersection of projection plane with viewing area.
Definition at line 65 of file ViewFEMesh.hh.
|
inline |
Definition at line 71 of file ViewFEMesh.hh.
|
inline |
Element fill switch; 2D only, set false for wireframe mesh.
Definition at line 62 of file ViewFEMesh.hh.
Referenced by main().
|
inline |
Show filled mesh elements.
Definition at line 79 of file ViewFEMesh.hh.
| void Garfield::ViewFEMesh::SetPlane | ( | double | fx, |
| double | fy, | ||
| double | fz, | ||
| double | x0, | ||
| double | y0, | ||
| double | z0 | ||
| ) |
Set the projection plane.
Definition at line 120 of file ViewFEMesh.cc.
Referenced by main(), and SetPlane().
| void Garfield::ViewFEMesh::SetPlane | ( | double | fx, |
| double | fy, | ||
| double | fz, | ||
| double | x0, | ||
| double | y0, | ||
| double | z0, | ||
| double | hx, | ||
| double | hy, | ||
| double | hz | ||
| ) |
Set the projection plane specifying hint for in-plane x axis.
Definition at line 130 of file ViewFEMesh.cc.
|
inline |
Set the optional associated ViewDrift.
Definition at line 76 of file ViewFEMesh.hh.
Referenced by main().
| void Garfield::ViewFEMesh::SetXaxis | ( | TGaxis * | ax | ) |
Definition at line 178 of file ViewFEMesh.cc.
| void Garfield::ViewFEMesh::SetXaxisTitle | ( | const char * | xtitle | ) |
Definition at line 184 of file ViewFEMesh.cc.
Referenced by main().
| void Garfield::ViewFEMesh::SetYaxis | ( | TGaxis * | ay | ) |
Definition at line 181 of file ViewFEMesh.cc.
| void Garfield::ViewFEMesh::SetYaxisTitle | ( | const char * | ytitle | ) |
Definition at line 189 of file ViewFEMesh.cc.
Referenced by main().