diff --git a/src/dash-3d/client.tex b/src/dash-3d/client.tex index 545865f..977db0b 100644 --- a/src/dash-3d/client.tex +++ b/src/dash-3d/client.tex @@ -297,7 +297,7 @@ This class has a derived class can use to make smart decisions, and exposes a fu \item the camera, because the next best segment depends on the position of the camera. \end{itemize} -The greedy, greedy predictive and proposed policies from the previous chapter are all classes that derive from \texttt{LoadingPolicy}. +The greedy and proposed policies from the previous chapter are all classes that derive from \texttt{LoadingPolicy}. Then, the main class responsible for the loading of segments is the \texttt{DashLoader} class. It uses \texttt{XMLHttpRequest}s, which are the usual way of making HTTP requests in JavaScript, and it calls the corresponding parser on the results of those requests. The \texttt{DashLoader} class accepts as parameter a function that will be called each time some data has been downloaded and parsed: this data can contain vertices, texture coordinates, normals, materials or textures, and they can all be added to the \texttt{Model} class that we described in Section~\ref{d3:model-class}. @@ -318,24 +318,22 @@ The \texttt{DashLoader} class accepts as parameter a function that will be calle \node[right] at (8, -1.5) {\scriptsize nextSegment(mpd, camera)}; \begin{scope}[shift={(0, 1.5)}] - \draw (1, -6) rectangle (7, -8.5); - \draw (1, -7) -- (7, -7); - \node at (4, -6.5) {Greedy}; - \node[right] at (1, -7.5) {\scriptsize nextSegment(mpd, camera)}; + \begin{scope}[shift={(3, 0)}] + \draw (1, -6) rectangle (7, -8.5); + \draw (1, -7) -- (7, -7); + \node at (4, -6.5) {Greedy}; + \node[right] at (1, -7.5) {\scriptsize nextSegment(mpd, camera)}; + \end{scope} - \draw (8, -6) rectangle (14, -8.5); - \draw (8, -7) -- (14, -7); - \node at (11, -6.5) {GreedyPredictive}; - \node[right] at (8, -7.5) {\scriptsize nextSegment(mpd, camera)}; + \begin{scope}[shift={(-3, 0)}] + \draw (15, -6) rectangle (21, -8.5); + \draw (15, -7) -- (21, -7); + \node at (18, -6.5) {Proposed}; + \node[right] at (15, -7.5) {\scriptsize nextSegment(mpd, camera)}; + \end{scope} - \draw (15, -6) rectangle (21, -8.5); - \draw (15, -7) -- (21, -7); - \node at (18, -6.5) {Proposed}; - \node[right] at (15, -7.5) {\scriptsize nextSegment(mpd, camera)}; - - \draw[-{Triangle[open, length=3mm, width=3mm]}] (4, -6) -- (4, -5) -- (11, -5) -- (11, -4); - \draw (11, -6) -- (11, -5) -- (8, -5); - \draw (18, -6) -- (18, -5) -- (8, -5); + \draw[-{Triangle[open, length=3mm, width=3mm]}] (7, -6) -- (7, -5) -- (11, -5) -- (11, -4); + \draw (15, -6) -- (15, -5) -- (8, -5); \end{scope} \end{tikzpicture} \caption{Class diagram of our DASH client\label{d3:dash-loader}}