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

DrawMolItem2.C File Reference

#include <stdlib.h>
#include <stdio.h>
#include "DrawMolItem.h"
#include "DrawMolecule.h"
#include "Scene.h"
#include "DrawMolItemSolventPoints.data"

Go to the source code of this file.

Defines

#define PUSH_QUEUE(atomid)
#define EMPTY_QUEUE
#define CROSS_SCALE_FACTOR   0.05f


Define Documentation

#define CROSS_SCALE_FACTOR   0.05f
 

#define EMPTY_QUEUE
 

Value:

{                               \
  int atomidcode = -1;                          \
  PUSH_QUEUE(atomidcode);                       \
  PUSH_QUEUE(atomidcode);                       \
  PUSH_QUEUE(atomidcode);                       \
  PUSH_QUEUE(atomidcode);                       \
}

Definition at line 64 of file DrawMolItem2.C.

#define PUSH_QUEUE atomid   
 

Value:

{                                               \
  if (atomid < 0) {                                                     \
    memmove(CA, CA+1, 3L*sizeof(float *)); CA[3] = NULL;                \
    memmove(indicies, indicies+1, 3L*sizeof(int)); indicies[3] = -1;    \
  } else {                                                              \
    memmove(CA, CA+1, 3L*sizeof(float *)); CA[3] = framepos+3L*atomid;  \
    memmove(indicies, indicies+1, 3L*sizeof(int)); indicies[3] = atomid;\
  }                                                                     \
                                        \
  if (CA[1] && CA[2] && atomSel->on[indicies[1]] && atomSel->on[indicies[2]]) { \
    float midcoord[3];                                                  \
    midcoord[0] = (CA[1][0] + CA[2][0])/2.0f;                           \
    midcoord[1] = (CA[1][1] + CA[2][1])/2.0f;                           \
    midcoord[2] = (CA[1][2] + CA[2][2])/2.0f;                           \
    cmdColorIndex.putdata(atomColor->color[indicies[1]], cmdList);      \
    make_connection(CA[0], CA[1], midcoord, NULL,                       \
                    brad, bres, use_cyl);                               \
    cmdColorIndex.putdata(atomColor->color[indicies[2]], cmdList);      \
    make_connection(NULL, midcoord, CA[2], CA[3],                       \
                  brad, bres, use_cyl);                                 \
  }                                                                     \
}

Definition at line 37 of file DrawMolItem2.C.


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