Garfield++ v2r0
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>
Public Member Functions | |
ViewFEMesh () | |
Constructor. | |
~ViewFEMesh () | |
Destructor. | |
TCanvas * | GetCanvas () |
void | SetCanvas (TCanvas *c) |
Set the canvas to be painted on. | |
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 | 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 | 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 | EnableDebugging (const bool on=true) |
Switch on/off debugging output. | |
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. | |
Draw the mesh of a field-map component.
Definition at line 26 of file ViewFEMesh.hh.
Garfield::ViewFEMesh::ViewFEMesh | ( | ) |
Constructor.
Definition at line 13 of file ViewFEMesh.cc.
Garfield::ViewFEMesh::~ViewFEMesh | ( | ) |
Destructor.
Definition at line 45 of file ViewFEMesh.cc.
void Garfield::ViewFEMesh::CreateDefaultAxes | ( | ) |
Create a default set of custom-made axes.
Definition at line 222 of file ViewFEMesh.cc.
|
inline |
Definition at line 59 of file ViewFEMesh.hh.
|
inline |
Disable a material so that its mesh cells are not drawn.
Definition at line 90 of file ViewFEMesh.hh.
|
inline |
Definition at line 58 of file ViewFEMesh.hh.
|
inline |
TCanvas * Garfield::ViewFEMesh::GetCanvas | ( | ) |
Definition at line 72 of file ViewFEMesh.cc.
bool Garfield::ViewFEMesh::Plot | ( | ) |
Plot method to be called by user.
Definition at line 97 of file ViewFEMesh.cc.
void Garfield::ViewFEMesh::SetArea | ( | ) |
Set area to be plotted to the default.
Definition at line 93 of file ViewFEMesh.cc.
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 74 of file ViewFEMesh.cc.
void Garfield::ViewFEMesh::SetCanvas | ( | TCanvas * | c | ) |
Set the canvas to be painted on.
Definition at line 61 of file ViewFEMesh.cc.
|
inline |
Associate a color with each element material map ID; Uses ROOT color numberings
Definition at line 69 of file ViewFEMesh.hh.
void Garfield::ViewFEMesh::SetComponent | ( | ComponentFieldMap * | comp | ) |
Set the component from which to retrieve the mesh and field.
Definition at line 50 of file ViewFEMesh.cc.
void Garfield::ViewFEMesh::SetDefaultProjection | ( | ) |
Reset the projection plane.
Definition at line 185 of file ViewFEMesh.cc.
Referenced by ViewFEMesh().
|
inline |
Definition at line 70 of file ViewFEMesh.hh.
|
inline |
Element fill switch; 2D only, set false for wireframe mesh.
Definition at line 65 of file ViewFEMesh.hh.
|
inline |
Show filled mesh elements.
Definition at line 78 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 145 of file ViewFEMesh.cc.
|
inline |
Set the optional associated ViewDrift.
Definition at line 75 of file ViewFEMesh.hh.
void Garfield::ViewFEMesh::SetXaxis | ( | TGaxis * | ax | ) |
Definition at line 206 of file ViewFEMesh.cc.
void Garfield::ViewFEMesh::SetXaxisTitle | ( | const char * | xtitle | ) |
Definition at line 212 of file ViewFEMesh.cc.
void Garfield::ViewFEMesh::SetYaxis | ( | TGaxis * | ay | ) |
Definition at line 209 of file ViewFEMesh.cc.
void Garfield::ViewFEMesh::SetYaxisTitle | ( | const char * | ytitle | ) |
Definition at line 217 of file ViewFEMesh.cc.