GRASS Programmer's Manual  6.4.2(2012)
cplanes_obj.c File Reference

Nviz library -- Clip planes manipulation. More...

#include <grass/nviz.h>
Include dependency graph for cplanes_obj.c:

Go to the source code of this file.

Functions

int Nviz_new_cplane (nv_data *data, int id)
 Creates a clip plane object.
int Nviz_off_cplane (nv_data *data, int id)
 Turn off (make inactive) the given clip plane.
int Nviz_draw_cplane (nv_data *data, int bound1, int bound2)
 Draw the clip plane.

Detailed Description

Nviz library -- Clip planes manipulation.

Based on visualization/nviz/src/cutplanes_obj.c

(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.

Author:
Updated/modified by Martin Landa <landa.martin gmail.com> (Google SoC 2008/2010)

Definition in file cplanes_obj.c.


Function Documentation

int Nviz_draw_cplane ( nv_data *  data,
int  bound1,
int  bound2 
)

Draw the clip plane.

Parameters:
bound1
bound2

Definition at line 58 of file cplanes_obj.c.

Referenced by gui_modules.wxnviz.Nviz::Draw().

int Nviz_new_cplane ( nv_data *  data,
int  id 
)

Creates a clip plane object.

The number of clip planes is fixed (MAX_CPLANES) and we'll create them all ahead of time anyway we just let the user decide on the id for each.

Definition at line 26 of file cplanes_obj.c.

References X, and Y.

Referenced by Nviz_init_data().

int Nviz_off_cplane ( nv_data *  data,
int  id 
)

Turn off (make inactive) the given clip plane.

Parameters:
datanviz data
cplaneid

Definition at line 44 of file cplanes_obj.c.

References GS_unset_cplane().

Referenced by Nviz_init_data().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines