\hypertarget{a10796}{}\section{V\+SI\+:\+:Graphics\+Scene Class Reference}
\label{a10796}\index{V\+S\+I\+::\+Graphics\+Scene@{V\+S\+I\+::\+Graphics\+Scene}}


{\ttfamily \#include $<$Plugin-\/\+V\+S\+I/scene/graphics\+Scene.\+hh$>$}

Inheritance diagram for V\+SI\+:\+:Graphics\+Scene\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a10796}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10796_a1fd57c9358bdcf9812fc09e51f9d9714}\label{a10796_a1fd57c9358bdcf9812fc09e51f9d9714}} 
void \hyperlink{a10796_a1fd57c9358bdcf9812fc09e51f9d9714}{content\+Change} ()
\begin{DoxyCompactList}\small\item\em handle content changes \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a2db259dc7e3d9b9b4e9e6fc4d16bacfe}\label{a10796_a2db259dc7e3d9b9b4e9e6fc4d16bacfe}} 
void \hyperlink{a10796_a2db259dc7e3d9b9b4e9e6fc4d16bacfe}{clear\+Scene} (bool \+\_\+start=false)
\begin{DoxyCompactList}\small\item\em clear the whole scene (\+\_\+start = keep start element) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10796_a4f77b9f578a2ed7142f1438fd387b678}\label{a10796_a4f77b9f578a2ed7142f1438fd387b678}} 
void \hyperlink{a10796_a4f77b9f578a2ed7142f1438fd387b678}{content\+Changed} ()
\begin{DoxyCompactList}\small\item\em Informs about content changes. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10796_a8199dcaa63899bc8c2ef37e1508afa43}\label{a10796_a8199dcaa63899bc8c2ef37e1508afa43}} 
\hyperlink{a10796_a8199dcaa63899bc8c2ef37e1508afa43}{Graphics\+Scene} (\hyperlink{a10724}{V\+S\+I\+::\+Context} $\ast$\+\_\+ctx, \hyperlink{a10776}{Element\+Function} $\ast$\+\_\+function=N\+U\+LL)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{a10796_ae0e2dd65e207c7a391aab70556d0220e}{$\sim$\+Graphics\+Scene} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_afe62ed44c9771b934ca4348437ec6d6f}\label{a10796_afe62ed44c9771b934ca4348437ec6d6f}} 
\hyperlink{a10800}{Graphics\+View} $\ast$ \hyperlink{a10796_afe62ed44c9771b934ca4348437ec6d6f}{graphics\+View} ()
\begin{DoxyCompactList}\small\item\em Graphics view of the scene. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a65c8ff38c347fbe3b3a664254560814c}\label{a10796_a65c8ff38c347fbe3b3a664254560814c}} 
qreal \hyperlink{a10796_a65c8ff38c347fbe3b3a664254560814c}{get\+NewZ} ()
\begin{DoxyCompactList}\small\item\em Returns a new Z value that is above all elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_af992cf01c7f8331003f6f6da5ba7909d}\label{a10796_af992cf01c7f8331003f6f6da5ba7909d}} 
void \hyperlink{a10796_af992cf01c7f8331003f6f6da5ba7909d}{move\+Elements} (qreal \+\_\+dx, qreal \+\_\+dy, bool \+\_\+selected=false)
\begin{DoxyCompactList}\small\item\em Moves all elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a93597509110dbbd2d84d95448ab697da}\label{a10796_a93597509110dbbd2d84d95448ab697da}} 
void \hyperlink{a10796_a93597509110dbbd2d84d95448ab697da}{scale\+Elements} (qreal \+\_\+delta)
\begin{DoxyCompactList}\small\item\em Scale all elements with scaling center in the center of the scene. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_aa31e8e31e718d094b0a15aab3e909eb4}\label{a10796_aa31e8e31e718d094b0a15aab3e909eb4}} 
void \hyperlink{a10796_aa31e8e31e718d094b0a15aab3e909eb4}{scale\+Elements} (qreal \+\_\+delta, Q\+PointF \+\_\+center)
\begin{DoxyCompactList}\small\item\em Scale all elements with scaling center \+\_\+canter. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a909236a69948db6f658970040c7b11ee}\label{a10796_a909236a69948db6f658970040c7b11ee}} 
void \hyperlink{a10796_a909236a69948db6f658970040c7b11ee}{add\+Element} (\hyperlink{a10804}{Scene\+Element} $\ast$\+\_\+element)
\begin{DoxyCompactList}\small\item\em Add the element to the scene. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_aad5172dbbe36bb830c0ee5d5b3da2b5c}\label{a10796_aad5172dbbe36bb830c0ee5d5b3da2b5c}} 
bool \hyperlink{a10796_aad5172dbbe36bb830c0ee5d5b3da2b5c}{remove\+Element} (\hyperlink{a10804}{Scene\+Element} $\ast$\+\_\+element)
\begin{DoxyCompactList}\small\item\em Remove the element from the scene. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a73ec4eee5dc4d9a49a462cfefc1d7e4c}\label{a10796_a73ec4eee5dc4d9a49a462cfefc1d7e4c}} 
void \hyperlink{a10796_a73ec4eee5dc4d9a49a462cfefc1d7e4c}{mouse\+Move} (Q\+PointF \+\_\+pos)
\begin{DoxyCompactList}\small\item\em Redirect mouse movement to tools area. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_aac291b70e14d52efe41e2116ebe906f0}\label{a10796_aac291b70e14d52efe41e2116ebe906f0}} 
void \hyperlink{a10796_aac291b70e14d52efe41e2116ebe906f0}{mouse\+Release} (Q\+PointF \+\_\+pos, Q\+Graphics\+Item $\ast$\+\_\+item)
\begin{DoxyCompactList}\small\item\em Redirect mouse release to tools area. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a2243be1a41a8feaf18983bf246849cb8}\label{a10796_a2243be1a41a8feaf18983bf246849cb8}} 
Q\+RectF \hyperlink{a10796_a2243be1a41a8feaf18983bf246849cb8}{elements\+Bounding\+Rect} ()
\begin{DoxyCompactList}\small\item\em Bounding rectangle of all scene elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_aa01b6b0a0be231a0d6c70680cbc9163a}\label{a10796_aa01b6b0a0be231a0d6c70680cbc9163a}} 
\hyperlink{a10772}{Element\+Area} $\ast$ \hyperlink{a10796_aa01b6b0a0be231a0d6c70680cbc9163a}{element\+Area} () const
\begin{DoxyCompactList}\small\item\em \hyperlink{a10728}{Element} area. \end{DoxyCompactList}\item 
const Q\+List$<$ \hyperlink{a10804}{Scene\+Element} $\ast$ $>$ \& \hyperlink{a10796_a9c75d120b525d6800d29efdce2e00b52}{elements} () const
\begin{DoxyCompactList}\small\item\em Scene elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a51b1ef619b6451db16dfed778bc0112a}\label{a10796_a51b1ef619b6451db16dfed778bc0112a}} 
Q\+String \hyperlink{a10796_a51b1ef619b6451db16dfed778bc0112a}{generate\+Code} (Q\+String \&errors, bool \+\_\+code\+Only=false)
\begin{DoxyCompactList}\small\item\em Generate textual script code (\+\_\+code\+Only = only pure code block) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a6aca8a57af804b56b82c4036cb853126}\label{a10796_a6aca8a57af804b56b82c4036cb853126}} 
\hyperlink{a10820}{Way\+Find} $\ast$ \hyperlink{a10796_a6aca8a57af804b56b82c4036cb853126}{way\+Find} ()
\begin{DoxyCompactList}\small\item\em \hyperlink{a10820}{Way\+Find} object. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_ae4fd19fa2e275127574366385c98451a}\label{a10796_ae4fd19fa2e275127574366385c98451a}} 
void \hyperlink{a10796_ae4fd19fa2e275127574366385c98451a}{save\+To\+Xml} (Q\+Dom\+Document \&\+\_\+doc, Q\+Dom\+Element \&\+\_\+root)
\begin{DoxyCompactList}\small\item\em Save to xml. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a5e33af70aa3d7047e72089f70948e488}\label{a10796_a5e33af70aa3d7047e72089f70948e488}} 
void \hyperlink{a10796_a5e33af70aa3d7047e72089f70948e488}{load\+From\+Xml} (Q\+Xml\+Query \&\+\_\+xml)
\begin{DoxyCompactList}\small\item\em Load from xml. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_ab5ca4966f578281e694c5e97a767af9f}\label{a10796_ab5ca4966f578281e694c5e97a767af9f}} 
\hyperlink{a10776}{Element\+Function} $\ast$ \hyperlink{a10796_ab5ca4966f578281e694c5e97a767af9f}{function} ()
\begin{DoxyCompactList}\small\item\em Associated function. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10796_a941665da10219946b0e1c8895801dff7}\label{a10796_a941665da10219946b0e1c8895801dff7}} 
void \hyperlink{a10796_a941665da10219946b0e1c8895801dff7}{set\+Active\+Connection} (\hyperlink{a10764}{Connection} $\ast$\+\_\+conn)
\begin{DoxyCompactList}\small\item\em Sets the active connection. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10796_ae985f3569a42fbfa339c927ec1c9e416}\label{a10796_ae985f3569a42fbfa339c927ec1c9e416}} 
virtual void {\bfseries draw\+Background} (Q\+Painter $\ast$\+\_\+painter, const Q\+RectF \&\+\_\+rect)
\item 
\mbox{\Hypertarget{a10796_a608d89aa206bcaccd083b4c1b90b744d}\label{a10796_a608d89aa206bcaccd083b4c1b90b744d}} 
void {\bfseries drag\+Enter\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a10796_a1f07eb2e20d86ce43c007081bdb1f4b7}\label{a10796_a1f07eb2e20d86ce43c007081bdb1f4b7}} 
void {\bfseries drag\+Leave\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a10796_a82aa616a0e748d70a31859c35e72dad9}\label{a10796_a82aa616a0e748d70a31859c35e72dad9}} 
void {\bfseries drag\+Move\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a10796_af11492d18b53190906136d15ca96be5d}\label{a10796_af11492d18b53190906136d15ca96be5d}} 
void {\bfseries drop\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a10796_ad0ac6163eb053979c2150db51d6d4afa}\label{a10796_ad0ac6163eb053979c2150db51d6d4afa}} 
void {\bfseries mouse\+Press\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a10796_ac6d13817053838702931eda8dc7e009b}\label{a10796_ac6d13817053838702931eda8dc7e009b}} 
void {\bfseries mouse\+Move\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a10796_a6e0c7a09275bd398317a76c1d8471bac}\label{a10796_a6e0c7a09275bd398317a76c1d8471bac}} 
void {\bfseries mouse\+Release\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)
\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10796_a8f5aa73c34de329c20b3eacfcaa1e2d1}\label{a10796_a8f5aa73c34de329c20b3eacfcaa1e2d1}} 
void {\bfseries update\+Connections} ()
\item 
\mbox{\Hypertarget{a10796_aecc956de48f510b6b885c34caf11d920}\label{a10796_aecc956de48f510b6b885c34caf11d920}} 
void {\bfseries scene\+Resized} (const Q\+RectF \&\+\_\+rect)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10796_a8cafa158adbb7168110b5061e238cb16}\label{a10796_a8cafa158adbb7168110b5061e238cb16}} 
Q\+String {\bfseries update\+Connections} (\hyperlink{a10804}{Scene\+Element} $\ast$\+\_\+from, bool \+\_\+is\+Start)
\item 
\mbox{\Hypertarget{a10796_a07def539ea81bb8504e6776e4e483301}\label{a10796_a07def539ea81bb8504e6776e4e483301}} 
bool {\bfseries valid\+Mime\+Data} (const Q\+Mime\+Data $\ast$)
\item 
\mbox{\Hypertarget{a10796_adb56de3d70980f027e984ff58c4c7924}\label{a10796_adb56de3d70980f027e984ff58c4c7924}} 
Q\+String {\bfseries mime\+Data\+Element\+Name} (const Q\+Mime\+Data $\ast$)
\item 
\mbox{\Hypertarget{a10796_a89f78184bad40108a0b1de8d91da8267}\label{a10796_a89f78184bad40108a0b1de8d91da8267}} 
Q\+Point {\bfseries mime\+Data\+Point} (const Q\+Mime\+Data $\ast$)
\item 
\mbox{\Hypertarget{a10796_a678aaaf559bce8393d4f8a8cb8248f26}\label{a10796_a678aaaf559bce8393d4f8a8cb8248f26}} 
void {\bfseries load\+Element} (Q\+Xml\+Query \&\+\_\+xml)
\item 
\mbox{\Hypertarget{a10796_a2c4515dd2cfdb194e78b6cd5a75ba03c}\label{a10796_a2c4515dd2cfdb194e78b6cd5a75ba03c}} 
void {\bfseries load\+Connection} (Q\+Xml\+Query \&\+\_\+xml)
\item 
\mbox{\Hypertarget{a10796_a6c56882a5908e582f3cd58fe5ee348b6}\label{a10796_a6c56882a5908e582f3cd58fe5ee348b6}} 
Q\+List$<$ \hyperlink{a10804}{Scene\+Element} $\ast$ $>$ {\bfseries get\+All\+Elements} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10796_adbc195a8980a5f0076cfe08ed8ed6054}\label{a10796_adbc195a8980a5f0076cfe08ed8ed6054}} 
\hyperlink{a10724}{Context} $\ast$ {\bfseries ctx\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a431da5cd4f902f040389ca59a98afed2}\label{a10796_a431da5cd4f902f040389ca59a98afed2}} 
\hyperlink{a10776}{Element\+Function} $\ast$ {\bfseries function\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a6b9f993a172ecfbb0e530c8661434bbc}\label{a10796_a6b9f993a172ecfbb0e530c8661434bbc}} 
\hyperlink{a10800}{Graphics\+View} $\ast$ {\bfseries view\+\_\+}
\item 
\mbox{\Hypertarget{a10796_ae11062493da078d96f9b3b321efebcb1}\label{a10796_ae11062493da078d96f9b3b321efebcb1}} 
\hyperlink{a10804}{Scene\+Element} $\ast$ {\bfseries dnd\+Element\+\_\+}
\item 
\mbox{\Hypertarget{a10796_aa2f18b11c6664318a78af75fa8924287}\label{a10796_aa2f18b11c6664318a78af75fa8924287}} 
\hyperlink{a10808}{Scene\+Tools} $\ast$ {\bfseries tools\+\_\+}
\item 
\mbox{\Hypertarget{a10796_adc0f971d748fadc2e51faaa10f3054da}\label{a10796_adc0f971d748fadc2e51faaa10f3054da}} 
\hyperlink{a10772}{Element\+Area} $\ast$ {\bfseries element\+Area\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a849681db7f37152bd269f98fa04f61f4}\label{a10796_a849681db7f37152bd269f98fa04f61f4}} 
Q\+Graphics\+Rect\+Item $\ast$ {\bfseries selection\+\_\+}
\item 
\mbox{\Hypertarget{a10796_acec81ba5cdee071bf0cd2a8c207c22c6}\label{a10796_acec81ba5cdee071bf0cd2a8c207c22c6}} 
Q\+PointF {\bfseries selection\+Start\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a0e8365992f45ba384f1feb13e14cfb8a}\label{a10796_a0e8365992f45ba384f1feb13e14cfb8a}} 
bool {\bfseries selection\+Active\+\_\+}
\item 
\mbox{\Hypertarget{a10796_aa2994d96e7d5ef7ac4ca9ccea464133f}\label{a10796_aa2994d96e7d5ef7ac4ca9ccea464133f}} 
bool {\bfseries dont\+Move\+Start\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a86949a858dbc9cc9c4674b73f7270034}\label{a10796_a86949a858dbc9cc9c4674b73f7270034}} 
bool {\bfseries block\+Changes\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a481e4663438f5c897f67764737e8efa3}\label{a10796_a481e4663438f5c897f67764737e8efa3}} 
\hyperlink{a10764}{Connection} $\ast$ {\bfseries active\+Connection\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a687ef21546927ed742d3a385d45893fb}\label{a10796_a687ef21546927ed742d3a385d45893fb}} 
qreal {\bfseries current\+Z\+\_\+}
\item 
\mbox{\Hypertarget{a10796_a990c07913fe4d42415a1c3f3add5808d}\label{a10796_a990c07913fe4d42415a1c3f3add5808d}} 
\hyperlink{a10820}{Way\+Find} $\ast$ {\bfseries way\+Find\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implementation of the Qt graphics scene graph and the represatation of the visual script 

Definition at line 80 of file graphics\+Scene.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a10796_ae0e2dd65e207c7a391aab70556d0220e}\label{a10796_ae0e2dd65e207c7a391aab70556d0220e}} 
\index{V\+S\+I\+::\+Graphics\+Scene@{V\+S\+I\+::\+Graphics\+Scene}!````~Graphics\+Scene@{$\sim$\+Graphics\+Scene}}
\index{````~Graphics\+Scene@{$\sim$\+Graphics\+Scene}!V\+S\+I\+::\+Graphics\+Scene@{V\+S\+I\+::\+Graphics\+Scene}}
\subsubsection{\texorpdfstring{$\sim$\+Graphics\+Scene()}{~GraphicsScene()}}
{\footnotesize\ttfamily V\+S\+I\+::\+Graphics\+Scene\+::$\sim$\+Graphics\+Scene (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destructor. 

destructor 

Definition at line 155 of file graphics\+Scene.\+cc.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a10796_a9c75d120b525d6800d29efdce2e00b52}\label{a10796_a9c75d120b525d6800d29efdce2e00b52}} 
\index{V\+S\+I\+::\+Graphics\+Scene@{V\+S\+I\+::\+Graphics\+Scene}!elements@{elements}}
\index{elements@{elements}!V\+S\+I\+::\+Graphics\+Scene@{V\+S\+I\+::\+Graphics\+Scene}}
\subsubsection{\texorpdfstring{elements()}{elements()}}
{\footnotesize\ttfamily const Q\+List$<$ \hyperlink{a10804}{Scene\+Element} $\ast$ $>$ \& V\+S\+I\+::\+Graphics\+Scene\+::elements (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Scene elements. 

Bounding rectangle of all scene elements. 

Definition at line 348 of file graphics\+Scene.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Plugin-\/\+V\+S\+I/scene/graphics\+Scene.\+hh\item 
Plugin-\/\+V\+S\+I/scene/graphics\+Scene.\+cc\end{DoxyCompactItemize}
