44 #include <visp3/core/vpXmlParserRectOriented.h> 71 for (xmlNodePtr dataNode = node->xmlChildrenNode; dataNode != NULL; dataNode = dataNode->next) {
72 if (dataNode->type == XML_ELEMENT_NODE) {
73 std::map<std::string, int>::iterator iter_data = this->
nodeMap.find((
char *)dataNode->name);
74 if (iter_data !=
nodeMap.end()) {
75 switch (iter_data->second) {
92 vpTRACE(
"unknown tag in readConfigNode : %d, %s", iter_data->second, (iter_data->first).c_str());
98 m_rectangle =
vpRectOriented(m_center, m_width, m_height, m_theta);
114 #endif // VISP_HAVE_XML2
double xmlReadDoubleChild(xmlDocPtr doc, xmlNodePtr node)
double getHeight() const
Get the rectangle height.
double getWidth() const
Get the rectangle width.
void set_i(const double ii)
void xmlWriteDoubleChild(xmlNodePtr node, const char *label, const double value)
double getOrientation() const
Get the rectangle orientation (rad).
void readMainClass(xmlDocPtr doc, xmlNodePtr node)
void writeMainClass(xmlNodePtr node)
vpXmlParserRectOriented()
void set_j(const double jj)
std::map< std::string, int > nodeMap
Defines an oriented rectangle in the plane.
virtual ~vpXmlParserRectOriented()
vpImagePoint getCenter() const
Get the rectangle center point.