EMAN2
|
Class to encapsulate an RGB color generator for marching cubes isosurface generator For now you can only color by radius, but in the near future you will be able to color by map, etc. More...
#include <marchingcubes.h>
Public Member Functions | |
ColorRGBGenerator () | |
ColorRGBGenerator (EMData *emdata) | |
Constructor. More... | |
float * | getRGBColor (int x, int y, int z) |
Generate a color based on pixel coords. More... | |
void | set_data (EMData *data) |
set the emdata More... | |
void | generateRadialColorMap () |
Generate a color map. More... | |
void | set_cmap_data (EMData *data) |
Set min max data. More... | |
void | setOrigin (int orix, int oriy, int oriz) |
Set origin. More... | |
void | setScale (float i, float o) |
Set scaling. More... | |
void | setRGBmode (int mode) |
Set RGB mode 0 = none, 1 = color by radius, more to come :) More... | |
void | setMinMax (float min, float max) |
Set the mn max for cmap coloring. More... | |
int | getRGBmode () |
Return RGB mode. More... | |
bool | getNeedToRecolor () |
Lets us know if we need to recalculate colors. More... | |
void | setNeedToRecolor (bool recolor) |
Private Attributes | |
int | rgbmode |
int | originx |
int | originy |
int | originz |
float | inner |
float | outer |
float | minimum |
float | maximum |
bool | needtorecolor |
float * | colormap |
EMData * | em_data |
EMData * | cmap |
float | rgb [3] |
Class to encapsulate an RGB color generator for marching cubes isosurface generator For now you can only color by radius, but in the near future you will be able to color by map, etc.
Definition at line 188 of file marchingcubes.h.
EMAN::ColorRGBGenerator::ColorRGBGenerator | ( | ) |
EMAN::ColorRGBGenerator::ColorRGBGenerator | ( | EMData * | emdata | ) |
Constructor.
void EMAN::ColorRGBGenerator::generateRadialColorMap | ( | ) |
Generate a color map.
|
inline |
Lets us know if we need to recalculate colors.
Definition at line 243 of file marchingcubes.h.
References needtorecolor.
float * EMAN::ColorRGBGenerator::getRGBColor | ( | int | x, |
int | y, | ||
int | z | ||
) |
Generate a color based on pixel coords.
|
inline |
Return RGB mode.
Definition at line 237 of file marchingcubes.h.
References rgbmode.
Referenced by EMAN::MarchingCubes::getRGBmode().
void EMAN::ColorRGBGenerator::set_cmap_data | ( | EMData * | data | ) |
Set min max data.
Referenced by EMAN::MarchingCubes::setCmapData().
void EMAN::ColorRGBGenerator::set_data | ( | EMData * | data | ) |
set the emdata
|
inline |
Set the mn max for cmap coloring.
Definition at line 229 of file marchingcubes.h.
References maximum, minimum, and needtorecolor.
Referenced by EMAN::MarchingCubes::setCmapMinMax().
|
inline |
Definition at line 248 of file marchingcubes.h.
References needtorecolor.
|
inline |
Set origin.
Definition at line 207 of file marchingcubes.h.
References needtorecolor, originx, originy, and originz.
Referenced by EMAN::MarchingCubes::setRGBorigin().
|
inline |
Set RGB mode 0 = none, 1 = color by radius, more to come :)
Definition at line 222 of file marchingcubes.h.
References needtorecolor, and rgbmode.
Referenced by EMAN::MarchingCubes::setRGBmode().
|
inline |
Set scaling.
Definition at line 215 of file marchingcubes.h.
References inner, needtorecolor, and outer.
Referenced by EMAN::MarchingCubes::setRGBscale().
|
private |
Definition at line 266 of file marchingcubes.h.
|
private |
Definition at line 264 of file marchingcubes.h.
|
private |
Definition at line 265 of file marchingcubes.h.
|
private |
Definition at line 257 of file marchingcubes.h.
Referenced by setScale().
|
private |
Definition at line 260 of file marchingcubes.h.
Referenced by setMinMax().
|
private |
Definition at line 259 of file marchingcubes.h.
Referenced by setMinMax().
|
private |
Definition at line 262 of file marchingcubes.h.
Referenced by getNeedToRecolor(), setMinMax(), setNeedToRecolor(), setOrigin(), setRGBmode(), and setScale().
|
private |
Definition at line 254 of file marchingcubes.h.
Referenced by setOrigin().
|
private |
Definition at line 255 of file marchingcubes.h.
Referenced by setOrigin().
|
private |
Definition at line 256 of file marchingcubes.h.
Referenced by setOrigin().
|
private |
Definition at line 258 of file marchingcubes.h.
Referenced by setScale().
|
private |
Definition at line 268 of file marchingcubes.h.
|
private |
Definition at line 253 of file marchingcubes.h.
Referenced by getRGBmode(), and setRGBmode().