\hypertarget{a00658}{\section{V\+S\+I\+:\+:Graphics\+Scene Class Reference}
\label{a00658}\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\+S\+I\+:\+:Graphics\+Scene\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00658}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00658_a1fd57c9358bdcf9812fc09e51f9d9714}{void \hyperlink{a00658_a1fd57c9358bdcf9812fc09e51f9d9714}{content\+Change} ()}\label{a00658_a1fd57c9358bdcf9812fc09e51f9d9714}

\begin{DoxyCompactList}\small\item\em handle content changes \end{DoxyCompactList}\item 
\hypertarget{a00658_a2db259dc7e3d9b9b4e9e6fc4d16bacfe}{void \hyperlink{a00658_a2db259dc7e3d9b9b4e9e6fc4d16bacfe}{clear\+Scene} (bool \+\_\+start=false)}\label{a00658_a2db259dc7e3d9b9b4e9e6fc4d16bacfe}

\begin{DoxyCompactList}\small\item\em clear the whole scene (\+\_\+start = keep start element) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00658_a4f77b9f578a2ed7142f1438fd387b678}{void \hyperlink{a00658_a4f77b9f578a2ed7142f1438fd387b678}{content\+Changed} ()}\label{a00658_a4f77b9f578a2ed7142f1438fd387b678}

\begin{DoxyCompactList}\small\item\em Informs about content changes. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00658_a8199dcaa63899bc8c2ef37e1508afa43}{\hyperlink{a00658_a8199dcaa63899bc8c2ef37e1508afa43}{Graphics\+Scene} (\hyperlink{a00459}{V\+S\+I\+::\+Context} $\ast$\+\_\+ctx, \hyperlink{a00532}{Element\+Function} $\ast$\+\_\+function=N\+U\+L\+L)}\label{a00658_a8199dcaa63899bc8c2ef37e1508afa43}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{a00658_ae0e2dd65e207c7a391aab70556d0220e}{$\sim$\+Graphics\+Scene} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00658_afe62ed44c9771b934ca4348437ec6d6f}{\hyperlink{a00659}{Graphics\+View} $\ast$ \hyperlink{a00658_afe62ed44c9771b934ca4348437ec6d6f}{graphics\+View} ()}\label{a00658_afe62ed44c9771b934ca4348437ec6d6f}

\begin{DoxyCompactList}\small\item\em Graphics view of the scene. \end{DoxyCompactList}\item 
\hypertarget{a00658_a65c8ff38c347fbe3b3a664254560814c}{qreal \hyperlink{a00658_a65c8ff38c347fbe3b3a664254560814c}{get\+New\+Z} ()}\label{a00658_a65c8ff38c347fbe3b3a664254560814c}

\begin{DoxyCompactList}\small\item\em Returns a new Z value that is above all elements. \end{DoxyCompactList}\item 
\hypertarget{a00658_af992cf01c7f8331003f6f6da5ba7909d}{void \hyperlink{a00658_af992cf01c7f8331003f6f6da5ba7909d}{move\+Elements} (qreal \+\_\+dx, qreal \+\_\+dy, bool \+\_\+selected=false)}\label{a00658_af992cf01c7f8331003f6f6da5ba7909d}

\begin{DoxyCompactList}\small\item\em Moves all elements. \end{DoxyCompactList}\item 
\hypertarget{a00658_a93597509110dbbd2d84d95448ab697da}{void \hyperlink{a00658_a93597509110dbbd2d84d95448ab697da}{scale\+Elements} (qreal \+\_\+delta)}\label{a00658_a93597509110dbbd2d84d95448ab697da}

\begin{DoxyCompactList}\small\item\em Scale all elements with scaling center in the center of the scene. \end{DoxyCompactList}\item 
\hypertarget{a00658_aa31e8e31e718d094b0a15aab3e909eb4}{void \hyperlink{a00658_aa31e8e31e718d094b0a15aab3e909eb4}{scale\+Elements} (qreal \+\_\+delta, Q\+Point\+F \+\_\+center)}\label{a00658_aa31e8e31e718d094b0a15aab3e909eb4}

\begin{DoxyCompactList}\small\item\em Scale all elements with scaling center \+\_\+canter. \end{DoxyCompactList}\item 
\hypertarget{a00658_a909236a69948db6f658970040c7b11ee}{void \hyperlink{a00658_a909236a69948db6f658970040c7b11ee}{add\+Element} (\hyperlink{a01132}{Scene\+Element} $\ast$\+\_\+element)}\label{a00658_a909236a69948db6f658970040c7b11ee}

