Fawkes API
Fawkes Development Version
|
Select a layer from a colormap and render it to a Gtk::Image. More...
#include "colormap_viewer_widget.h"
Public Member Functions | |
ColormapViewerWidget () | |
Constructor. More... | |
~ColormapViewerWidget () | |
Destructor. More... | |
void | set_colormap (firevision::Colormap *cm) |
Set the colormap to display. More... | |
void | set_colormap_img (Gtk::Image *img) |
Set the image to render into. More... | |
void | set_layer_selector (Gtk::Scale *scl) |
Set the selector widget to choose the layer of the colormap which gets rendered. More... | |
void | draw (unsigned int layer=0) |
Draw the colormap. More... | |
Select a layer from a colormap and render it to a Gtk::Image.
Definition at line 32 of file colormap_viewer_widget.h.
ColormapViewerWidget::ColormapViewerWidget | ( | ) |
Constructor.
Definition at line 36 of file colormap_viewer_widget.cpp.
ColormapViewerWidget::~ColormapViewerWidget | ( | ) |
Destructor.
Definition at line 45 of file colormap_viewer_widget.cpp.
void ColormapViewerWidget::draw | ( | unsigned int | layer = 0 | ) |
Draw the colormap.
layer | the plane in the third dimension of the colormap to be drawn |
Definition at line 109 of file colormap_viewer_widget.cpp.
References firevision::LossyScaler::scale(), firevision::LossyScaler::set_original_buffer(), firevision::LossyScaler::set_original_dimensions(), firevision::LossyScaler::set_scaled_buffer(), and firevision::LossyScaler::set_scaled_dimensions().
void ColormapViewerWidget::set_colormap | ( | firevision::Colormap * | cm | ) |
Set the colormap to display.
cm | colormap |
Definition at line 54 of file colormap_viewer_widget.cpp.
References firevision::Colormap::deepness().
void ColormapViewerWidget::set_colormap_img | ( | Gtk::Image * | img | ) |
Set the image to render into.
img | the Image |
Definition at line 71 of file colormap_viewer_widget.cpp.
void ColormapViewerWidget::set_layer_selector | ( | Gtk::Scale * | scl | ) |
Set the selector widget to choose the layer of the colormap which gets rendered.
scl | a Gtk::Scale |
Definition at line 80 of file colormap_viewer_widget.cpp.