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

DispCmdTriangle Struct Reference

draw a triangle, given the three points (computes the normals from the cross product) and all normals are the same -or- draw the triangle, given the three points and the three normals. More...

#include <DispCmds.h>

List of all members.

Public Methods

void putdata (const float *, const float *, const float *, VMDDisplayList *)
void putdata (const float *, const float *, const float *, const float *, const float *, const float *, VMDDisplayList *)
void set_array (const float *, const float *, const float *, const float *, const float *, const float *, VMDDisplayList *)

Public Attributes

float pos1 [3]
float pos2 [3]
float pos3 [3]
float norm1 [3]
float norm2 [3]
float norm3 [3]


Detailed Description

draw a triangle, given the three points (computes the normals from the cross product) and all normals are the same -or- draw the triangle, given the three points and the three normals.

Definition at line 267 of file DispCmds.h.


Member Function Documentation

void DispCmdTriangle::putdata const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   ,
VMDDisplayList  
 

Definition at line 345 of file DispCmds.C.

References set_array.

void DispCmdTriangle::putdata const float *   ,
const float *   ,
const float *   ,
VMDDisplayList  
 

Definition at line 333 of file DispCmds.C.

References cross_prod, set_array, and vec_normalize.

Referenced by draw_outsides.

void DispCmdTriangle::set_array const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   ,
VMDDisplayList  
 

Definition at line 318 of file DispCmds.C.

References VMDDisplayList::append, DTRIANGLE, norm1, norm2, norm3, NULL, pos1, pos2, and pos3.

Referenced by putdata.


Member Data Documentation

float DispCmdTriangle::norm1[3]
 

Definition at line 273 of file DispCmds.h.

Referenced by FileRenderer::render, and set_array.

float DispCmdTriangle::norm2[3]
 

Definition at line 273 of file DispCmds.h.

Referenced by FileRenderer::render, and set_array.

float DispCmdTriangle::norm3[3]
 

Definition at line 273 of file DispCmds.h.

Referenced by FileRenderer::render, and set_array.

float DispCmdTriangle::pos1[3]
 

Definition at line 272 of file DispCmds.h.

Referenced by FileRenderer::render, and set_array.

float DispCmdTriangle::pos2[3]
 

Definition at line 272 of file DispCmds.h.

Referenced by FileRenderer::render, and set_array.

float DispCmdTriangle::pos3[3]
 

Definition at line 272 of file DispCmds.h.

Referenced by FileRenderer::render, and set_array.


The documentation for this struct was generated from the following files:
Generated on Fri Apr 19 02:46:47 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002