Skip to content

Commit

Permalink
Don't down-scale images used in the wiki unless it's required to make…
Browse files Browse the repository at this point in the history
… the diagram fit.

Also add a new diagram for the car_component image.
  • Loading branch information
poletti-marco committed May 15, 2016
1 parent 11f319e commit 2f36ab0
Show file tree
Hide file tree
Showing 37 changed files with 55 additions and 37 deletions.
1 change: 1 addition & 0 deletions extras/doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ set(LATEX_SOURCES
bar_handler.tex
bind.tex
bind_instance.tex
car_component.tex
checked_adder.tex
checked_incrementer.tex
component_composition.tex
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/bar_handler.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{2.5}{BarHandlerComponent}
\umlprovidedinterface[interface=BarHandler, distance=3.3, padding=0.9cm]{BarHandlerComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/bind.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=0.91, transform shape]

\newnamedcomponent{0}{2.5}{bind1}{bind}
\newnamedcomponent{0}{0}{bind2}{bind}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/bind_instance.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{0}{bindInstance}
\umlprovidedinterface[interface=Foo, distance=2.5, padding=0.9cm]{bindInstance}
Expand Down
17 changes: 17 additions & 0 deletions extras/doc/car_component.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

\input{header}
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{CarComponent}
\newcomponent{0}{1.5}{CarImpl}
\umlprovidedinterface[interface=Car, distance=2cm, padding=1cm]{CarImpl}
\newcomponent{10}{0}{MainBrakeComponent}
\umlassemblyconnector[interface={Annotated<MainBrake{,} Brake>}]{CarImpl}{MainBrakeComponent}
\newcomponent{10}{3}{EmergencyBrakeComponent}
\umlassemblyconnector[interface={Annotated<EmergencyBrake{,} Brake>}]{CarImpl}{EmergencyBrakeComponent}
\end{component}
\umlprovidedinterface[interface=Car, distance=9.7, with port, padding=0cm]{CarComponent}
\umldep{CarComponent-west-port}{CarImpl-west-interface}

\end{tikzpicture}
\input{footer}
2 changes: 1 addition & 1 deletion extras/doc/checked_adder.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{2}{0}{CheckedAdderComponent}
\umlprovidedinterface[interface=Adder, distance=4, padding=0.5cm]{CheckedAdderComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/checked_incrementer.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{CheckedIncrementerComponent}
\newcomponent{0}{0}{IncrementerImplComponent}
Expand Down
6 changes: 3 additions & 3 deletions extras/doc/component_composition.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=0.93, transform shape]

\begin{component}{20cm}{1}{0}{U1Component}
\newcomponent{11}{4}{SomeType}
Expand All @@ -25,8 +25,8 @@
\draw (U1U2Component-west-interface)+(-1cm,0) node[name=U1U2Component-west-padding] {};

\end{component}
\umlprovidedinterface[interface=U1, distance=9.5, with port]{U1Component}
\umlrequiredinterface[interface=T3, distance=9.5, with port]{U1Component}
\umlprovidedinterface[interface=U1, distance=9.5, with port, padding=0cm]{U1Component}
\umlrequiredinterface[interface=T3, distance=9.5, with port, padding=0cm]{U1Component}
\umldep{SomeType-east-interface}{U1Component-east-port}
\umldep{U1U2Component-east-interface}{U1Component-east-port}
\umldep{U1Component-west-port}{U1U2Component-west-interface}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/component_dep_loop.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{0}{T1Component}
\newcomponent{5}{0}{T2Component}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/foo_handler.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{2.5}{FooHandlerComponent}
\umlprovidedinterface[interface=FooHandler, distance=3.3, padding=0.9cm]{FooHandlerComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/greeter.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=0.71, transform shape]

\begin{component}{20cm}{1}{0}{GreeterComponent}
\newnamedcomponent{0}{0}{bind1}{bind<Greeter, GreeterImpl>}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/incrementer.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{2}{0}{IncrementerImplComponent}
\umlprovidedinterface[interface=Incrementer, distance=4, padding=0.5cm]{IncrementerImplComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/incrementer_component.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{IncrementerComponent}
\newcomponent{0}{0}{SimpleIncrementerComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/inject_macro.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{GreeterImpl1}{GreeterImpl}
\newnamedcomponent{0}{0}{GreeterImpl2}{GreeterImpl}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/inject_macro_no_args.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{StdoutWriter1}{StdoutWriter}
\newnamedcomponent{0}{0}{StdoutWriter2}{StdoutWriter}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/inject_macro_template.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{GreeterImpl1}{GreeterImpl}
\newnamedcomponent{0}{0}{GreeterImpl2}{GreeterImpl}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/inject_typedef_greeter.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{GreeterImpl1}{GreeterImpl}
\newnamedcomponent{0}{0}{GreeterImpl2}{GreeterImpl}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/inject_typedef_templated_constructor.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{GreeterImpl1}{GreeterImpl}
\newnamedcomponent{0}{0}{GreeterImpl2}{GreeterImpl}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/inject_typedef_writer.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{StdoutWriter1}{StdoutWriter}
\newnamedcomponent{0}{0}{StdoutWriter2}{StdoutWriter}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/inject_typedef_writer2.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{StdoutWriter1}{StdoutWriter}
\newnamedcomponent{0}{0}{StdoutWriter2}{StdoutWriter}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/multiplier.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{2}{0}{MultiplierComponent}
\umlprovidedinterface[interface=Multiplier, distance=3, padding=0.5cm]{MultiplierComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/parametrized_component.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{FooComponent}
\newnamedcomponent{0}{0}{bind1}{bind}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/provider.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{2.5}{registerProvider}
\umlprovidedinterface[interface=Database, distance=3, padding=0.9cm]{registerProvider}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/provider_functor.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{0}{registerProvider}
\newcomponent{0}{3.8}{bindInstance}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/register_constructor.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newnamedcomponent{0}{2.5}{registerConstructor1}{registerConstructor}
\newnamedcomponent{0}{0}{registerConstructor2}{registerConstructor}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/register_constructor_component.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{GreeterComponent}
\newcomponent{0}{0}{bind}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/register_factory.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{0}{registerFactory}
\umlprovidedinterface[interface=std::function<std::unique\_ptr<MyClass>(int)>, distance=5.7, padding=0.9cm]{registerFactory}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/register_factory_macro.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{0}{MyClass}
\umlprovidedinterface[interface=std::function<std::unique\_ptr<MyClass>(int)>, distance=5.3, padding=0.9cm]{MyClass}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/register_factory_typedef.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{0}{MyClass}
\umlprovidedinterface[interface=std::function<std::unique\_ptr<MyClass>(int)>, distance=5.3, padding=0.9cm]{MyClass}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/register_factory_use.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{0}{Bar}
\umlprovidedinterface[interface=Bar, distance=2, padding=0.9cm]{Bar}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/request_injector.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=0.95, transform shape]

\begin{component}{20cm}{1}{0}{injector}
\newcomponent{0}{1.5}{RequestDispatcherComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/scaler.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{ScalerComponent}
\newcomponent{0}{0}{ScalerImpl}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/server.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{0}{2.5}{ServerComponent}
\umlprovidedinterface[interface=Server, distance=2.8, padding=0.9cm]{ServerComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/simple_adder.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\newcomponent{2}{0}{SimpleAdderComponent}
\umlprovidedinterface[interface=Adder, distance=4, padding=0.5cm]{SimpleAdderComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/simple_greeter.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{GreeterComponent}
\newcomponent{0}{0}{GreeterImpl}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/simple_incrementer.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=1, transform shape]

\begin{component}{20cm}{1}{0}{SimpleIncrementerComponent}
\newcomponent{0}{0}{IncrementerImplComponent}
Expand Down
2 changes: 1 addition & 1 deletion extras/doc/templated_component.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

\input{header}
\begin{tikzpicture}[scale=0.7, transform shape]
\begin{tikzpicture}[scale=0.91, transform shape]

\begin{component}{20cm}{1}{0}{FooComponent}
\newcomponent{0}{0}{bind}
Expand Down

0 comments on commit 2f36ab0

Please sign in to comment.