\begin{DoxyCompactList}\small\item\em Add the element to the scene. \end{DoxyCompactList}\item 
\hypertarget{a00658_aad5172dbbe36bb830c0ee5d5b3da2b5c}{bool \hyperlink{a00658_aad5172dbbe36bb830c0ee5d5b3da2b5c}{remove\+Element} (\hyperlink{a01132}{Scene\+Element} $\ast$\+\_\+element)}\label{a00658_aad5172dbbe36bb830c0ee5d5b3da2b5c}

\begin{DoxyCompactList}\small\item\em Remove the element from the scene. \end{DoxyCompactList}\item 
\hypertarget{a00658_a73ec4eee5dc4d9a49a462cfefc1d7e4c}{void \hyperlink{a00658_a73ec4eee5dc4d9a49a462cfefc1d7e4c}{mouse\+Move} (Q\+Point\+F \+\_\+pos)}\label{a00658_a73ec4eee5dc4d9a49a462cfefc1d7e4c}

\begin{DoxyCompactList}\small\item\em Redirect mouse movement to tools area. \end{DoxyCompactList}\item 
\hypertarget{a00658_aac291b70e14d52efe41e2116ebe906f0}{void \hyperlink{a00658_aac291b70e14d52efe41e2116ebe906f0}{mouse\+Release} (Q\+Point\+F \+\_\+pos, Q\+Graphics\+Item $\ast$\+\_\+item)}\label{a00658_aac291b70e14d52efe41e2116ebe906f0}

\begin{DoxyCompactList}\small\item\em Redirect mouse release to tools area. \end{DoxyCompactList}\item 
\hypertarget{a00658_a2243be1a41a8feaf18983bf246849cb8}{Q\+Rect\+F \hyperlink{a00658_a2243be1a41a8feaf18983bf246849cb8}{elements\+Bounding\+Rect} ()}\label{a00658_a2243be1a41a8feaf18983bf246849cb8}

\begin{DoxyCompactList}\small\item\em Bounding rectangle of all scene elements. \end{DoxyCompactList}\item 
\hypertarget{a00658_a97ec61501f2951225a33741cc86b2a04}{\hyperlink{a00531}{Element\+Area} $\ast$ \hyperlink{a00658_a97ec61501f2951225a33741cc86b2a04}{element\+Area} () const }\label{a00658_a97ec61501f2951225a33741cc86b2a04}

\begin{DoxyCompactList}\small\item\em \hyperlink{a00529}{Element} area. \end{DoxyCompactList}\item 
const Q\+List$<$ \hyperlink{a01132}{Scene\+Element} $\ast$ $>$ \& \hyperlink{a00658_a957648fa62cbae13ddc800dd3854bc6e}{elements} () const 
\begin{DoxyCompactList}\small\item\em Scene elements. \end{DoxyCompactList}\item 
\hypertarget{a00658_a51b1ef619b6451db16dfed778bc0112a}{Q\+String \hyperlink{a00658_a51b1ef619b6451db16dfed778bc0112a}{generate\+Code} (Q\+String \&errors, bool \+\_\+code\+Only=false)}\label{a00658_a51b1ef619b6451db16dfed778bc0112a}

\begin{DoxyCompactList}\small\item\em Generate textual script code (\+\_\+code\+Only = only pure code block) \end{DoxyCompactList}\item 
\hypertarget{a00658_a6aca8a57af804b56b82c4036cb853126}{\hyperlink{a01475}{Way\+Find} $\ast$ \hyperlink{a00658_a6aca8a57af804b56b82c4036cb853126}{way\+Find} ()}\label{a00658_a6aca8a57af804b56b82c4036cb853126}

\begin{DoxyCompactList}\small\item\em \hyperlink{a01475}{Way\+Find} object. \end{DoxyCompactList}\item 
\hypertarget{a00658_ae4fd19fa2e275127574366385c98451a}{void \hyperlink{a00658_ae4fd19fa2e275127574366385c98451a}{save\+To\+Xml} (Q\+Dom\+Document \&\+\_\+doc, Q\+Dom\+Element \&\+\_\+root)}\label{a00658_ae4fd19fa2e275127574366385c98451a}

\begin{DoxyCompactList}\small\item\em Save to xml. \end{DoxyCompactList}\item 
\hypertarget{a00658_a5e33af70aa3d7047e72089f70948e488}{void \hyperlink{a00658_a5e33af70aa3d7047e72089f70948e488}{load\+From\+Xml} (Q\+Xml\+Query \&\+\_\+xml)}\label{a00658_a5e33af70aa3d7047e72089f70948e488}

\begin{DoxyCompactList}\small\item\em Load from xml. \end{DoxyCompactList}\item 
\hypertarget{a00658_ab5ca4966f578281e694c5e97a767af9f}{\hyperlink{a00532}{Element\+Function} $\ast$ \hyperlink{a00658_ab5ca4966f578281e694c5e97a767af9f}{function} ()}\label{a00658_ab5ca4966f578281e694c5e97a767af9f}

