本文整理汇总了C++中Nodes::setRptsYRangeMax方法的典型用法代码示例。如果您正苦于以下问题:C++ Nodes::setRptsYRangeMax方法的具体用法?C++ Nodes::setRptsYRangeMax怎么用?C++ Nodes::setRptsYRangeMax使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Nodes
的用法示例。
在下文中一共展示了Nodes::setRptsYRangeMax方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: newMessage
Nodes *PtzManagement::getNodes()
{
Nodes *nodes = NULL;
Message *msg = newMessage();
QDomElement getNodes = newElement("wsdl:GetNodes");
msg->appendToBody(getNodes);
MessageParser *result = sendMessage(msg);
if(result != NULL){
nodes = new Nodes();
QXmlQuery *query = result->query();
QXmlResultItems items;
QXmlItem item;
QDomDocument doc;
QDomNodeList itemNodeList;
QDomNode node;
QString value,xml;
query->setQuery(result->nameSpace()+"doc($inputDocument)//tptz:PTZNode");
query->evaluateTo(&items);
item = items.next();
while(!item.isNull()){
query->setFocus(item);
query->setQuery(result->nameSpace()+".");
query->evaluateTo(&xml);
doc.setContent(xml);
itemNodeList = doc.elementsByTagName("tptz:PTZNode");
for(int i=0; i<itemNodeList.size();i++)
{
node = itemNodeList.at(i);
value = node.toElement().attribute("token");
nodes->setPtzNodeToken(value.trimmed());
}
query->setQuery(result->nameSpace()+"./tt:Name/string()");
query->evaluateTo(&value);
nodes->setName(value.trimmed());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsolutePanTiltPositionSpace/tt:URI/string()");
query->evaluateTo(&value);
nodes->setAppsUri(value.trimmed());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsolutePanTiltPositionSpace/tt:XRange/tt:Min/string()");
query->evaluateTo(&value);
nodes->setAppsXRangeMin(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsolutePanTiltPositionSpace/tt:XRange/tt:Max/string()");
query->evaluateTo(&value);
nodes->setAppsXRangeMax(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsolutePanTiltPositionSpace/tt:YRange/tt:Min/string()");
query->evaluateTo(&value);
nodes->setAppsYRangeMin(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsolutePanTiltPositionSpace/tt:YRange/tt:Max/string()");
query->evaluateTo(&value);
nodes->setAppsYRangeMax(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsoluteZoomPositionSpace/tt:URI/string()");
query->evaluateTo(&value);
nodes->setAzpsUri(value.trimmed());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsoluteZoomPositionSpace/tt:XRange/tt:Min/string()");
query->evaluateTo(&value);
nodes->setAzpsXRangeMin(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:AbsoluteZoomPositionSpace/tt:XRange/tt:Max/string()");
query->evaluateTo(&value);
nodes->setAzpsXRangeMax(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativePanTiltTranslationSpace/tt:URI/string()");
query->evaluateTo(&value);
nodes->setRptsUri(value.trimmed());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativePanTiltTranslationSpace/tt:XRange/tt:Min/string()");
query->evaluateTo(&value);
nodes->setRptsXRangeMin(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativePanTiltTranslationSpace/tt:XRange/tt:Max/string()");
query->evaluateTo(&value);
nodes->setRptsXRangeMax(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativePanTiltTranslationSpace/tt:YRange/tt:Min/string()");
query->evaluateTo(&value);
nodes->setRptsYRangeMin(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativePanTiltTranslationSpace/tt:YRange/tt:Max/string()");
query->evaluateTo(&value);
nodes->setRptsYRangeMax(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativeZoomTranslationSpace/tt:URI/string()");
query->evaluateTo(&value);
nodes->setRztsUri(value.trimmed());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativeZoomTranslationSpace/tt:XRange/tt:Min/string()");
query->evaluateTo(&value);
nodes->setRztsXRangeMin(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:RelativeZoomTranslationSpace/tt:XRange/tt:Max/string()");
query->evaluateTo(&value);
nodes->setRztsXRangeMax(value.trimmed().toFloat());
query->setQuery(result->nameSpace()+"./tt:SupportedPTZSpaces/tt:ContinuousPanTiltVelocitySpace/tt:URI/string()");
//.........这里部分代码省略.........