codac 2.0.0
Loading...
Searching...
No Matches
codac2_OutputFigure2D.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include <string>
13#include <vector>
14#include "codac2_Vector.h"
17
18namespace codac2
19{
20 class Figure2D;
21
31 {
32 public:
33
40 : _fig(fig)
41 { }
42
48 const Index& i() const;
49
55 const Index& j() const;
56
60 virtual void update_axes() = 0;
64 virtual void update_window_properties() = 0;
68 virtual void center_viewbox(const Vector& c, const Vector& r) = 0;
69
70 protected:
71
72 const Figure2D& _fig;
73 std::vector<std::string> _layers;
74 };
75}
Figure2D class, used for 2D display.
Definition codac2_Figure2D.h:77
Interface for 2D figures.
Definition codac2_Figure2DInterface.h:40
OutputFigure2D(const Figure2D &fig)
Creates a new OutputFigure2D object linked to a given figure.
Definition codac2_OutputFigure2D.h:39
virtual void center_viewbox(const Vector &c, const Vector &r)=0
Centers the viewbox.
virtual void update_window_properties()=0
Updates the position and size of the window.
const Index & j() const
Getter for the vertical Index.
virtual void update_axes()=0
Updates the axes of the figure.
const Index & i() const
Getter for the horizontal Index.