Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

DrawRingsUtils.C File Reference

#include <math.h>
#include "utilities.h"
#include "AtomColor.h"
#include "Scene.h"
#include "DrawRingsUtils.h"

Go to the source code of this file.

Functions

void lerp_color_range (float *newcol, float val, float rmin, float rmax, float *mincol, float *maxcol)
void hotcold_gradient_lerp (float pucker_sum, float *rgb)
void hotcold_gradient (float pucker_sum, float *rgb)
float hill_reilly_ring_pucker (SmallRing &ring, float *framepos)
void hill_reilly_ring_color (SmallRing &ring, float *framepos, float *rgb)
void hill_reilly_ring_colorscale (SmallRing &ring, float *framepos, float vmin, float vmax, const Scene *scene, float *rgb)
void vec_incr (float sum[3], const float x, const float y, const float z)
void ring_axes (const float *X, const float *Y, const float *Z, int N, float x[3], float y[3], float z[3])
void atom_displ_from_mean_plane (float *X, float *Y, float *Z, float *displ, int N)
int cremer_pople_params (int N_ring_atoms, float *displ, float *q, float *phi, int &m, float &Q)
void cremer_pople_ring_color (SmallRing &ring, float *framepos, float *rgb)
void ribbon_spline (float *pos, const float *const A, const float *const B, const float *const C, const float *const D, const float t)


Function Documentation

void atom_displ_from_mean_plane float *    X,
float *    Y,
float *    Z,
float *    displ,
int    N
 

Definition at line 307 of file DrawRingsUtils.C.

References ring_axes.

int cremer_pople_params int    N_ring_atoms,
float *    displ,
float *    q,
float *    phi,
int &    m,
float &    Q
 

Definition at line 338 of file DrawRingsUtils.C.

References VMD_PI.

void cremer_pople_ring_color SmallRing   ring,
float *    framepos,
float *    rgb
 

Definition at line 395 of file DrawRingsUtils.C.

References atom_displ_from_mean_plane, clamp_color, cremer_pople_params, SmallRing::num, and vec_zero.

void hill_reilly_ring_color SmallRing   ring,
float *    framepos,
float *    rgb
 

Definition at line 226 of file DrawRingsUtils.C.

References hill_reilly_ring_pucker, and hotcold_gradient.

void hill_reilly_ring_colorscale SmallRing   ring,
float *    framepos,
float    vmin,
float    vmax,
const Scene   scene,
float *    rgb
 

Definition at line 232 of file DrawRingsUtils.C.

References Scene::color_value, hill_reilly_ring_pucker, MAPCLRS, and MAPCOLOR.

float hill_reilly_ring_pucker SmallRing   ring,
float *    framepos
 

Definition at line 102 of file DrawRingsUtils.C.

References atom_displ_from_mean_plane, cremer_pople_params, cross_prod, dot_prod, n, SmallRing::num, vec_normalize, vec_sub, and VMD_PI.

void hotcold_gradient float    pucker_sum,
float *    rgb
 

Definition at line 71 of file DrawRingsUtils.C.

References clamp_color, and vec_zero.

Referenced by hill_reilly_ring_color.

void hotcold_gradient_lerp float    pucker_sum,
float *    rgb
 

Definition at line 41 of file DrawRingsUtils.C.

References clamp_color, lerp_color_range, vec_copy, and vec_zero.

void lerp_color_range float *    newcol,
float    val,
float    rmin,
float    rmax,
float *    mincol,
float *    maxcol
 

Definition at line 33 of file DrawRingsUtils.C.

References vec_lerp.

Referenced by hotcold_gradient_lerp.

void ribbon_spline float *    pos,
const float *const    A,
const float *const    B,
const float *const    C,
const float *const    D,
const float    t
 

Definition at line 462 of file DrawRingsUtils.C.

References vec_copy, and vec_scaled_add.

void ring_axes const float *    X,
const float *    Y,
const float *    Z,
int    N,
float    x[3],
float    y[3],
float    z[3]
 

Definition at line 277 of file DrawRingsUtils.C.

References cross_prod, dot_prod, vec_incr, vec_normalize, VMD_PI, and z.

Referenced by atom_displ_from_mean_plane.

void vec_incr float    sum[3],
const float    x,
const float    y,
const float    z
 

Definition at line 268 of file DrawRingsUtils.C.

References z.


Generated on Sat Nov 9 02:45:57 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002