ColormapViewerWidget Class Reference
Select a layer from a colormap and render it to a Gtk::Image. More...
#include <tools/firestation/colormap_viewer_widget.h>
Public Member Functions | |
| ColormapViewerWidget () | |
| Constructor. | |
| ~ColormapViewerWidget () | |
| Destructor. | |
| void | set_colormap (Colormap *cm) |
| Set the colormap to display. | |
| void | set_colormap_img (Gtk::Image *img) |
| Set the image to render into. | |
| void | set_layer_selector (Gtk::Scale *scl) |
| Set the selector widget to choose the layer of the colormap which gets rendered. | |
| void | draw (unsigned int layer=0) |
| Draw the colormap. | |
Detailed Description
Select a layer from a colormap and render it to a Gtk::Image.
Definition at line 30 of file colormap_viewer_widget.h.
Constructor & Destructor Documentation
| ColormapViewerWidget::ColormapViewerWidget | ( | ) |
| ColormapViewerWidget::~ColormapViewerWidget | ( | ) |
Member Function Documentation
| void ColormapViewerWidget::draw | ( | unsigned int | layer = 0 |
) |
Draw the colormap.
- Parameters:
-
layer the plane in the third dimension of the colormap to be drawn
Definition at line 107 of file colormap_viewer_widget.cpp.
References Colormap::deepness(), Colormap::depth(), Colormap::height(), LossyScaler::scale(), LossyScaler::set_original_buffer(), LossyScaler::set_original_dimensions(), LossyScaler::set_scaled_buffer(), LossyScaler::set_scaled_dimensions(), Colormap::to_image(), and Colormap::width().
Referenced by ColorTrainWidget::add_to_colormap(), ColorTrainWidget::load_colormap(), ColorTrainWidget::load_histograms(), and ColorTrainWidget::reset_colormap().
| void ColormapViewerWidget::set_colormap | ( | Colormap * | cm | ) |
Set the colormap to display.
- Parameters:
-
cm colormap
Definition at line 52 of file colormap_viewer_widget.cpp.
References Colormap::deepness().
Referenced by ColorTrainWidget::add_to_colormap(), ColorTrainWidget::load_colormap(), and ColorTrainWidget::load_histograms().
| void ColormapViewerWidget::set_colormap_img | ( | Gtk::Image * | img | ) |
Set the image to render into.
- Parameters:
-
img the Image
Definition at line 69 of file colormap_viewer_widget.cpp.
Referenced by ColorTrainWidget::set_colormap_img(), FuseTransferWidget::set_local_img(), and FuseTransferWidget::set_remote_img().
| void ColormapViewerWidget::set_layer_selector | ( | Gtk::Scale * | scl | ) |
Set the selector widget to choose the layer of the colormap which gets rendered.
- Parameters:
-
scl a Gtk::Scale
Definition at line 78 of file colormap_viewer_widget.cpp.
References Colormap::deepness().
Referenced by ColorTrainWidget::set_cm_layer_selector(), FuseTransferWidget::set_local_layer_selector(), and FuseTransferWidget::set_remote_layer_selector().
The documentation for this class was generated from the following files:
- src/firevision/tools/firestation/colormap_viewer_widget.h
- src/firevision/tools/firestation/colormap_viewer_widget.cpp

