 |
ATLAS Offline Software
|
Go to the documentation of this file.
13 using namespace xercesc;
36 std::vector<TwoPoint> points;
39 (
c.GetHandlerStore().GetHandler(
"gvxy_point"));
40 if (!pointHand) std::abort();
44 for (child=
t->getFirstChild();child!=0;child=child->getNextSibling())
46 if (child->getNodeType()==DOMNode::ELEMENT_NODE) {
53 int nPoints=points.size();
56 for (
int i=0;
i<nPoints;
i++)
59 v[nPoints+
i].x(-points[nPoints-1-
i].
x());
60 v[nPoints+
i].y(points[nPoints-1-
i].
y());
61 v[2*nPoints+
i].x(-points[
i].
x());
62 v[2*nPoints+
i].y(-points[
i].
y());
63 v[3*nPoints+
i].x(points[nPoints-1-
i].
x());
64 v[3*nPoints+
i].y(-points[nPoints-1-
i].
y());
68 for (
int i=0;
i<nPoints;
i++)
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
void SetMaterial(const std::string &n)
std::pair< std::vector< unsigned int >, bool > res
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
TwoPoint CurrentTwoPoint()
void SetPoint(TwoPoint p)
void SetColor(const std::string &c)
gvxysxyHandler(const std::string &, AGDDController &c)