本文整理汇总了C++中TextSymbol::autoRotateAlongLine方法的典型用法代码示例。如果您正苦于以下问题:C++ TextSymbol::autoRotateAlongLine方法的具体用法?C++ TextSymbol::autoRotateAlongLine怎么用?C++ TextSymbol::autoRotateAlongLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextSymbol
的用法示例。
在下文中一共展示了TextSymbol::autoRotateAlongLine方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
else if ( match(c.value(), "left-bottom") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_LEFT_BOTTOM;
else if ( match(c.value(), "center-top") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_CENTER_TOP;
else if ( match(c.value(), "center-center") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_CENTER_CENTER;
else if ( match(c.value(), "center-bottom") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_CENTER_BOTTOM;
else if ( match(c.value(), "right-top") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_RIGHT_TOP;
else if ( match(c.value(), "right-center") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_RIGHT_CENTER;
else if ( match(c.value(), "right-bottom") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_RIGHT_BOTTOM;
else if ( match(c.value(), "left-base-line") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_LEFT_BASE_LINE;
else if ( match(c.value(), "center-base-line") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_CENTER_BASE_LINE;
else if ( match(c.value(), "right-base-line") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_RIGHT_BASE_LINE;
else if ( match(c.value(), "left-bottom-base-line") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_LEFT_BOTTOM_BASE_LINE;
else if ( match(c.value(), "center-bottom-base-line") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_CENTER_BOTTOM_BASE_LINE;
else if ( match(c.value(), "right-bottom-base-line") )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_RIGHT_BOTTOM_BASE_LINE;
else if ( match(c.value(), "base-line" ) )
style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_BASE_LINE;
}
else if ( match(c.key(), "text-layout") ) {
if ( match(c.value(), "ltr") )
style.getOrCreate<TextSymbol>()->layout() = TextSymbol::LAYOUT_LEFT_TO_RIGHT;
else if ( match(c.value(), "rtl" ) )
style.getOrCreate<TextSymbol>()->layout() = TextSymbol::LAYOUT_RIGHT_TO_LEFT;
else if ( match(c.value(), "vertical" ) )
style.getOrCreate<TextSymbol>()->layout() = TextSymbol::LAYOUT_VERTICAL;
}
else if ( match(c.key(), "text-content") || match(c.key(), "text") ) {
style.getOrCreate<TextSymbol>()->content() = StringExpression( c.value() );
}
else if ( match(c.key(), "text-priority") ) {
style.getOrCreate<TextSymbol>()->priority() = NumericExpression( c.value() );
}
else if ( match(c.key(), "text-provider") ) {
style.getOrCreate<TextSymbol>()->provider() = c.value();
}
else if ( match(c.key(), "text-encoding") ) {
if (match(c.value(), "utf-8"))
style.getOrCreate<TextSymbol>()->encoding() = TextSymbol::ENCODING_UTF8;
else if (match(c.value(), "utf-16"))
style.getOrCreate<TextSymbol>()->encoding() = TextSymbol::ENCODING_UTF16;
else if (match(c.value(), "utf-32"))
style.getOrCreate<TextSymbol>()->encoding() = TextSymbol::ENCODING_UTF32;
else if (match(c.value(), "ascii"))
style.getOrCreate<TextSymbol>()->encoding() = TextSymbol::ENCODING_ASCII;
else
style.getOrCreate<TextSymbol>()->encoding() = TextSymbol::ENCODING_ASCII;
}
else if ( match(c.key(), "text-declutter") ) {
style.getOrCreate<TextSymbol>()->declutter() = as<bool>(c.value(), defaults.declutter().get() );
}
else if ( match(c.key(), "text-occlusion-cull") ) {
style.getOrCreate<TextSymbol>()->occlusionCull() = as<bool>(c.value(), defaults.occlusionCull().get() );
}
else if ( match(c.key(), "text-occlusion-cull-altitude") ) {
style.getOrCreate<TextSymbol>()->occlusionCullAltitude() = as<double>(c.value(), defaults.occlusionCullAltitude().get() );
}
else if ( match(c.key(), "text-script") ) {
style.getOrCreate<TextSymbol>()->script() = StringExpression(c.value());
}
else if ( match(c.key(), "text-offset-x") ) {
style.getOrCreate<TextSymbol>()->pixelOffset()->x() = as<double>(c.value(), defaults.pixelOffset()->x() );
}
else if ( match(c.key(), "text-offset-y") ) {
style.getOrCreate<TextSymbol>()->pixelOffset()->y() = as<double>(c.value(), defaults.pixelOffset()->y() );
}
else if ( match(c.key(), "text-rotation") ) {
style.getOrCreate<TextSymbol>()->onScreenRotation() = NumericExpression( c.value() );
}
else if ( match(c.key(), "text-geographic-course") ) {
style.getOrCreate<TextSymbol>()->geographicCourse() = NumericExpression( c.value() );
}
else if ( match(c.key(), "text-auto-offset-alongline") ) {
style.getOrCreate<TextSymbol>()->autoOffsetAlongLine() = as<bool>(c.value(), defaults.autoOffsetAlongLine().get() );
}
else if ( match(c.key(), "text-auto-offset-position") ) {
if ( match(c.value(), "center") )
style.getOrCreate<TextSymbol>()->autoOffsetPreferedPosition() = TextSymbol::CENTER;
else if ( match(c.value(), "right" ) )
style.getOrCreate<TextSymbol>()->autoOffsetPreferedPosition() = TextSymbol::RIGHT;
else if ( match(c.value(), "left" ) )
style.getOrCreate<TextSymbol>()->autoOffsetPreferedPosition() = TextSymbol::LEFT;
}
else if ( match(c.key(), "text-auto-rotate-alongline") ) {
style.getOrCreate<TextSymbol>()->autoRotateAlongLine() = as<bool>(c.value(), defaults.autoRotateAlongLine().get() );
}
else if ( match(c.key(), "text-auto-offset-support") ) {
style.getOrCreate<TextSymbol>()->autoOffsetGeomWKT() = StringExpression( c.value() );
}
}