codac
2.0.0
Loading...
Searching...
No Matches
src
graphics
figures
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
"
15
#include "
codac2_IntervalVector.h
"
16
#include "
codac2_Figure2DInterface.h
"
17
18
namespace
codac2
19
{
20
class
Figure2D
;
21
30
class
OutputFigure2D
:
public
Figure2DInterface
31
{
32
public
:
33
39
OutputFigure2D
(
const
Figure2D
& fig)
40
: _fig(fig)
41
{ }
42
48
const
Index&
i
()
const
;
49
55
const
Index&
j
()
const
;
56
60
virtual
void
update_axes
() = 0;
61
65
virtual
void
update_window_properties
() = 0;
66
70
virtual
void
center_viewbox
(
const
Vector
& c,
const
Vector
& r) = 0;
71
75
virtual
void
clear
() = 0;
76
77
protected
:
78
79
const
Figure2D
& _fig;
80
std::vector<std::string> _layers;
81
};
82
}
codac2::Figure2D
Figure2D class, used for 2D display.
Definition
codac2_Figure2D.h:78
codac2::Figure2DInterface
Interface for 2D figures.
Definition
codac2_Figure2DInterface.h:40
codac2::OutputFigure2D::OutputFigure2D
OutputFigure2D(const Figure2D &fig)
Creates a new OutputFigure2D object linked to a given figure.
Definition
codac2_OutputFigure2D.h:39
codac2::OutputFigure2D::center_viewbox
virtual void center_viewbox(const Vector &c, const Vector &r)=0
Centers the viewbox.
codac2::OutputFigure2D::clear
virtual void clear()=0
Clears the figure.
codac2::OutputFigure2D::update_window_properties
virtual void update_window_properties()=0
Updates the position and size of the window.
codac2::OutputFigure2D::j
const Index & j() const
Getter for the vertical Index.
codac2::OutputFigure2D::update_axes
virtual void update_axes()=0
Updates the axes of the figure.
codac2::OutputFigure2D::i
const Index & i() const
Getter for the horizontal Index.
codac2_Figure2DInterface.h
codac2_IntervalVector.h
codac2_Vector.h
codac2::Vector
Eigen::Matrix< double,-1, 1 > Vector
Alias for a dynamically-sized column vector of doubles.
Definition
codac2_Vector.h:24
Generated by
1.13.0