1 // SWIG file GridLayout.i
2 
3 %{
4 #include "openturns/GridLayout.hxx"
5 %}
6 
7 %include GridLayout_doc.i
8 
9 %include openturns/GridLayout.hxx
10 
11 %pythoncode %{
12 def GridLayout__repr_png_(self):
13     """Get the PNG representation."""
14     if openturns.common.ResourceMap.Get('View-ImageFormat') != 'png':
15         raise NotImplementedError
16     from .viewer import _ToImageString
17     return _ToImageString(self)
18 GridLayout._repr_png_ = Drawable__repr_png_
19 
20 def GridLayout__repr_svg_(self):
21     """Get the SVG representation."""
22     if openturns.common.ResourceMap.Get('View-ImageFormat') != 'svg':
23         raise NotImplementedError
24     from .viewer import _ToImageString
25     return _ToImageString(self)
26 GridLayout._repr_svg_ = Drawable__repr_svg_
27 
28 def GridLayout__repr_html_(self):
29     """Get the HTML representation."""
30     raise NotImplementedError
31 GridLayout._repr_html_ = Drawable__repr_html_
32 %}
33 
34 namespace OT { %extend GridLayout { GridLayout(const GridLayout & other) { return new OT::GridLayout(other); } } }
35 
36