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

IsoContour Class Reference

Class implementing triangulated isocontour extraction routines. More...

#include <Isocontour.h>

List of all members.

Public Methods

 IsoContour ()
 constructor. More...

int compute (const VolumetricData *, float isovalue, int step)
 calculate isocontour for a given isovalue and step size. More...

void clear ()
 free up memory. More...

int DoCell (int x, int y, int z, float isovalue, int step)
int Polygonise (const SQUARECELL grid, const float isolevel, LINE *lines)
void VertexInterp (float isolevel, const SQUARECELL grid, int ind1, int ind2, XY *vert)

Public Attributes

int numtriangles
 number of triangles in the facet list. More...

ResizeArray< float > v
 vertices. More...

ResizeArray< int > f
 facets. More...

const VolumetricDatavol
 volume data pointer. More...

float xax [3]
float yax [3]
float zax [3]
 axes/size of volume. More...


Detailed Description

Class implementing triangulated isocontour extraction routines.

Definition at line 34 of file Isocontour.h.


Constructor & Destructor Documentation

IsoContour::IsoContour  
 

constructor.

Definition at line 20 of file Isocontour.C.


Member Function Documentation

void IsoContour::clear  
 

free up memory.

Definition at line 22 of file Isocontour.C.

References ResizeArray< int >::clear, ResizeArray< float >::clear, f, numtriangles, and v.

int IsoContour::compute const VolumetricData  ,
float    isovalue,
int    step
 

calculate isocontour for a given isovalue and step size.

Definition at line 29 of file Isocontour.C.

References data, DoCell, isovalue, vol, xax, VolumetricData::xaxis, VolumetricData::xsize, yax, VolumetricData::yaxis, VolumetricData::ysize, z, zax, VolumetricData::zaxis, and VolumetricData::zsize.

int IsoContour::DoCell int    x,
int    y,
int    z,
float    isovalue,
int    step
 

Definition at line 60 of file Isocontour.C.

References ResizeArray< float >::append3, ResizeArray< int >::append3, SQUARECELL::cubeindex, VolumetricData::data, f, isovalue, numtriangles, VolumetricData::origin, LINE::p, SQUARECELL::p, Polygonise, v, SQUARECELL::val, vol, XY::x, xax, VolumetricData::xsize, XY::y, yax, VolumetricData::ysize, z, and zax.

Referenced by compute.

int IsoContour::Polygonise const SQUARECELL    grid,
const float    isolevel,
LINE   lines
 

Definition at line 158 of file Isocontour.C.

References SQUARECELL::cubeindex, LINE::p, and VertexInterp.

Referenced by DoCell.

void IsoContour::VertexInterp float    isolevel,
const SQUARECELL    grid,
int    ind1,
int    ind2,
XY   vert
 

Definition at line 208 of file Isocontour.C.

References SQUARECELL::p, SQUARECELL::val, XY::x, and XY::y.

Referenced by Polygonise.


Member Data Documentation

ResizeArray<int> IsoContour::f
 

facets.

Definition at line 38 of file Isocontour.h.

Referenced by clear, and DoCell.

int IsoContour::numtriangles
 

number of triangles in the facet list.

Definition at line 36 of file Isocontour.h.

Referenced by clear, and DoCell.

ResizeArray<float> IsoContour::v
 

vertices.

Definition at line 37 of file Isocontour.h.

Referenced by clear, and DoCell.

const VolumetricData* IsoContour::vol
 

volume data pointer.

Definition at line 39 of file Isocontour.h.

Referenced by compute, and DoCell.

float IsoContour::xax[3]
 

Definition at line 40 of file Isocontour.h.

Referenced by compute, and DoCell.

float IsoContour::yax[3]
 

Definition at line 40 of file Isocontour.h.

Referenced by compute, and DoCell.

float IsoContour::zax[3]
 

axes/size of volume.

Definition at line 40 of file Isocontour.h.

Referenced by compute, and DoCell.


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