Image Component Library (ICL)
Plot3D.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLGeom/src/ICLGeom/Plot3D.h **
10 ** Module : ICLGeom **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLQt/GUIComponent.h>
35 #include <ICLUtils/Range.h>
36 #include <ICLGeom/PlotWidget3D.h>
37 #include <ICLGeom/PlotHandle3D.h>
38 
39 namespace icl{
40  namespace geom{
41 
43 
51  struct Plot3D : public qt::GUIComponent{
52  private:
54  static std::string form_args(const utils::Range32f &xrange,
55  const utils::Range32f &yrange,
56  const utils::Range32f &zrange){
57  std::ostringstream str;
58  str << xrange.minVal << ',' << xrange.maxVal << ','
59  << yrange.minVal << ',' << yrange.maxVal << ','
60  << zrange.minVal << ',' << zrange.maxVal;
61  return str.str();
62  }
63 
64  public:
66 
68  Plot3D(const utils::Range32f &xrange=utils::Range32f(0,0),
69  const utils::Range32f &yrange=utils::Range32f(0,0),
70  const utils::Range32f &zrange=utils::Range32f(0,0)):
71  qt::GUIComponent("plot3D",form_args(xrange,yrange,zrange)){}
72  };
73 
74  }
75 }
GUIComponent(const std::string &type, const std::string &params="")
creates a component with given type and optionally given parameters
Definition: GUIComponent.h:113
undocument this line if you encounter any issues!
Definition: Any.h:37
static std::string form_args(const utils::Range32f &xrange, const utils::Range32f &yrange, const utils::Range32f &zrange)
internally used utility method
Definition: Plot3D.h:54
The GUIComponent class servers as a generic interface for GUI definitions.
Definition: GUIComponent.h:44
std::string str(const T &t)
convert a data type into a string using an std::ostringstream instance
Definition: StringUtils.h:136
Plot3D(const utils::Range32f &xrange=utils::Range32f(0, 0), const utils::Range32f &yrange=utils::Range32f(0, 0), const utils::Range32f &zrange=utils::Range32f(0, 0))
create Plot3D component with given defaultViewPortsize
Definition: Plot3D.h:68
Specialized 3D visualization component intended for 3D-box plots (needs ICLGeom-library to be linked)
Definition: Plot3D.h:51