Files
vpn-dns-gateway/demo/tikzrefinery/documents/latex/tkrCurrentPlugin.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

105 lines
6.6 KiB
TeX

\clearpage
\section{Implemented Rectangle Plugin}\label{Section:CurrentPlugin}
\index{shape provider}\index{plugin API}
Vincent authorized the bounded extraction after the Week 12 draft. The
rectangle extraction originated in \texttt{0.1.2-alpha}; the current
\texttt{0.1.4-alpha} package also implements the bounded sidebar shell and
session undo/redo for coordinate edits.
Catalogue/creation and shared-service ownership remain planned. The broader
\texttt{0.2.0-alpha} milestone is shape discovery and creation. The original
\texttt{0.10.3} demo remains frozen. Earlier report/submission snapshots retain
their version labels; the pre-extraction \texttt{0.1.2-alpha} PDFs are archived
separately rather than relabelled as evidence of this implementation.
\begin{tabularx}{\linewidth}{@{}L{3.8cm}Y@{}}
\caption{Current Plugin Responsibilities\label{Table:CurrentPluginResponsibilities}}\\
\toprule\textbf{Class / boundary} & \textbf{Implemented responsibility}\\\midrule
\texttt{tkrShapeProvider} & Qt Core-only Strategy interface: available operations,
presentation and preparation. No source ranges, widgets or graphics-item pointers.\\
\texttt{tkrRectangle\allowbreak{}ShapeProvider} & Separate native module supplies outline and
selection rectangles, readable description, corner IDs/positions and constrained
move/resize calculations. Uses initial geometry and total centimetre displacement.\\
\texttt{tkrShape\allowbreak{}PluginStore} & Scene-owned value object owns its loader and borrows
the root interface. Validates fixed candidate metadata/build key; pins a runtime
binding and exposes module diagnostics/identity. No discovery-order selection.\\
Host scene and service & Scene creates/owns items, renders provider values and
handles input. Service checks operations/proposals and prepares exact coordinate
rewrites. Parser and source bindings stay in the built-in host route.\\
Document & Assigns document UUIDs to revision-scoped elements; validates expected
revision, source ranges and bytes before applying a batch; owns bounded session history. Generic transactions remain
separately planned.\\\bottomrule
\end{tabularx}
SDK version 1 uses opposite-corner geometry, black unfilled/empty-content
rectangles and presentation records in \path{code/plugin-api/}. Requests carry
document/element identity and revision, parameter schema, initial description,
total displacement, semantic corner and constraints. PreparedChange, Unchanged
and CannotPrepare remain distinct from source application. The host rechecks
identity, finite geometry, bounds, minima, unchanged appearance/content and
move/fixed-corner invariants before preparing source edits.
\clearpage
\subsection{Current Provider Class Relationships}\label{Section:CurrentProviderClasses}
The host now has thirteen concrete classes, including the three sidebar widgets.
The module adds one concrete class and realizes one project interface:
fifteen class/interface declarations in total. The focused provider view below follows the current scene-owned module store.
The implemented class is still \texttt{tkrRectangle\allowbreak{}ShapeProvider}. Vincent
reported the instructor's requested specialization suffix,
\texttt{tkrShapeProvider\allowbreak{}Rectangle}; that coordinated code/files/build rename
remains pending under \RequirementRef{REQ-DEV-001}. The DLL identity is separate.
All concrete classes are \texttt{final}; the interface realization is a two-level
project inheritance path. Qt ancestry is excluded from the project's limit.
\begin{figure}[ht]
\centering
\resizebox{\linewidth}{!}{\input{../assets/design-diagrams/current-provider-classes.tex}}
\caption[Current provider classes]{Implemented UML provider interface, module and host collaboration.
All relationships are structural; the scene owns Qt items and its module store.
\label{Figure:CurrentProviderClasses}}
\end{figure}
\noindent Source contracts:\par
\noindent\path{code/plugin-api/tkrShapeProvider.h}\par
\noindent\path{code/src/plugins/tkrShapePluginStore.h}\par
The matching rectangle header is under \path{code/plugins/rectangle/}.
Store private state comprises its loader,
borrowed provider, load result, runtime ID, name and version. The module is
stateless; metadata declares identity/version, role/type, API/data/parameter
versions, operations and exact build key. Interface operations return an
operation list, presentation record and preparation result respectively.
\clearpage
\subsection{Current Plugin Deployment}\label{Section:CurrentPluginDeployment}
The separate development folder is \path{code/packages/0.1.4-alpha/}. The loader
uses its own executable directory and the explicit \path{shape-plugins/tkr_rectangle}
module, not a filesystem scan. Native C++ compatibility requires the exact API,
geometry/parameter versions, Qt/compiler/platform/pointer-size/configuration key.
Qt also checks module compatibility. This is a trusted same-toolchain boundary,
not a stable cross-vendor ABI or plugin sandbox.
\begin{figure}[ht]
\centering
\resizebox{\linewidth}{!}{\input{../assets/design-diagrams/current-plugin-deployment.tex}}
\caption[Current native module deployment]{Current 0.1.4-alpha in-process module deployment detail.
Dashed arrows are usage dependencies; compilation/PDF viewing remain external.
The physical node and external tools are shown in Figure~\ref{Figure:AlphaDeployment}.
\label{Figure:CurrentPluginDeployment}}
\end{figure}
Missing or incompatible modules preserve authoritative source and report unavailable
rectangle support without a hidden implementation. Existing conservative display
policy clears graphical records/items for that interpretation; a segment-only
document still uses the built-in route. The scene/store binding never changes
during an open session; Qt keeps the module resident. Multiple-provider choice,
hot updating, conversions/adapters and shape creation remain planned.
Normal title and current package folder show \texttt{0.1.4-alpha} without a Git hash;
About includes the shortened checkpoint, full checkpoint/state and provider path.
\subsection{Implemented Evidence and Limits}
\TestCaseRef{TC-061} evidence is in Section~\ref{Section:RectanglePluginCheck}.
The extraction originally passed six suites; the sidebar-shell build
passed all seven in Debug and Release, adding the UI state/lifetime suite in
Section~\ref{Section:SidebarShellCheck}. Existing display/drag/resize and
real-module contract checks remain included. The history build passes eight
suites per configuration (Section~\ref{Section:SessionHistoryCheck}). These are bounded execution results,
not acceptance of every product requirement or the full later plugin design.
The actual UI appears in Figure~\ref{Figure:CurrentUIWireframe}.