解决了处理svg平移的问题
parent
de0f8f6009
commit
f798ea410d
|
@ -95,7 +95,7 @@ void SvgFileLoader::handleAttrTransform(QString transformStyle, QPainterPath& pa
|
|||
QString numStr = (*op.split('(').rbegin()).trimmed() + ',';
|
||||
QString tmpNum = "";
|
||||
for (auto c : numStr) {
|
||||
if (isdigit(c.toLatin1())) {
|
||||
if (isdigit(c.toLatin1()) || c == '-' || c == '.') {
|
||||
tmpNum += c;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -487,7 +487,7 @@ void RendererGLWidget::paintGL()
|
|||
if (accTime > 1.)
|
||||
{
|
||||
std::cout << std::format("{:20}\r", "");
|
||||
std::cout << std::format("FPS: {:.2f}({:.2f}ms) Page: {:}ms Pos: {:.2f},{:.2f},{:.2f}\r", frameCnt / accTime, averageDuration / 1e6 / frameCnt, vtManager->pageLoadDuration / 1e6, camera.Position.x(), camera.Position.y(), camera.Position.z());
|
||||
std::cout << std::format("FPS: {:.2f}({:.2f}ms) Page: {:.2f}ms Pos: {:.2f},{:.2f},{:.2f}\r", frameCnt / accTime, averageDuration / 1e6 / frameCnt, vtManager->pageLoadDuration / 1e6 / frameCnt, camera.Position.x(), camera.Position.y(), camera.Position.z());
|
||||
vtManager->pageLoadDuration = 0;
|
||||
accTime = 0;
|
||||
frameCnt = 0;
|
||||
|
|
Loading…
Reference in New Issue