casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
casa::ColorDistribution_global_functions_Color_Distribution_interface Struct Reference

Global functions for generating color cube dimensions. More...

#include <ColorDistribution.h>

Classes

struct  colorDistItem
 

Public Member Functions

casacore::Bool getRGBDistribution (casacore::uInt nCells, casacore::Bool pow2, casacore::uInt &nRed, casacore::uInt &nGreen, casacore::uInt &nBlue)
 Given nCells cells, return the dimensions of an RGB or HSV color cube that maximally uses those cells by finding the best fit dimensions. More...
 
casacore::Bool getHSVDistribution (casacore::uInt nCells, casacore::Bool pow2, casacore::uInt &nHue, casacore::uInt &nSat, casacore::uInt &nVal)
 

Detailed Description

Global functions for generating color cube dimensions.

This table is used to map X number of color cells into an even cube for RGB distribution. It is unclear in my mind what a good HSV distribution ought to be. Maybe read table as H,V,S. Probably build different one for HSV.

Definition at line 46 of file ColorDistribution.h.

Member Function Documentation

casacore::Bool casa::ColorDistribution_global_functions_Color_Distribution_interface::getHSVDistribution ( casacore::uInt  nCells,
casacore::Bool  pow2,
casacore::uInt nHue,
casacore::uInt nSat,
casacore::uInt nVal 
)
casacore::Bool casa::ColorDistribution_global_functions_Color_Distribution_interface::getRGBDistribution ( casacore::uInt  nCells,
casacore::Bool  pow2,
casacore::uInt nRed,
casacore::uInt nGreen,
casacore::uInt nBlue 
)

Given nCells cells, return the dimensions of an RGB or HSV color cube that maximally uses those cells by finding the best fit dimensions.

If pow2 is true, then returned dimensions are limited to powers of two.


The documentation for this struct was generated from the following file: