Files
vpn-dns-gateway/demo/tikzrefinery/documents/assets/design-diagrams/class-scene.tex
T
vsun1 27b82c169e
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Add frozen TikZRefinery demo baseline and build pipeline
2026-11-25 22:46:33 -05:00

47 lines
2.3 KiB
TeX

\begin{tikzpicture}
\node[umlDetail,text width=16cm] {
\textbf{tkrDiagramScene}\quad\textit{final; View; extends QGraphicsScene}
\nodepart{second}
\textbf{Responsibilities}\\
Own graphics items through Qt and clear obsolete geometry.\\
Display rectangles and line/arrow outlines using mapper and extent.\\
Emit move/corner gestures; draw screen-sized selection handles.\\
Restore source geometry on cancellation.
\nodepart{third}
\textbf{Attributes and state}\\
Private: \texttt{m\_bFixedBounds: bool}, \texttt{m\_bDragActive: bool},
\texttt{m\_dragUpdate: DragUpdate}.\\
Inherited scene state owns graphics items; no retained item pointers.\\
Owns \texttt{m\_shapePlugins: tkrShapePluginStore} and copied \texttt{m\_mapper: tkrCoordinateMapper}.\\
Source bytes, parsing, and filesystem access remain outside this class.
\nodepart{fourth}\ttfamily
\normalfont\textbf{Public constructor and operations}\ttfamily\\
+ tkrDiagramScene(pParent: QObject* = nullptr,\\
\hspace*{1em}strRectangleModule: const QString\& = \{\}) [explicit]\\
+ displayElements(vecElements: const QVector<ElementRecord>\&,\\
\hspace*{1em}coordinateMapper: const tkrCoordinateMapper\&,\\
\hspace*{1em}comparisonExtent: const ComparisonExtent\& = \{\})\\
\hspace*{1em}: OperationResult\\
+ resetDiagram(): void\\
+ hasFixedBounds(): bool [const]\\
+ previewGeometry(uElementId: quint64, uDocumentRevision: quint64,\\
\hspace*{1em}ptFirstScene: const QPointF\&, ptSecondScene: const QPointF\&,\\
\hspace*{1em}bResize: bool): OperationResult\\
+ selectElement(uElementId: quint64): void\\
+ cancelInteraction(): void\\
+ shapeProvider() const: const tkrShapeProvider*\\
+ pluginDescription() const: QString\\[3pt]
\normalfont\textbf{Protected event overrides}\ttfamily\\
\# drawForeground(pPainter: QPainter*, rectExposed: const QRectF\&): void\\
\# mousePressEvent(pEvent: QGraphicsSceneMouseEvent*): void\\
\# mouseMoveEvent(pEvent: QGraphicsSceneMouseEvent*): void\\
\# mouseReleaseEvent(pEvent: QGraphicsSceneMouseEvent*): void\\
\# keyPressEvent(pEvent: QKeyEvent*): void\\
\# focusOutEvent(pEvent: QFocusEvent*): void\\[3pt]
\normalfont\textbf{Signals}\ttfamily\\
+ dragPreviewRequested(dragUpdate: const DragUpdate\&): void\\
+ dragCommitRequested(dragUpdate: const DragUpdate\&): void\\
+ dragCancelled(): void
};
\end{tikzpicture}