\begin{DoxyCompactList}\small\item\em Associated function. \end{DoxyCompactList}\item 
\hypertarget{a00658_a941665da10219946b0e1c8895801dff7}{void \hyperlink{a00658_a941665da10219946b0e1c8895801dff7}{set\+Active\+Connection} (\hyperlink{a00451}{Connection} $\ast$\+\_\+conn)}\label{a00658_a941665da10219946b0e1c8895801dff7}

\begin{DoxyCompactList}\small\item\em Sets the active connection. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00658_ae985f3569a42fbfa339c927ec1c9e416}{virtual void {\bfseries draw\+Background} (Q\+Painter $\ast$\+\_\+painter, const Q\+Rect\+F \&\+\_\+rect)}\label{a00658_ae985f3569a42fbfa339c927ec1c9e416}

\item 
\hypertarget{a00658_a608d89aa206bcaccd083b4c1b90b744d}{void {\bfseries drag\+Enter\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)}\label{a00658_a608d89aa206bcaccd083b4c1b90b744d}

\item 
\hypertarget{a00658_a1f07eb2e20d86ce43c007081bdb1f4b7}{void {\bfseries drag\+Leave\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)}\label{a00658_a1f07eb2e20d86ce43c007081bdb1f4b7}

\item 
\hypertarget{a00658_a82aa616a0e748d70a31859c35e72dad9}{void {\bfseries drag\+Move\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)}\label{a00658_a82aa616a0e748d70a31859c35e72dad9}

\item 
\hypertarget{a00658_af11492d18b53190906136d15ca96be5d}{void {\bfseries drop\+Event} (Q\+Graphics\+Scene\+Drag\+Drop\+Event $\ast$\+\_\+event)}\label{a00658_af11492d18b53190906136d15ca96be5d}

\item 
\hypertarget{a00658_ad0ac6163eb053979c2150db51d6d4afa}{void {\bfseries mouse\+Press\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)}\label{a00658_ad0ac6163eb053979c2150db51d6d4afa}

\item 
\hypertarget{a00658_ac6d13817053838702931eda8dc7e009b}{void {\bfseries mouse\+Move\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)}\label{a00658_ac6d13817053838702931eda8dc7e009b}

\item 
\hypertarget{a00658_a6e0c7a09275bd398317a76c1d8471bac}{void {\bfseries mouse\+Release\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)}\label{a00658_a6e0c7a09275bd398317a76c1d8471bac}

\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00658_a8f5aa73c34de329c20b3eacfcaa1e2d1}{void {\bfseries update\+Connections} ()}\label{a00658_a8f5aa73c34de329c20b3eacfcaa1e2d1}

\item 
\hypertarget{a00658_aecc956de48f510b6b885c34caf11d920}{void {\bfseries scene\+Resized} (const Q\+Rect\+F \&\+\_\+rect)}\label{a00658_aecc956de48f510b6b885c34caf11d920}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00658_a8cafa158adbb7168110b5061e238cb16}{Q\+String {\bfseries update\+Connections} (\hyperlink{a01132}{Scene\+Element} $\ast$\+\_\+from, bool \+\_\+is\+Start)}\label{a00658_a8cafa158adbb7168110b5061e238cb16}

\item 
\hypertarget{a00658_a07def539ea81bb8504e6776e4e483301}{bool {\bfseries valid\+Mime\+Data} (const Q\+Mime\+Data $\ast$)}\label{a00658_a07def539ea81bb8504e6776e4e483301}

\item 
\hypertarget{a00658_adb56de3d70980f027e984ff58c4c7924}{Q\+String {\bfseries mime\+Data\+Element\+Name} (const Q\+Mime\+Data $\ast$)}\label{a00658_adb56de3d70980f027e984ff58c4c7924}

\item 
\hypertarget{a00658_a89f78184bad40108a0b1de8d91da8267}{Q\+Point {\bfseries mime\+Data\+Point} (const Q\+Mime\+Data $\ast$)}\label{a00658_a89f78184bad40108a0b1de8d91da8267}

\item 
\hypertarget{a00658_a678aaaf559bce8393d4f8a8cb8248f26}{void {\bfseries load\+Element} (Q\+Xml\+Query \&\+\_\+xml)}\label{a00658_a678aaaf559bce8393d4f8a8cb8248f26}

\item 
\hypertarget{a00658_a2c4515dd2cfdb194e78b6cd5a75ba03c}{void {\bfseries load\+Connection} (Q\+Xml\+Query \&\+\_\+xml)}\label{a00658_a2c4515dd2cfdb194e78b6cd5a75ba03c}

