DXFCON1.C File Reference

Go to the source code of this file.

Defines

#define PI   3.1415926
#define HE   2147483647L
#define _X__FAR
#define E_TOOMANYVERTICES   1
#define G_FILEOPENFAIL   2
#define UNIT   32768L
#define UNIT2   65536L
#define MINUNIT   1024L
#define MAXUNIT   4194304L
#define UNITSCA   (MAXUNIT/16)
#define NO   0
#define YES   1
#define OK   0
#define FAIL   1
#define SELECTED   1
#define DESELECTED   0
#define PLANE   0

Typedefs

typedef double vector [3]
typedef long point [3]
typedef long twoLongs [2]
typedef struct VERTEX vertex
typedef struct EDGE edge
typedef struct FACE face
typedef struct WIREFRAME wireframe
typedef struct SKELETON skel

Functions

BOOL CALLBACK DlgProc (HWND, UINT, WPARAM, LPARAM)
BOOL CALLBACK DlgProcScale (HWND, UINT, WPARAM, LPARAM)
void CreateEdge (vertex *v1, vertex *v2, short check)
void CreateFace (vertex *v1, vertex *v2, vertex *v3, short check)
void CreateVertex (void)
void WriteTextures (void)
void WriteVertices (short)
void WriteEdges (short)
void WriteFaces (short)
void WriteSkeleton (void)
void CreateSkeleton (skel *at)
void check_error (void)
void outsht (short sht)
void outlng (long lng)
short SaveObject (char *Filename, short status)
BOOL DoDxfConvert (char *infile, char *outfile, double wt, short h_type, short l_freeze, short b_freeze, short no_weld, short d2, short d3, short cs)

Variables

int(* X__pri )(const char *,...)
HWND hWndParent
HINSTANCE hInstance
HWND dlg
HWND hwndProgress
short quiet = 0
axis ObjectAxis
vertexMainVp = NULL
edgeMainEp = NULL
faceMainFp = NULL
long Nvert = 0
long NvertSelect = 0
long NvertDeselect = 0
long Nface = 0
long Nedge = 0
long TVpointX = (-UNIT)
long TVpointY = (-UNIT)
long TVpointZ = (-UNIT)
long TVsizeX = UNIT2
long TVsizeY = UNIT2
long TVsizeZ = UNIT2
short ShadowFlag = NO
point TextureP [64]
point TextureX [64]
point TextureY [64]
long TextureType [64]
long TextureAnimFF [64]
long TextureAnimDL [64]
long TextureAnimLF [64]
long TextureMap [64]
long TextureAngle [64]
char * TextureList [64]
long Brilliance = 0
long Reflectivity = 0
long Transparency = 0
long EDIT_ACTION
long NoTextures = 0
long Nskel = 0
long DefaultBrilliance
long DefaultTransparency
long DefaultReflectivity
long ruler = 1
long lrulerx = 0
long lrulery = 0
long lrulerz = 0
long grid_size = UNIT
long rulerx = 0
long rulery = 0
long rulerz = 0
long N_Bcurves = 0
skelMainSp = NULL
skelFirstSp = NULL
skelTextureSk [64]


Define Documentation

#define PI   3.1415926

Definition at line 30 of file DXFCON1.C.

#define HE   2147483647L

Definition at line 42 of file DXFCON1.C.

#define _X__FAR

Definition at line 43 of file DXFCON1.C.

#define E_TOOMANYVERTICES   1

Definition at line 44 of file DXFCON1.C.

#define G_FILEOPENFAIL   2

Definition at line 45 of file DXFCON1.C.

#define UNIT   32768L

Definition at line 104 of file DXFCON1.C.

#define UNIT2   65536L

Definition at line 105 of file DXFCON1.C.

#define MINUNIT   1024L

Definition at line 106 of file DXFCON1.C.

#define MAXUNIT   4194304L

Definition at line 107 of file DXFCON1.C.

#define UNITSCA   (MAXUNIT/16)

Definition at line 108 of file DXFCON1.C.

#define NO   0

Definition at line 110 of file DXFCON1.C.

#define YES   1

Definition at line 111 of file DXFCON1.C.

#define OK   0

Definition at line 112 of file DXFCON1.C.

#define FAIL   1

Definition at line 113 of file DXFCON1.C.

#define SELECTED   1

Definition at line 114 of file DXFCON1.C.

#define DESELECTED   0

Definition at line 115 of file DXFCON1.C.

#define PLANE   0

Definition at line 116 of file DXFCON1.C.


Typedef Documentation

typedef double vector[3]

Definition at line 47 of file DXFCON1.C.

typedef long point[3]

Definition at line 48 of file DXFCON1.C.

typedef long twoLongs[2]

Definition at line 49 of file DXFCON1.C.

typedef struct VERTEX vertex

typedef struct EDGE edge

typedef struct FACE face

typedef struct WIREFRAME wireframe

typedef struct SKELETON skel


Function Documentation

BOOL CALLBACK DlgProc ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
)

Definition at line 55 of file 3DSCON.C.

BOOL CALLBACK DlgProcScale ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
)

Definition at line 69 of file 3DSCON.C.

References CentreDlgOnS, DLG_SCALE_CEN, DLG_SCALE_SCALE, DLG_SCALE_XCEN, DLG_SCALE_YCEN, DLG_SCALE_ZCEN, FALSE, and TRUE.

Referenced by rescale_model().

void CreateEdge ( vertex v1,
vertex v2,
short  check 
)

Definition at line 163 of file DXFCON1.C.

References MainEp, and Nedge.

void CreateFace ( vertex v1,
vertex v2,
vertex v3,
short  check 
)

Definition at line 181 of file DXFCON1.C.

References MainFp, and Nface.

void CreateVertex ( void   ) 

Definition at line 332 of file 3DSCON1.C.

void WriteTextures ( void   ) 

Definition at line 374 of file DXFCON1.C.

References _X__FAR, and outlng().

void WriteVertices ( short  status  ) 

Definition at line 288 of file 3DSSAVE.C.

References intriview(), MainVp, outlng(), and SELECTED.

void WriteEdges ( short  short_form  ) 

Definition at line 370 of file 3DSSAVE.C.

References MainEp, and outlng().

void WriteFaces ( short  short_form  ) 

Definition at line 384 of file 3DSSAVE.C.

References MainFp, and outlng().

void WriteSkeleton ( void   ) 

void check_error ( void   ) 

Definition at line 256 of file DXFCON1.C.

References quiet, and X__pri.

Referenced by outlng(), and outsht().

void outsht ( short  sht  ) 

Definition at line 263 of file DXFCON1.C.

References check_error().

void outlng ( long  lng  ) 

Definition at line 268 of file DXFCON1.C.

References check_error().

BOOL DoDxfConvert ( char *  infile,
char *  outfile,
double  wt,
short  h_type,
short  l_freeze,
short  b_freeze,
short  no_weld,
short  d2,
short  d3,
short  cs 
)

Definition at line 520 of file DXFCON1.C.

References CreateSkeleton, DxfLoad(), FALSE, Nface, Nvert, PLANE, quiet, SaveObject(), TRUE, TVpointZ, TVsizeX, TVsizeZ, and X__pri.

Referenced by _Convert().


Variable Documentation

int(* X__pri)(const char *,...)

Referenced by _Convert(), check_error(), and DoDxfConvert().

HWND hWndParent

Definition at line 33 of file 3DSCON.C.

Referenced by _Convert(), Do3dsConvert(), and rescale_model().

HINSTANCE hInstance

Definition at line 35 of file 3DSCON.C.

Referenced by _Convert(), DllMain(), Do3dsConvert(), rescale_model(), and ResourceX().

HWND dlg

Definition at line 32 of file 3DSCON.C.

Referenced by _Convert(), and Do3dsConvert().

Definition at line 41 of file DXFCON.C.

Referenced by DlgProc().

short quiet = 0

Definition at line 118 of file DXFCON1.C.

Referenced by check_error(), and DoDxfConvert().

Initial value:

{NULL,NULL,0,0,
                 0L,0L,0L,
                 0,0L,0L,
                 UNIT,0L,0L,
                 0L,UNIT,0L,
                 0L,0L,0L}

Definition at line 119 of file DXFCON1.C.

vertex* MainVp = NULL

Definition at line 125 of file DXFCON1.C.

edge* MainEp = NULL

Definition at line 126 of file DXFCON1.C.

face* MainFp = NULL

Definition at line 127 of file DXFCON1.C.

long Nvert = 0

Definition at line 128 of file DXFCON1.C.

long NvertSelect = 0

Definition at line 128 of file DXFCON1.C.

long NvertDeselect = 0

Definition at line 128 of file DXFCON1.C.

long Nface = 0

Definition at line 128 of file DXFCON1.C.

long Nedge = 0

Definition at line 128 of file DXFCON1.C.

long TVpointX = (-UNIT)

Definition at line 129 of file DXFCON1.C.

