Advertisement
Guest User

Perspective

a guest
Jun 24th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 18.18 KB | None | 0 0
  1. ./libs/ui/kra/kis_kra_saver.cpp:    int count_ellipse = 0, count_perspective = 0, count_ruler = 0, count_vanishingpoint = 0,count_infiniteruler = 0, count_parallelruler = 0, count_concentricellipse = 0, count_fisheyepoint = 0, count_spline = 0;
  2. ./libs/ui/kra/kis_kra_saver.cpp:            else if (assist->id() == "perspective"){
  3. ./libs/ui/kra/kis_kra_saver.cpp:                assist->saveXmlList(doc, assistantsElement, count_perspective);
  4. ./libs/ui/kra/kis_kra_saver.cpp:                count_perspective++;
  5.  
  6. ./libs/ui/kis_canvas_resource_provider.cpp:QList<QPointer<KisAbstractPerspectiveGrid> > KisCanvasResourceProvider::perspectiveGrids() const
  7. ./libs/ui/kis_canvas_resource_provider.cpp:    return m_perspectiveGrids;
  8. ./libs/ui/kis_canvas_resource_provider.cpp:    m_perspectiveGrids.append(grid);
  9. ./libs/ui/kis_canvas_resource_provider.cpp:    m_perspectiveGrids.removeOne(grid);
  10. ./libs/ui/kis_canvas_resource_provider.cpp:    m_perspectiveGrids.clear();
  11. ./libs/ui/kis_canvas_resource_provider.h:    QList<QPointer<KisAbstractPerspectiveGrid> > perspectiveGrids() const;
  12. ./libs/ui/kis_canvas_resource_provider.h:    QList<QPointer<KisAbstractPerspectiveGrid> > m_perspectiveGrids;
  13.  
  14. ./libs/ui/kis_painting_assistant.cc:    else if (d->id == "perspective"){
  15. ./libs/ui/kis_painting_assistant.cc:        assistantElement.setAttribute("type", "perspective");
  16. ./libs/ui/kis_painting_assistant.cc:        assistantElement.setAttribute("filename", QString("perspective%1.assistant").arg(count));
  17. ./libs/ui/kis_painting_assistant.cc:    if (d->handles.size() == 4 && d->id == "perspective") {
  18.  
  19. ./libs/ui/tool/kis_tool_freehand.cc:    qreal perspective = 1.0;
  20. ./libs/ui/tool/kis_tool_freehand.cc:    Q_FOREACH (const QPointer<KisAbstractPerspectiveGrid> grid, static_cast<KisCanvas2*>(canvas())->viewManager()->resourceProvider()->perspectiveGrids()) {
  21. ./libs/ui/tool/kis_tool_freehand.cc:            perspective = grid->distance(pos);
  22. ./libs/ui/tool/kis_tool_freehand.cc:                                            perspective, 0, 0),
  23. ./libs/ui/tool/kis_tool_freehand.cc:    qreal perspective = 1.0;
  24. ./libs/ui/tool/kis_tool_freehand.cc:    Q_FOREACH (const QPointer<KisAbstractPerspectiveGrid> grid, static_cast<KisCanvas2*>(canvas())->viewManager()->resourceProvider()->perspectiveGrids()) {
  25. ./libs/ui/tool/kis_tool_freehand.cc:            perspective = grid->distance(documentPoint);
  26. ./libs/ui/tool/kis_tool_freehand.cc:    return perspective;
  27.  
  28. ./libs/ui/tool/kis_painting_information_builder.cpp:    qreal perspective = calculatePerspective(adjusted);
  29. ./libs/ui/tool/kis_painting_information_builder.cpp:                               perspective,
  30. ./libs/ui/tool/kis_painting_information_builder.cpp:    qreal perspective = calculatePerspective(imagePoint);
  31. ./libs/ui/tool/kis_painting_information_builder.cpp:                                                           perspective,
  32. ./libs/ui/kis_painting_assistants_decoration.cpp:    //this is here to be compatible with the movement in the perspective tool.
  33.  
  34.  
  35.  
  36. ./libs/image/brushengine/kis_paint_information.h: * @param perspective
  37. ./libs/image/brushengine/kis_paint_information.h:                        qreal perspective,
  38. ./libs/image/brushengine/kis_paint_information.h:    /// reciprocal of distance on the perspective grid
  39. ./libs/image/brushengine/kis_paint_information.h:    qreal perspective() const;
  40. ./libs/image/brushengine/kis_paint_information.h:            qreal perspective = 1.0,
  41.  
  42. ./libs/image/brushengine/kis_paint_information.cc:            qreal perspective_,
  43. ./libs/image/brushengine/kis_paint_information.cc:        perspective(perspective_),
  44. ./libs/image/brushengine/kis_paint_information.cc:        perspective = rhs.perspective;
  45. ./libs/image/brushengine/kis_paint_information.cc:    qreal perspective;
  46. ./libs/image/brushengine/kis_paint_information.cc:                                         qreal perspective,
  47. ./libs/image/brushengine/kis_paint_information.cc:                    perspective,
  48. ./libs/image/brushengine/kis_paint_information.cc:        qreal perspective,
  49. ./libs/image/brushengine/kis_paint_information.cc:                             perspective, 0, speed);
  50. ./libs/image/brushengine/kis_paint_information.cc:    e.setAttribute("perspective", QString::number(perspective(), 'g', 15));
  51. ./libs/image/brushengine/kis_paint_information.cc:    qreal perspective = qreal(KisDomUtils::toDouble(e.attribute("perspective", "0.0")));
  52. ./libs/image/brushengine/kis_paint_information.cc:                               rotation, tangentialPressure, perspective, time, speed);
  53. ./libs/image/brushengine/kis_paint_information.cc:qreal KisPaintInformation::perspective() const
  54. ./libs/image/brushengine/kis_paint_information.cc:    return d->perspective;
  55. ./libs/image/brushengine/kis_paint_information.cc:    dbg.nospace() << ", Perspective: " << info.perspective();
  56. ./libs/image/brushengine/kis_paint_information.cc:                               basePi.perspective(),
  57. ./libs/image/brushengine/kis_paint_information.cc:    qreal perspective = (1 - t) * pi1.perspective() + t * pi2.perspective();
  58. ./libs/image/brushengine/kis_paint_information.cc:    KisPaintInformation result(p, pressure, xTilt, yTilt, rotation, tangentialPressure, perspective, time, speed);
  59.  
  60. ./libs/image/kis_layer_utils.cpp:        foreach(KisNodeSP perspectiveParent, parents) {
  61. ./libs/image/kis_layer_utils.cpp:            if (nodeParents.contains(perspectiveParent)) {
  62.  
  63. ./libs/image/kis_perspective_math.cpp:#include "kis_perspective_math.h"
  64.  
  65. ./libs/image/kis_painter.cc:#include "kis_perspective_math.h"
  66.  
  67. ./libs/image/kis_perspectivetransform_worker.cpp:#include "kis_perspectivetransform_worker.h"
  68. ./libs/image/kis_perspectivetransform_worker.cpp:#include "kis_perspective_math.h"
  69.  
  70.  
  71.  
  72. ./plugins/assistants/RulerAssistant/PerspectiveAssistant.h:#include "kis_abstract_perspective_grid.h"
  73. ./plugins/assistants/RulerAssistant/PerspectiveAssistant.h:    // finds the transform from perspective coordinates (a unit square) to the document
  74.  
  75. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.h:        MODE_CREATION, // This is the mode when there is not yet a perspective grid
  76. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.h:        MODE_DRAGGING_TRANSLATING_TWONODES // This mode is used when creating a new sub perspective grid
  77. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:#include <kis_abstract_perspective_grid.h>
  78. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:        if(m_handleDrag && assistant->id() == "perspective") {
  79. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:                m_newAssistant = toQShared(KisPaintingAssistantFactoryRegistry::instance()->get("perspective")->createPaintingAssistant());
  80. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:                m_newAssistant = toQShared(KisPaintingAssistantFactoryRegistry::instance()->get("perspective")->createPaintingAssistant());
  81. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:                m_newAssistant = toQShared(KisPaintingAssistantFactoryRegistry::instance()->get("perspective")->createPaintingAssistant());
  82. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:                m_newAssistant = toQShared(KisPaintingAssistantFactoryRegistry::instance()->get("perspective")->createPaintingAssistant());
  83. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:        if(assistant->id() == "perspective") {
  84. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            QLineF perspectiveline = QLineF(*assistant->handles()[0], *assistant->sideHandles()[0]);
  85. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            length +=perspectiveline.length();
  86. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            perspectiveline.setLength(length);
  87. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            *assistant->sideHandles()[1] = perspectiveline.p2();
  88. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            QLineF perspectiveline = QLineF(*assistant->handles()[0], *assistant->sideHandles()[2]);
  89. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            length +=perspectiveline.length();
  90. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            perspectiveline.setLength(length);
  91. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            *assistant->sideHandles()[3] = perspectiveline.p2();
  92. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            QLineF perspectiveline = QLineF(*assistant->sideHandles()[0], *assistant->sideHandles()[1]);
  93. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            QLineF perspectiveline2 = QLineF(*assistant->sideHandles()[2], *assistant->sideHandles()[3]);
  94. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            if (QLineF(perspectiveline2).intersect(QLineF(perspectiveline), &vanishingpoint) != QLineF::NoIntersection){
  95. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            QLineF perspectiveline = QLineF(*assistant->handles()[0], *assistant->sideHandles()[0]);
  96. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            QLineF perspectiveline2 = QLineF(*assistant->handles()[0], *assistant->sideHandles()[2]);
  97. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            length +=perspectiveline.length();
  98. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            length2 +=perspectiveline2.length();
  99. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            perspectiveline.setLength(length);
  100. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            perspectiveline2.setLength(length2);
  101. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            *assistant->sideHandles()[1] = perspectiveline.p2();
  102. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:            *assistant->sideHandles()[3] = perspectiveline2.p2();
  103. ./plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:        if(assistant->id()=="perspective") {
  104.  
  105. ./plugins/assistants/RulerAssistant/PerspectiveAssistant.cc:        , KisPaintingAssistant("perspective", i18n("Perspective assistant"))
  106. ./plugins/assistants/RulerAssistant/PerspectiveAssistant.cc:        //figure out if point is in the perspective grid//
  107. ./plugins/assistants/RulerAssistant/PerspectiveAssistant.cc:        qWarning("Failed to create perspective mapping");
  108. ./plugins/assistants/RulerAssistant/PerspectiveAssistant.cc:    return "perspective";
  109.  
  110. ./plugins/tools/tool_transform2/strokes/transform_stroke_strategy.cpp:             * transformation for perspective and warp workers.
  111. ./plugins/tools/tool_transform2/kis_simplified_action_policy_strategy.h:    virtual void setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive) = 0;
  112. ./plugins/tools/tool_transform2/kis_free_transform_strategy.cpp:void KisFreeTransformStrategy::setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive)
  113. ./plugins/tools/tool_transform2/kis_free_transform_strategy.cpp:    if (perspectiveModifierActive) {
  114. ./plugins/tools/tool_transform2/kis_free_transform_strategy.cpp:        //TODO: find another cursor for perspective
  115. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.h:    void setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive);
  116. ./plugins/tools/tool_transform2/kis_transform_utils.cpp:#include <kis_perspectivetransform_worker.h>
  117. ./plugins/tools/tool_transform2/kis_transform_utils.cpp:            KisPerspectiveTransformWorker perspectiveWorker(device,
  118. ./plugins/tools/tool_transform2/kis_transform_utils.cpp:            perspectiveWorker.run();
  119. ./plugins/tools/tool_transform2/kis_transform_utils.cpp:            KisPerspectiveTransformWorker perspectiveWorker(device,
  120. ./plugins/tools/tool_transform2/kis_transform_utils.cpp:            perspectiveWorker.run();
  121. ./plugins/tools/tool_transform2/kis_liquify_transform_strategy.h:    void setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive);
  122. ./plugins/tools/tool_transform2/kis_warp_transform_strategy.h:    void setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive);
  123. ./plugins/tools/tool_transform2/kis_warp_transform_strategy.cpp:void KisWarpTransformStrategy::setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive)
  124. ./plugins/tools/tool_transform2/kis_warp_transform_strategy.cpp:        m_d->mode = perspectiveModifierActive &&
  125. ./plugins/tools/tool_transform2/kis_warp_transform_strategy.cpp:            !perspectiveModifierActive ? Private::ROTATE_MODE :
  126. ./plugins/tools/tool_transform2/CMakeLists.txt:    kis_perspective_transform_strategy.cpp
  127. ./plugins/tools/tool_transform2/kis_free_transform_strategy.h:    void setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive);
  128. ./plugins/tools/tool_transform2/kis_tool_transform.cc:#include <kis_perspectivetransform_worker.h>
  129. ./plugins/tools/tool_transform2/kis_tool_transform.cc:#include "kis_perspective_transform_strategy.h"
  130. ./plugins/tools/tool_transform2/kis_tool_transform.cc:    , m_perspectiveStrategy(
  131. ./plugins/tools/tool_transform2/kis_tool_transform.cc:    connect(m_perspectiveStrategy.data(), SIGNAL(requestCanvasUpdate()), SLOT(canvasUpdateRequested()));
  132. ./plugins/tools/tool_transform2/kis_tool_transform.cc:    connect(m_perspectiveStrategy.data(), SIGNAL(requestShowImageTooBig(bool)), SLOT(imageTooBigRequested(bool)));
  133. ./plugins/tools/tool_transform2/kis_tool_transform.cc:        return m_perspectiveStrategy.data();
  134. ./plugins/tools/tool_transform2/kis_tool_transform.cc:    m_perspectiveStrategy->setThumbnailImage(origImg, thumbToImageTransform);
  135. ./plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp:    connect(perspectiveTransformButton, SIGNAL(clicked(bool)), this, SLOT(slotSetPerspectiveModeButtonClicked(bool)));
  136. ./plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp:    perspectiveTransformButton->setIcon(KisIconUtils::loadIcon("transform_icons_perspective"));
  137. ./plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp:            perspectiveTransformButton->setChecked(true);
  138. ./plugins/tools/tool_transform2/kis_tool_transform_config_widget.cpp:    lblTransformType->setText(perspectiveTransformButton->toolTip());
  139. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:#include "kis_perspective_transform_strategy.h"
  140. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:void KisPerspectiveTransformStrategy::setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive)
  141. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:    Q_UNUSED(perspectiveModifierActive);
  142. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:    { // painting perspective handles
  143. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:        QPainterPath perspectiveHandles;
  144. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:            perspectiveHandles.addEllipse(rc);
  145. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:            perspectiveHandles.addEllipse(rc);
  146. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:        if (!perspectiveHandles.isEmpty()) {
  147. ./plugins/tools/tool_transform2/kis_perspective_transform_strategy.cpp:                gc.drawPath(perspectiveHandles);
  148. ./plugins/tools/tool_transform2/kis_tool_transform.h: * and apply a perspective transformation to a selection or the whole
  149. ./plugins/tools/tool_transform2/kis_tool_transform.h:    QScopedPointer<KisPerspectiveTransformStrategy> m_perspectiveStrategy;
  150. ./plugins/tools/tool_transform2/kis_liquify_transform_strategy.cpp:void KisLiquifyTransformStrategy::setTransformFunction(const QPointF &mousePos, bool perspectiveModifierActive)
  151. ./plugins/tools/tool_transform2/kis_liquify_transform_strategy.cpp:    Q_UNUSED(perspectiveModifierActive);
  152. ./plugins/tools/tool_transform2/tool_transform_args.h:    // perspective trasform related
  153. ./plugins/tools/tool_transform2/wdg_tool_transform.ui:           <widget class="QToolButton" name="perspectiveTransformButton">
  154.  
  155. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp:        //cbPerspective->setEnabled(m_image && m_image->perspectiveGrid() && m_image->perspectiveGrid()->countSubGrids() == 1);
  156. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp:        cbPerspective->setVisible(false); // XXX: Until perspective cloning works again!
  157. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp:void KisDuplicateOpOption::setPerspective(bool perspective)
  158. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp:    m_optionWidget->cbPerspective->setChecked(perspective);
  159. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop.h:    bool m_perspectiveCorrection;
  160. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop.cpp:    m_perspectiveCorrection = settings->getBool(DUPLICATE_CORRECT_PERSPECTIVE);
  161. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop.cpp:    // if (m_perspectiveCorrection && m_image && m_image->perspectiveGrid()->countSubGrids() == 1) {
  162. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop.cpp:    //     KisSubPerspectiveGrid* subGridStart = *m_image->perspectiveGrid()->begin();
  163. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop.cpp:    //     KisSubPerspectiveGrid* subGridEnd = *m_image->perspectiveGrid()->begin();
  164. ./plugins/paintops/defaultpaintops/duplicate/wdgduplicateop.ui:          <string>To correct perspective, first create a perspective grid.</string>
  165. ./plugins/paintops/defaultpaintops/duplicate/wdgduplicateop.ui:          <string>Correct the perspective</string>
  166. ./plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.h:    void setPerspective(bool perspective);
  167. ./plugins/paintops/libpaintop/kis_dynamic_sensor.h:const KoID PerspectiveId("perspective", ki18n("Perspective")); ///< number depending on the distance on the perspective grid
  168. ./plugins/paintops/libpaintop/sensors/kis_dynamic_sensors.h:        return info.perspective();
  169. ./plugins/paintops/libpaintop/kis_dynamic_sensor.cc:        return "perspective";
  170. ./plugins/paintops/libpaintop/kis_dynamic_sensors.h:        return info.perspective();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement