GRASS Programmer's Manual
6.4.2(2012)
|
Nviz library -- Data management. More...
#include <grass/glocale.h>
#include <grass/nviz.h>
Go to the source code of this file.
Functions | |
void | Nviz_init_data (nv_data *data) |
Initialize Nviz data. | |
void | Nviz_destroy_data (nv_data *data) |
Free allocated space by nv_data struct. | |
void | Nviz_set_bgcolor (nv_data *data, int color) |
Set background color. | |
int | Nviz_get_bgcolor (nv_data *data) |
Get background color. | |
int | Nviz_color_from_str (const char *color_str) |
Get color value from color string (name or RGB triplet) | |
struct fringe_data * | Nviz_new_fringe (nv_data *data, int id, unsigned long color, double elev, int nw, int ne, int sw, int se) |
struct fringe_data * | Nviz_set_fringe (nv_data *data, int id, unsigned long color, double elev, int nw, int ne, int sw, int se) |
Nviz library -- Data management.
Based on visualization/nviz/src/
(C) 2008, 2010 by the GRASS Development Team This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file nviz.c.
int Nviz_color_from_str | ( | const char * | color_str | ) |
Get color value from color string (name or RGB triplet)
color_str | color string |
Definition at line 98 of file nviz.c.
References BLU_MASK, G_str_to_color(), G_warning(), GRN_MASK, and RED_MASK.
Referenced by gui_modules.wxnviz.Nviz::InitView(), gui_modules.wxnviz.Nviz::LoadSurface(), gui_modules.wxnviz.Nviz::LoadVolume(), gui_modules.wxnviz.Nviz::SetBgColor(), gui_modules.wxnviz.Nviz::SetFringe(), gui_modules.wxnviz.Nviz::SetIsosurfaceAttr(), gui_modules.wxnviz.Nviz::SetSurfaceAttr(), gui_modules.wxnviz.Nviz::SetVectorLineMode(), gui_modules.wxnviz.Nviz::SetVectorPointMode(), and gui_modules.wxnviz.Nviz::SetWireColor().
void Nviz_destroy_data | ( | nv_data * | data | ) |
int Nviz_get_bgcolor | ( | nv_data * | data | ) |
Get background color.
data | nviz data |
Definition at line 86 of file nviz.c.
Referenced by gui_modules.wxnviz.Nviz::EraseMap(), gui_modules.wxnviz.Nviz::InitView(), and gui_modules.wxnviz.Nviz::SaveToFile().
void Nviz_init_data | ( | nv_data * | data | ) |
Initialize Nviz data.
data | nviz data |
Definition at line 23 of file nviz.c.
References NULL, Nviz_new_cplane(), Nviz_new_light(), and Nviz_off_cplane().
Referenced by gui_modules.wxnviz.Nviz::InitView().
struct fringe_data* Nviz_new_fringe | ( | nv_data * | data, |
int | id, | ||
unsigned long | color, | ||
double | elev, | ||
int | nw, | ||
int | ne, | ||
int | sw, | ||
int | se | ||
) | [read] |
Add new fringe
data | nviz data |
id | surface id |
color | color |
elev | fringe elevation |
nw,ne,sw,se | 1 (turn on) 0 (turn off) |
Definition at line 123 of file nviz.c.
References GS_get_surf_list(), GS_surf_exists(), and NULL.
Referenced by Nviz_set_fringe().
void Nviz_set_bgcolor | ( | nv_data * | data, |
int | color | ||
) |
Set background color.
data | nviz data |
color | color value |
Definition at line 72 of file nviz.c.
Referenced by gui_modules.wxnviz.Nviz::InitView(), and gui_modules.wxnviz.Nviz::SetBgColor().
struct fringe_data* Nviz_set_fringe | ( | nv_data * | data, |
int | id, | ||
unsigned long | color, | ||
double | elev, | ||
int | nw, | ||
int | ne, | ||
int | sw, | ||
int | se | ||
) | [read] |
Set fringe
data | nviz data |
id | surface id |
color | color |
elev | fringe elevation |
nw,ne,sw,se | 1 (turn on) 0 (turn off) |
Definition at line 166 of file nviz.c.
References GS_get_surf_list(), GS_surf_exists(), NULL, and Nviz_new_fringe().
Referenced by gui_modules.wxnviz.Nviz::SetFringe().