\item 
\hypertarget{a00658_a6c56882a5908e582f3cd58fe5ee348b6}{Q\+List$<$ \hyperlink{a01132}{Scene\+Element} $\ast$ $>$ {\bfseries get\+All\+Elements} ()}\label{a00658_a6c56882a5908e582f3cd58fe5ee348b6}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00658_adbc195a8980a5f0076cfe08ed8ed6054}{\hyperlink{a00459}{Context} $\ast$ {\bfseries ctx\+\_\+}}\label{a00658_adbc195a8980a5f0076cfe08ed8ed6054}

\item 
\hypertarget{a00658_a431da5cd4f902f040389ca59a98afed2}{\hyperlink{a00532}{Element\+Function} $\ast$ {\bfseries function\+\_\+}}\label{a00658_a431da5cd4f902f040389ca59a98afed2}

\item 
\hypertarget{a00658_a6b9f993a172ecfbb0e530c8661434bbc}{\hyperlink{a00659}{Graphics\+View} $\ast$ {\bfseries view\+\_\+}}\label{a00658_a6b9f993a172ecfbb0e530c8661434bbc}

\item 
\hypertarget{a00658_ae11062493da078d96f9b3b321efebcb1}{\hyperlink{a01132}{Scene\+Element} $\ast$ {\bfseries dnd\+Element\+\_\+}}\label{a00658_ae11062493da078d96f9b3b321efebcb1}

\item 
\hypertarget{a00658_aa2f18b11c6664318a78af75fa8924287}{\hyperlink{a01134}{Scene\+Tools} $\ast$ {\bfseries tools\+\_\+}}\label{a00658_aa2f18b11c6664318a78af75fa8924287}

\item 
\hypertarget{a00658_adc0f971d748fadc2e51faaa10f3054da}{\hyperlink{a00531}{Element\+Area} $\ast$ {\bfseries element\+Area\+\_\+}}\label{a00658_adc0f971d748fadc2e51faaa10f3054da}

\item 
\hypertarget{a00658_a849681db7f37152bd269f98fa04f61f4}{Q\+Graphics\+Rect\+Item $\ast$ {\bfseries selection\+\_\+}}\label{a00658_a849681db7f37152bd269f98fa04f61f4}

\item 
\hypertarget{a00658_acec81ba5cdee071bf0cd2a8c207c22c6}{Q\+Point\+F {\bfseries selection\+Start\+\_\+}}\label{a00658_acec81ba5cdee071bf0cd2a8c207c22c6}

\item 
\hypertarget{a00658_a0e8365992f45ba384f1feb13e14cfb8a}{bool {\bfseries selection\+Active\+\_\+}}\label{a00658_a0e8365992f45ba384f1feb13e14cfb8a}

\item 
\hypertarget{a00658_aa2994d96e7d5ef7ac4ca9ccea464133f}{bool {\bfseries dont\+Move\+Start\+\_\+}}\label{a00658_aa2994d96e7d5ef7ac4ca9ccea464133f}

\item 
\hypertarget{a00658_a86949a858dbc9cc9c4674b73f7270034}{bool {\bfseries block\+Changes\+\_\+}}\label{a00658_a86949a858dbc9cc9c4674b73f7270034}

\item 
\hypertarget{a00658_a481e4663438f5c897f67764737e8efa3}{\hyperlink{a00451}{Connection} $\ast$ {\bfseries active\+Connection\+\_\+}}\label{a00658_a481e4663438f5c897f67764737e8efa3}

\item 
\hypertarget{a00658_a687ef21546927ed742d3a385d45893fb}{qreal {\bfseries current\+Z\+\_\+}}\label{a00658_a687ef21546927ed742d3a385d45893fb}

\item 
\hypertarget{a00658_a990c07913fe4d42415a1c3f3add5808d}{\hyperlink{a01475}{Way\+Find} $\ast$ {\bfseries way\+Find\+\_\+}}\label{a00658_a990c07913fe4d42415a1c3f3add5808d}

\end{DoxyCompactItemize}


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

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



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00658_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[{$\sim$\+Graphics\+Scene}]{\setlength{\rightskip}{0pt plus 5cm}V\+S\+I\+::\+Graphics\+Scene\+::$\sim$\+Graphics\+Scene (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a00658_ae0e2dd65e207c7a391aab70556d0220e}


Destructor. 

destructor 

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



\subsection{Member Function Documentation}
\hypertarget{a00658_a957648fa62cbae13ddc800dd3854bc6e}{\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[{elements}]{\setlength{\rightskip}{0pt plus 5cm}const Q\+List$<$ {\bf Scene\+Element} $\ast$ $>$ \& V\+S\+I\+::\+Graphics\+Scene\+::elements (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a00658_a957648fa62cbae13ddc800dd3854bc6e}


Scene elements. 

Bounding rectangle of all scene elements. 

Definition at line 354 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}
