Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

platform.H File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <dirent.h>
#include <fnmatch.h>
#include <termios.h>
#include <cstdlib>
#include <cstdio>
#include <ctime>
#include <climits>
#include <cfloat>
#include <cstring>
#include <cerrno>
#include <cstdarg>
#include <cctype>
#include <cmath>

Include dependency graph for platform.H:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TYPENAME
#define JOT_NEEDS_DOUBLE_STAR_EXPLICIT

Typedefs

typedef int bool

Functions

template<class T>
sqr (const T &x)
int round (double x)
template<class T>
void swap (T &a, T &b)
template<class T>
min (const T &a, const T &b)
template<class T>
max (const T &a, const T &b)
template<class T>
clamp (const T &a, const T &b, const T &c)
template<class T>
interp (const T &A, const T &B, double w)
template<class T>
bool in_interval (const T &p, const T &a, const T &b)
int Sign (double a)
int Sign2 (double a)
bool XOR (bool x, bool y)

Variables

const int true = 1
const int false = 0


Define Documentation

#define JOT_NEEDS_DOUBLE_STAR_EXPLICIT
 

Definition at line 146 of file platform.H.

#define TYPENAME
 

Definition at line 59 of file platform.H.


Typedef Documentation

typedef int bool
 

Definition at line 70 of file platform.H.


Function Documentation

template<class T>
T clamp const T &  a,
const T &  b,
const T &  c
[inline]
 

Definition at line 194 of file platform.H.

template<class T>
bool in_interval const T &  p,
const T &  a,
const T &  b
[inline]
 

Definition at line 211 of file platform.H.

Referenced by get_section(), and mlib::NDCZpt::in_frustum().

template<class T>
T interp const T &  A,
const T &  B,
double  w
[inline]
 

Definition at line 203 of file platform.H.

template<class T>
T max const T &  a,
const T &  b
[inline]
 

Definition at line 188 of file platform.H.

Referenced by add_shading(), Bface::bc2vert(), GLUIFileSelect::build_glui(), GLUIAlertBox::build_glui(), QuadtreeNode::build_quadtree(), CamFocus::CamFocus(), Bsimplex::clamp_barycentric(), UVMapping::compute_debug_image(), GLUIFileSelect::compute_scroll_geometry(), BMESH::dec_edit_level(), GLUT_MANAGER::do_idle(), GLUIFileSelect::do_scroll_set(), ControlFrameTexture::draw(), eat_line(), mlib::eigdc(), LMESH::fit(), HSVCOLOR::HSVCOLOR(), GL_VIEW::init_line_smooth(), GL_VIEW::init_point_smooth(), GESTURE::is_closed(), GESTURE::is_x(), UNIX_MANAGER::loop(), main(), maketexture(), Bface_list::max_norm_deviation(), mlib::Pointlist< L, P, V, S >::max_val(), pressure_to_grey(), Bface::quad_max_dim(), BMESH::recenter(), egg_timer::remaining(), VIEW::screen_grab(), SmallCircleGuard::set_max_ratio(), CircleGuard::set_max_ratio(), sign_cast(), skip_line(), IOManager::split_filename(), mlib::Pointlist< L, P, V, S >::spread(), mlib::statistics(), Recorder::step_rev(), Bedge::swapable(), GESTURE::winding(), and BMESH::z_span().

template<class T>
T min const T &  a,
const T &  b
[inline]
 

Definition at line 186 of file platform.H.

Referenced by DEBUG_ELLIPSE::alpha(), DrawWidget::alpha(), Bface::bc2edge(), BMESHcurvature_data::compute_feature_size(), GLUIFileSelect::compute_scroll_geometry(), GLUIFileSelect::do_scroll_set(), RefImage::find_val_in_box(), LMESH::fit(), BMESH::get_sil_strips(), BMESH::get_zcross_strips(), HSVCOLOR::HSVCOLOR(), SimplexArray< Bsimplex_list, Bsimplex * >::intersect(), maketexture(), Patch_list::min_alpha(), BMESH_list::min_alpha(), Bvert::min_dot(), Bedge_list::min_edge_len(), mlib::Pointlist< L, P, V, S >::min_val(), VIEW::ndc2pix_scale(), VisRefImage::need_update(), normalizeSpaceballAngle(), normalizeSpaceballDelta(), normalizeTabletPos(), Bface::quad_min_dim(), Bface::quad_rep(), REF_CLASS(), CoordSystem2d::resize(), IDRefImage::search(), sign_cast(), mlib::statistics(), Recorder::step_fwd(), GESTURE::winding(), and BMESH::z_span().

int round double  x  )  [inline]
 

Definition at line 163 of file platform.H.

References int().

Referenced by VisRefImage::need_update().

int Sign double  a  )  [inline]
 

Definition at line 220 of file platform.H.

Referenced by Cam_int_fp::orbit_rot(), Cam_int::rot(), Cam_int_fp::rot(), Cam_int_edit::rot(), rotate_camera(), mlib::Vec3< V >::signed_angle(), mlib::Vec2< V >::signed_angle(), CamOrbit::tick(), Bedge::which_side(), Cam_int::zoom2(), and Cam_int_edit::zoom2().

int Sign2 double  a  )  [inline]
 

Definition at line 227 of file platform.H.

Referenced by sort_date(), and sort_size().

template<class T>
T sqr const T &  x  )  [inline]
 

Definition at line 157 of file platform.H.

Referenced by mlib::Point3< NDCZpt, NDCZvec >::dist_sqrd(), mlib::eigdc(), GESTURE::is_ellipse(), BBOX::is_off_screen(), loop_alpha(), maketexture(), Cam_int_fp::orbit_rot(), Bedge::project_barycentric(), Cam_int::rot(), Cam_int_fp::rot(), Cam_int_edit::rot(), rotate_camera(), LineDrawingVprogFprogNoSSDMode::setup_for_drawing_outside_dl(), CurvatureARBvpARBfpMultiTextureMode::setup_for_drawing_outside_dl(), LoopCalc< COLOR >::smooth_limit_val(), sqr_signed(), HybridCalc< Wpt >::subdiv_val(), HSpline::tan_at(), kbd_nav::tick(), and CamOrbit::tick().

template<class T>
void swap T &  a,
T &  b
[inline]
 

Definition at line 174 of file platform.H.

Referenced by Cam_int::choose(), Cam_int_fp::choose(), Cam_int_edit::choose(), diagonalize_curv(), GESTURE::is_ellipse(), Bedge::is_sil(), mlib::ludcmp(), ARRAY< NDCpt >::reverse(), Bface::reverse(), ZcrossPath::start_sil(), and Bface::view_intersect().

bool XOR bool  x,
bool  y
[inline]
 

Definition at line 230 of file platform.H.

Referenced by GEOM::do_cam_focus(), and is_fold().


Variable Documentation

const int false = 0
 

Definition at line 72 of file platform.H.

const int true = 1
 

Definition at line 71 of file platform.H.

Referenced by Bface::zx_query().


Generated on Mon Sep 18 11:42:37 2006 for jot by  doxygen 1.4.4