Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

Maillage3DH Class Reference

#include <Maille.hpp>

List of all members.

Public Methods

 Maillage3DH (int s=0, int a=0, int f=0)
virtual ~Maillage3DH ()
void init (int s=0, int a=0, int f=0)
void flush (BOOL fs=TRUE, BOOL fa=TRUE, BOOL ff=TRUE, BOOL fn=TRUE)

Public Attributes

Sommet3DHsommets
Sommet3DHnormales
ArcD * arcs
FaceCfaces
int cardsommets
int cardnormales
int cardarcs
int cardfaces


Constructor & Destructor Documentation

Maillage3DH::Maillage3DH int    s = 0,
int    a = 0,
int    f = 0
[inline]
 

Definition at line 118 of file Maille.hpp.

00119     : cardsommets (0),
00120       cardnormales(0),
00121       cardarcs    (0),
00122       cardfaces   (0),
00123       sommets     (NULL),
00124       normales    (NULL),
00125       arcs        (NULL),
00126       faces       (NULL) 
00127   { 
00128     init( s, a, f ); 
00129   }

virtual Maillage3DH::~Maillage3DH   [inline, virtual]
 

Definition at line 131 of file Maille.hpp.

00131 { flush(); }


Member Function Documentation

void Maillage3DH::flush BOOL    s = TRUE,
BOOL    a = TRUE,
BOOL    f = TRUE,
BOOL    n = TRUE
 

Definition at line 75 of file Maille.cpp.

00075                                                        {
00076 
00077  if ( s && cardsommets && sommets ) {
00078    if (sommets)  delete [] sommets;
00079    if (normales) delete [] normales;
00080    cardsommets = 0;
00081    sommets = normales = NULL;
00082  }
00083 
00084  if ( n && cardnormales && normales ) {
00085    if (normales) delete [] normales;
00086    cardnormales = 0;
00087    normales = NULL;
00088  }
00089 
00090  if ( a && cardarcs && arcs ) {
00091   delete [] arcs;
00092   cardarcs = 0;
00093   arcs = NULL;
00094  }
00095 
00096  if ( f && cardfaces && faces ) {
00097    delete [] faces;
00098    cardfaces = 0;
00099    faces = NULL;
00100  }
00101 
00102 }

void Maillage3DH::init int    s = 0,
int    a = 0,
int    f = 0
 

Definition at line 49 of file Maille.cpp.

Referenced by operator>>().

00049                                             {
00050 
00051  if( s ) {
00052    flush ( TRUE, FALSE, FALSE );
00053    sommets  = new Sommet3DH[s];
00054    cardsommets = s;
00055  }
00056 
00057  if( a ) {
00058    flush ( FALSE, TRUE, FALSE );
00059    arcs = new ArcD[a];
00060    cardarcs  = a;
00061  }
00062 
00063  if( f ) {
00064    flush ( FALSE, FALSE, TRUE );
00065 
00066    faces        = new FaceC[f];
00067    normales     = new Sommet3DH[f];
00068    cardfaces    = f;
00069    cardnormales = f;
00070  }
00071 
00072 }


Member Data Documentation

ArcD* Maillage3DH::arcs
 

Definition at line 110 of file Maille.hpp.

Referenced by operator<<().

int Maillage3DH::cardarcs
 

Definition at line 113 of file Maille.hpp.

Referenced by operator<<().

int Maillage3DH::cardfaces
 

Definition at line 113 of file Maille.hpp.

Referenced by operator<<().

int Maillage3DH::cardnormales
 

Definition at line 113 of file Maille.hpp.

int Maillage3DH::cardsommets
 

Definition at line 113 of file Maille.hpp.

Referenced by operator<<(), and operator>>().

FaceC* Maillage3DH::faces
 

Definition at line 111 of file Maille.hpp.

Referenced by operator<<().

Sommet3DH * Maillage3DH::normales
 

Definition at line 107 of file Maille.hpp.

Sommet3DH* Maillage3DH::sommets
 

Definition at line 107 of file Maille.hpp.

Referenced by operator<<(), and operator>>().


The documentation for this class was generated from the following files:
Generated on Sun Oct 14 18:49:17 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001