#include <IVP12DViewTransformation.h>
Definition at line 27 of file IVP12DViewTransformation.h.
◆ IVP12DViewTransformation() [1/2]
IVP12DViewTransformation::IVP12DViewTransformation |
( |
| ) |
|
|
inline |
◆ ~IVP12DViewTransformation()
virtual IVP12DViewTransformation::~IVP12DViewTransformation |
( |
| ) |
|
|
inlinevirtual |
◆ IVP12DViewTransformation() [2/2]
◆ inverseTransform() [1/2]
virtual QPointF IVP12DViewTransformation::inverseTransform |
( |
const QPointF & |
source | ) |
const |
|
pure virtual |
◆ inverseTransform() [2/2]
QRectF IVP12DViewTransformation::inverseTransform |
( |
const QRectF & |
source | ) |
const |
|
virtual |
Reimplemented in VP12DViewRPhiFishEyeTransformation, and VP12DViewRZFishEyeTransformation.
Definition at line 50 of file IVP12DViewTransformation.cxx.
57 QPointF topleft(qMin(qMin(qMin(
p1.x(),
p2.x()),
p3.x()),p4.x()),
58 qMin(qMin(qMin(
p1.y(),
p2.y()),
p3.y()),p4.y()));
59 QPointF bottomright(qMax(qMax(qMax(
p1.x(),
p2.x()),
p3.x()),p4.x()),
60 qMax(qMax(qMax(
p1.y(),
p2.y()),
p3.y()),p4.y()));
61 return QRectF(topleft,QSizeF(bottomright.x()-topleft.x(),bottomright.y()-topleft.y()));
◆ inverseTransformPath()
void IVP12DViewTransformation::inverseTransformPath |
( |
const QPainterPath & |
source, |
|
|
QPainterPath & |
target |
|
) |
| const |
|
virtual |
◆ operator=()
◆ paintItem()
void IVP12DViewTransformation::paintItem |
( |
QPainter * |
painter, |
|
|
const QGraphicsItem * |
item |
|
) |
| const |
Definition at line 80 of file IVP12DViewTransformation.cxx.
87 const QAbstractGraphicsShapeItem * shapeitem = qgraphicsitem_cast<const QAbstractGraphicsShapeItem*>(
item);
88 const QGraphicsLineItem * lineitem(0);
90 lineitem = qgraphicsitem_cast<const QGraphicsLineItem*>(
item);
92 if (shapeitem||lineitem) {
93 std::cout<<
"IVP12DViewTransformation::paintItem: INFO: Draws QAbstractGraphicsShapeItem/QGraphicsLineItem"<<std::endl;
95 const QGraphicsSimpleTextItem * simpletextitem = qgraphicsitem_cast<const QGraphicsSimpleTextItem*>(
item);
97 std::cout<<
"IVP12DViewTransformation::paintItem: WARNING - does not presently draw QGraphicsSimpleTextItems"<<std::endl;
103 painter->setPen(shapeitem->pen());
104 painter->setBrush(shapeitem->brush());
108 painter->setPen(lineitem->pen());
111 painter->drawPath(
path);
119 const QGraphicsItemGroup * groupitem = qgraphicsitem_cast<const QGraphicsItemGroup*>(
item);
121 std::cout<<
"IVP12DViewTransformation::paintItem: INFO: drawing QGraphicsGroupItem"<<std::endl;
124 const QGraphicsPixmapItem * pixmapitem = qgraphicsitem_cast<const QGraphicsPixmapItem*>(
item);
126 std::cout<<
"IVP12DViewTransformation::paintItem: WARNING - does not presently draw QGraphicsPixmapItems"<<std::endl;
132 std::cout<<
"IVP12DViewTransformation::paintItem: Can not paint graphics item in transformed view."
133 <<
" Please only use items derived from either QAbstractGraphicsShapeItem, QGraphicsLineItem, QGraphicsGroupItem or QGraphicsPixmapItem."<<std::endl;
◆ transform() [1/2]
virtual QPointF IVP12DViewTransformation::transform |
( |
const QPointF & |
source | ) |
const |
|
pure virtual |
◆ transform() [2/2]
QRectF IVP12DViewTransformation::transform |
( |
const QRectF & |
source | ) |
const |
|
virtual |
Reimplemented in VP12DViewRPhiFishEyeTransformation, and VP12DViewRZFishEyeTransformation.
Definition at line 65 of file IVP12DViewTransformation.cxx.
72 QPointF topleft(qMin(qMin(qMin(
p1.x(),
p2.x()),
p3.x()),p4.x()),
73 qMin(qMin(qMin(
p1.y(),
p2.y()),
p3.y()),p4.y()));
74 QPointF bottomright(qMax(qMax(qMax(
p1.x(),
p2.x()),
p3.x()),p4.x()),
75 qMax(qMax(qMax(
p1.y(),
p2.y()),
p3.y()),p4.y()));
76 return QRectF(topleft,QSizeF(bottomright.x()-topleft.x(),bottomright.y()-topleft.y()));
◆ transformPath()
void IVP12DViewTransformation::transformPath |
( |
const QPainterPath & |
source, |
|
|
QPainterPath & |
target |
|
) |
| const |
|
virtual |
The documentation for this class was generated from the following files: