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

C:/temp/src/j2k/Beta/3D/Modeleur.hpp File Reference

#include "topolog.h"
#include "modgrf.h"

Go to the source code of this file.

Compounds

struct  __Result
struct  AxisCAO
struct  GenerateType
struct  ProfToProfAxisCAO
struct  RotAxisCAO
struct  RotProfToProfAxisCAO
struct  TransAxisCAO
struct  VecAxisCAO

Defines

#define ShapeExt   ".shp"
#define __ReservedMsg   100
#define MOD_GENERATE_ERROR_OPEN_FIC   100
#define MOD_SOM_ERROR_BAD_FIC_WRITE   101

Typedefs

typedef char ShapeName [9]

Functions

int Generate (AxisCAO &m)


Define Documentation

#define MOD_GENERATE_ERROR_OPEN_FIC   100
 

Definition at line 25 of file Modeleur.hpp.

#define MOD_SOM_ERROR_BAD_FIC_WRITE   101
 

Definition at line 26 of file Modeleur.hpp.

#define ShapeExt   ".shp"
 

Definition at line 22 of file Modeleur.hpp.

#define __ReservedMsg   100
 

Definition at line 24 of file Modeleur.hpp.


Typedef Documentation

typedef char ShapeName[9]
 

Definition at line 20 of file Modeleur.hpp.


Function Documentation

int Generate AxisCAO   m
 

Definition at line 314 of file Modeleur.cpp.

00315 { int   error;
00316   char  ficname[15];
00317 
00318 
00319   FILE* f = fopen( strcat(strcpy(ficname,m.name),ShapeExt), "w" );
00320   if ( !f ) return MOD_GENERATE_ERROR_OPEN_FIC;
00321 
00322   if ( (error = m.GenerateVertex(f)) != SUCCESS )
00323      { fclose(f); return error; }
00324 
00325   if ( (error = m.GenerateArc(f)) != SUCCESS )
00326      { fclose(f); return error; }
00327 
00328   if ( (error = m.GenerateFace(f)) != SUCCESS )
00329      { fclose(f); return error; }
00330 
00331   fclose(f);
00332 
00333   return SUCCESS;
00334 }


Generated on Sun Oct 14 18:46:47 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001