graphics.hh

Go to the documentation of this file.
1 
6 #ifndef vectorGraphics_hh
7 #define vectorGraphics_hh
8 
10 
11 namespace vectorial {
12 
13  // ************************************************************** Graphics **
14 
18  template<typename F>
19  class Graphics : public concepts::ElementGraphics<F> {
20  public:
21  Graphics() : idx_(0) {}
26  void choose(uint idx) { idx_ = idx; }
28  uint chosen() const { return idx_; }
29  virtual void operator()
30  (const concepts::Element<F>& elm,
32  concepts::CellPostprocess<F>& post) const;
33  protected:
34  virtual std::ostream& info(std::ostream& os) const;
35  private:
37  uint idx_;
38  };
39 
40 } // namespace vectorial
41 
42 #endif // vectorGraphics_hh
Handles graphics output (to a file) of a specific element.
Definition: element.hh:16
An abstract class for an element of a space.
Definition: exceptions.hh:15
Vector valued problems.
Definition: spaceTraits.hh:24
uint idx_
Component which should be visualized.
Definition: graphics.hh:37
virtual std::ostream & info(std::ostream &os) const
Handles graphics for vector valued elements.
Definition: graphics.hh:19
void choose(uint idx)
Choose component to be plotted.
Definition: graphics.hh:26
Abstract class for per cell postprocessing.
Definition: postProcess.hh:38
uint chosen() const
Returns index of chosen component.
Definition: graphics.hh:28
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich