FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
BoundingBoxRenderer.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 #include <FAST/Data/Color.hpp>
6 #include <unordered_map>
7 
8 namespace fast {
9 
10 class FAST_EXPORT BoundingBoxRenderer : public Renderer {
12  public:
13  void setLabelColor(int label, Color color);
14  virtual ~BoundingBoxRenderer();
15  protected:
17  void draw(Matrix4f perspectiveMatrix, Matrix4f viewingMatrix, float zNear, float zFar, bool mode2D);
18 
19  std::unordered_map<uint, float> mInputWidths;
20  std::unordered_map<uint, bool> mInputDrawOnTop;
21  std::unordered_map<uint, uint> mVAO;
22 
23  Color m_defaultColor = Color::Green();
24 
25  bool m_colorsModified = true;
26  GLuint m_colorsUBO = 0;
27  std::unordered_map<uchar, Color> m_labelColors;
28 };
29 
30 }
31 
fast::Renderer
Definition: Renderer.hpp:14
fast::BoundingBoxRenderer::m_labelColors
std::unordered_map< uchar, Color > m_labelColors
Definition: BoundingBoxRenderer.hpp:27
fast::Color::Green
static Color Green()
Definition: Color.hpp:52
fast
Definition: AffineTransformation.hpp:7
fast::BoundingBoxRenderer::mInputWidths
std::unordered_map< uint, float > mInputWidths
Definition: BoundingBoxRenderer.hpp:19
fast::BoundingBoxRenderer::mVAO
std::unordered_map< uint, uint > mVAO
Definition: BoundingBoxRenderer.hpp:21
FAST_OBJECT
#define FAST_OBJECT(className)
Definition: Object.hpp:9
Renderer.hpp
fast::BoundingBoxRenderer
Definition: BoundingBoxRenderer.hpp:10
fast::BoundingBoxRenderer::mInputDrawOnTop
std::unordered_map< uint, bool > mInputDrawOnTop
Definition: BoundingBoxRenderer.hpp:20
Color.hpp
fast::Color
Definition: Color.hpp:8
BoundingBox.hpp