GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
__contourc__.cc File Reference
#include <limits>
#include "defun.h"
#include "ov.h"
Include dependency graph for __contourc__.cc:

Go to the source code of this file.

Macros

#define CONTOUR_QUANT   50
 

Functions

static void add_point (double x, double y)
 
static void cntr (const RowVector &X, const RowVector &Y, const Matrix &Z, double lvl)
 
static void drawcn (const RowVector &X, const RowVector &Y, const Matrix &Z, double lvl, int r, int c, double ct_x, double ct_y, unsigned int start_edge, bool first, charMatrix &mark)
 
static void end_contour (void)
 
OCTAVE_EXPORT octave_value_list F__contourc__ (const octave_value_list &args, int)
 
static void mark_facets (const Matrix &Z, charMatrix &mark, double lvl)
 
static void start_contour (double lvl, double x, double y)
 

Variables

static Matrix contourc
 
static int elem
 
static Matrix this_contour
 

Macro Definition Documentation

◆ CONTOUR_QUANT

#define CONTOUR_QUANT   50

Definition at line 50 of file __contourc__.cc.

Referenced by add_point().

Function Documentation

◆ add_point()

static void add_point ( double  x,
double  y 
)
static

Definition at line 55 of file __contourc__.cc.

References Matrix::append(), CONTOUR_QUANT, elem, this_contour, x, and y.

Referenced by drawcn(), and start_contour().

◆ cntr()

static void cntr ( const RowVector X,
const RowVector Y,
const Matrix Z,
double  lvl 
)
static

Definition at line 259 of file __contourc__.cc.

References c, drawcn(), mark_facets(), and Z.

Referenced by F__contourc__().

◆ drawcn()

static void drawcn ( const RowVector X,
const RowVector Y,
const Matrix Z,
double  lvl,
int  r,
int  c,
double  ct_x,
double  ct_y,
unsigned int  start_edge,
bool  first,
charMatrix mark 
)
static

Definition at line 93 of file __contourc__.cc.

References add_point(), c, Array< T >::cols(), first, id, octave::math::isnan(), k, Array< T >::rows(), start_contour(), tmp, and Z.

Referenced by cntr().

◆ end_contour()

static void end_contour ( void  )
static

Definition at line 69 of file __contourc__.cc.

References Matrix::append(), contourc, elem, Matrix::extract_n(), and this_contour.

Referenced by F__contourc__(), and start_contour().

◆ F__contourc__()

OCTAVE_EXPORT octave_value_list F__contourc__ ( const octave_value_list args,
int   
)

◆ mark_facets()

static void mark_facets ( const Matrix Z,
charMatrix mark,
double  lvl 
)
static

Definition at line 212 of file __contourc__.cc.

References c, Array< T >::cols(), f, i, Array< T >::rows(), and Z.

Referenced by cntr().

◆ start_contour()

static void start_contour ( double  lvl,
double  x,
double  y 
)
static

Definition at line 84 of file __contourc__.cc.

References add_point(), end_contour(), Matrix::resize(), this_contour, x, and y.

Referenced by drawcn().

Variable Documentation

◆ contourc

Matrix contourc
static

Definition at line 46 of file __contourc__.cc.

Referenced by end_contour(), and F__contourc__().

◆ elem

◆ this_contour

Matrix this_contour
static

Definition at line 45 of file __contourc__.cc.

Referenced by add_point(), end_contour(), and start_contour().