15#include <TPolyLine3D.h>
40 void SetArea(
double xmin,
double ymin,
double zmin,
double xmax,
double ymax,
45 void SetPlane(
double fx,
double fy,
double fz,
double x0,
double y0,
64 void SetColor(
int matID,
int colorID) { colorMap[matID] = colorID; }
65 void SetFillColor(
int matID,
int colorID) { colorMap_fill[matID] = colorID; }
72 plotMeshBorders =
true;
87 std::string className;
96 bool hasExternalCanvas;
104 double xMin, yMin, zMin, xMax, yMax, zMax;
111 bool plotMeshBorders;
114 TGaxis* xaxis, *yaxis;
119 std::vector<TPolyLine*> mesh;
120 std::vector<TPolyLine*> driftLines;
124 std::map<int, int> colorMap;
125 std::map<int, int> colorMap_fill;
128 std::map<int, bool> disabledMaterial;
133 bool InView(
double x,
double y);
134 bool LinesCrossed(
double x1,
double y1,
double x2,
double y2,
double u1,
135 double v1,
double u2,
double v2,
double& xc,
double& yc);
136 bool OnLine(
double x1,
double y1,
double x2,
double y2,
double u,
double v);
137 void RemoveCrossings(std::vector<double>& x, std::vector<double>& y);
138 bool PlaneCut(
double x1,
double y1,
double z1,
double x2,
double y2,
139 double z2, TMatrixD& xMat);
140 bool PlaneCoords(
double x,
double y,
double z,
const TMatrixD& projMat,
142 void ClipToView(std::vector<double>& px, std::vector<double>& py,
143 std::vector<double>& cx, std::vector<double>& cy);
144 bool IsInPolygon(
double x,
double y, std::vector<double>& px,
145 std::vector<double>& py,
bool& edge);
void SetXaxisTitle(const char *xtitle)
void SetCanvas(TCanvas *c)
void SetComponent(ComponentFieldMap *comp)
void SetFillMeshWithBorders()
void SetViewDrift(ViewDrift *vd)
void SetFillColor(int matID, int colorID)
void DisableMaterial(int materialID)
void SetYaxisTitle(const char *ytitle)
void SetPlane(double fx, double fy, double fz, double x0, double y0, double z0)
void SetColor(int matID, int colorID)
void SetXaxis(TGaxis *ax)
void SetYaxis(TGaxis *ay)
void SetDefaultProjection()