long TVpointY = (-UNIT)

Definition at line 129 of file DXFCON1.C.

long TVpointZ = (-UNIT)

Definition at line 129 of file DXFCON1.C.

long TVsizeX = UNIT2

Definition at line 130 of file DXFCON1.C.

long TVsizeY = UNIT2

Definition at line 130 of file DXFCON1.C.

long TVsizeZ = UNIT2

Definition at line 130 of file DXFCON1.C.

short ShadowFlag = NO

Definition at line 131 of file DXFCON1.C.

Definition at line 132 of file DXFCON1.C.

Definition at line 132 of file DXFCON1.C.

Definition at line 132 of file DXFCON1.C.

long TextureType[64]

Definition at line 133 of file DXFCON1.C.

long TextureAnimFF[64]

Definition at line 133 of file DXFCON1.C.

long TextureAnimDL[64]

Definition at line 133 of file DXFCON1.C.

long TextureAnimLF[64]

Definition at line 133 of file DXFCON1.C.

long TextureMap[64]

Definition at line 133 of file DXFCON1.C.

long TextureAngle[64]

Definition at line 133 of file DXFCON1.C.

char* TextureList[64]

Definition at line 135 of file DXFCON1.C.

long Brilliance = 0

Definition at line 136 of file DXFCON1.C.

long Reflectivity = 0

Definition at line 136 of file DXFCON1.C.

long Transparency = 0

Definition at line 136 of file DXFCON1.C.

Definition at line 137 of file DXFCON1.C.

Referenced by ActionRotate(), AddSinglePrimitive(), AnglerOn(), AnimatorStartup(), AppendPathPoint(), AutoFacetCurveWithHoles(), BuildATMfontString(), BuildTTFfontString(), ClearWireFrame(), CreateAlign(), CreateCostume(), CreateDirector(), CreateImageMap(), CreateImageProcess(), CreateIPointPath(), CreateNode(), CreatePathPoint(), CreatePosition(), CreateSize(), CreateSky(), DeleteAlign(), DeleteCostume(), DeleteDirector(), DeleteImageMap(), DeleteImageProcess(), DeleteMaterial(), DeleteNode(), DeletePathPoint(), DeletePosition(), DeleteRangeOfFrames(), DeleteSize(), DeleteSky(), DesignStartup(), DuplicateSelectedNurbs(), EditCameraSize(), EditDirectorDialog(), EditGroundDialog(), EditLightDialog(), EditPathMovement(), EditPathOn(), EditSelectedNurbsSurface(), EditSkyDialog(), EraseAll(), ExecuteBezierModeler(), ExecuteExternalAction(), ExecuteExternalModeler(), ExecuteSelect(), InsertFrames(), JoinTwoCurves(), LoadAnimationFile(), LoadAnimObject(), LoadHeightField(), LoadInternalAction(), LoadObject(), MakeAutoWireFrame(), MakeNewNurbsSurface(), MakeWireFrame(), MapFacesByImageMap(), MapOntoPath(), MapVerticesByImageMap(), PaintMapOutline(), PositionBrushOnOff(), PositionMaterialOnOff(), RequestEditLightSize(), RequestEditSize(), RequestMirrorID(), Save_Undo(), SaveObject(), ScrapEverything(), SelectConnected(), SelectVertex(), SetMapCoords(), SetNumberOfFrames(), ShiftAllKeys(), ShifterOn(), ShiftSelectedPositionAllKeys(), SkeletorOn(), SplitNurbs(), StageGrabOn(), StageRotateOn(), StageSizeOn(), TraceImageOutline(), UnMakeWireFrame(), and UpdateRuler().

long NoTextures = 0

Definition at line 137 of file DXFCON1.C.

long Nskel = 0

Definition at line 137 of file DXFCON1.C.

Definition at line 137 of file DXFCON1.C.

Definition at line 137 of file DXFCON1.C.

Definition at line 137 of file DXFCON1.C.

long ruler = 1

long lrulerx = 0

long lrulery = 0

long lrulerz = 0

long grid_size = UNIT

long rulerx = 0

long rulery = 0

long rulerz = 0

long N_Bcurves = 0

Definition at line 139 of file DXFCON1.C.

skel* MainSp = NULL

Definition at line 140 of file DXFCON1.C.

skel * FirstSp = NULL

Definition at line 140 of file DXFCON1.C.

skel * TextureSk[64]

Definition at line 140 of file DXFCON1.C.


Generated on Sun Apr 27 14:20:15 2014 for OpenFX by  doxygen 1.5.6