本文整理汇总了C++中ossimRefPtr::addChildNode方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimRefPtr::addChildNode方法的具体用法?C++ ossimRefPtr::addChildNode怎么用?C++ ossimRefPtr::addChildNode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimRefPtr
的用法示例。
在下文中一共展示了ossimRefPtr::addChildNode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: configureBounds
bool ossimGmlSupportData::configureBounds(
ossimRefPtr<ossimXmlNode> node0, const ossimImageGeometry* geom )
{
bool success = true;
const ossimString BLANK = "";
ossimString upperCornerString;
ossimString lowerCornerString;
getGeoBounds( geom, upperCornerString, lowerCornerString );
ossimString path = "boundedBy";
ossimRefPtr<ossimXmlNode> node1 = node0->addChildNode( path, BLANK );
path = "Envelope";
ossimRefPtr<ossimXmlNode> node1a = node1->addChildNode( path, BLANK );
ossimRefPtr<ossimXmlAttribute> attr( 0 );
ossimString name;
attr = new ossimXmlAttribute();
name = "srsName";
attr->setNameValue( name, m_srsNameStringGeo );
node1a->addAttribute( attr );
attr = new ossimXmlAttribute();
name = "axisLabels";
attr->setNameValue( name, m_axisLabelsStringGeo );
node1a->addAttribute( attr );
attr = new ossimXmlAttribute();
name = "uomLabels";
attr->setNameValue( name, m_uomLabelsStringGeo );
node1a->addAttribute( attr );
attr = new ossimXmlAttribute();
name = "srsDimension";
attr->setNameValue( name, m_srsDimensionString );
node1a->addAttribute( attr );
path = "lowerCorner";
ossimRefPtr<ossimXmlNode> node1a1 =
node1a->addChildNode( path, lowerCornerString );
path = "upperCorner";
ossimRefPtr<ossimXmlNode> node1a2 =
node1a->addChildNode( path, upperCornerString );
return success;
}
示例2: getLimits
bool ossimGmlSupportData::configureGmljp2V1(
ossimRefPtr<ossimXmlNode> node0, const ossimImageGeometry* geom )
{
bool success = true;
const ossimString BLANK = "";
ossimString gridHighString;
ossimString gridLowString;
getLimits( geom, gridHighString, gridLowString );
configureBounds( node0, geom );
ossimString path = "rectifiedGridDomain";
ossimRefPtr<ossimXmlNode> node2 = node0->addChildNode( path, BLANK );
path = "RectifiedGrid";
ossimRefPtr<ossimXmlNode> node2a = node2->addChildNode( path, BLANK );
ossimRefPtr<ossimXmlAttribute> attr1 = new ossimXmlAttribute();
ossimString name = "dimension";
ossimString value = "2";
attr1->setNameValue( name, value );
node2a->addAttribute( attr1 );
path = "limit";
ossimRefPtr<ossimXmlNode> node2a1 = node2a->addChildNode( path, BLANK );
path = "GridEnvelope";
ossimRefPtr<ossimXmlNode> node2a1a = node2a1->addChildNode( path, BLANK );
path = "low";
ossimRefPtr<ossimXmlNode> node2a1a1 = node2a1a->addChildNode( path, gridLowString );
path = "high";
ossimRefPtr<ossimXmlNode> node2a1a2 = node2a1a->addChildNode( path, gridHighString );
return success;
}
示例3: attr
bool ossimGmlSupportData::configureGmljp2V2(
ossimRefPtr<ossimXmlNode> node0, const ossimImageGeometry* geom )
{
bool success = true;
const ossimString BLANK = "";
ossimRefPtr<ossimXmlAttribute> attr(0);
ossimString name;
ossimString value;
ossimString gridHighString;
ossimString gridLowString;
getLimits( geom, gridHighString, gridLowString );
configureBounds( node0, geom );
ossimString path = "domainSet";
ossimRefPtr<ossimXmlNode> node2 =
node0->addChildNode( path, BLANK );
path = "rangeSet";
ossimRefPtr<ossimXmlNode> node3 =
node0->addChildNode( path, BLANK );
path = "File";
ossimRefPtr<ossimXmlNode> node3a =
node3->addChildNode( path, BLANK );
path = "rangeParameters";
ossimRefPtr<ossimXmlNode> node3a1 =
node3a->addChildNode( path, BLANK );
path = "fileName";
ossimRefPtr<ossimXmlNode> node3a2 =
node3a->addChildNode( path, "gmljp2://codestream" );
path = "fileStructure";
ossimRefPtr<ossimXmlNode> node3a3 =
node3a->addChildNode( path, "inapplicable" );
path = "gmlcov:rangeType";
ossimRefPtr<ossimXmlNode> node4 =
node0->addChildNode( path, BLANK );
path = "gmljp2:featureMember";
ossimRefPtr<ossimXmlNode> node5 =
node0->addChildNode( path, BLANK );
path = "gmljp2:GMLJP2RectifiedGridCoverage";
ossimRefPtr<ossimXmlNode> node5a =
node5->addChildNode( path, BLANK );
attr = new ossimXmlAttribute();
name = "gml:id";
value = "CodeStream_0";
attr->setNameValue( name, value );
node5a->addAttribute( attr );
path = "domainSet";
ossimRefPtr<ossimXmlNode> node5a1 =
node5a->addChildNode( path, BLANK );
path = "RectifiedGrid";
ossimRefPtr<ossimXmlNode> node5a1a =
node5a1->addChildNode( path, BLANK );
attr = new ossimXmlAttribute();
name = "gml:id";
value = "RG0001";
attr->setNameValue( name, value );
node5a1a->addAttribute( attr );
attr = new ossimXmlAttribute();
name = "dimension";
value = "2";
attr->setNameValue( name, value );
node5a1a->addAttribute( attr );
attr = new ossimXmlAttribute();
name = "srsName";
attr->setNameValue( name, m_srsNameStringMap );
node5a1a->addAttribute( attr );
path = "limits";
ossimRefPtr<ossimXmlNode> node5a1a1 =
node5a1a->addChildNode( path, BLANK );
path = "GridEnvelope";
ossimRefPtr<ossimXmlNode> node5a1a1a =
node5a1a1->addChildNode( path, BLANK );
path = "low";
ossimRefPtr<ossimXmlNode> node5a1a1a1 =
node5a1a1a->addChildNode( path, gridLowString );
path = "high";
ossimRefPtr<ossimXmlNode> node5a1a1a2 =
node5a1a1a->addChildNode( path, gridHighString );
path = "axisLabels";
//.........这里部分代码省略.........