MSTRUCT.H File Reference

Go to the source code of this file.

Data Structures

struct  Designer_KEY_POINTS_tag
 Key points used in the represent the Object origin etc. More...
struct  Designer_BEZIER_CURVE_tag
 Provides properties of Bezier curves objects in the Designer. More...
struct  Designer_PRIMITIVE_tag
 Describes the Designer primites used during the building of primitive shapes with the primites tool. More...
struct  Designer_PREFERENCES_tag
 Describes the Designer module's preferences for screen layout etc. More...

Defines

#define min(a, b)   ( ((a) < (b)) ? (a) : (b) )
#define max(a, b)   ( ((a) > (b)) ? (a) : (b) )
#define _LINE_DRAW   1
#define X__SetPixel(a, b, c, d)   SetPixelV(a,b,c,d)
#define VECCOPY(a, b)   { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; }
 Local vector math operations in designer.
#define VECSUB(a, b, c)   { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}
#define VECSUM(a, b, c)   { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}
#define VECSCALE(a, b, c)   { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}
#define DOT(a, b)   ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )
#define DOT2(a, b)   ( (a[0]*b[0]) + (a[1]*b[1]) )
#define CROSS(v1, v2, r)
#define DIS2(a)
#define ALL_PANNELS   0x0FFF
#define MAIN_WINDOW   0x0001
#define SELECT_PANNEL   0x0002
#define COMMAND_PANNEL   0x0004
#define ZOOM_PANNEL   0x0008
#define TOOL_PANNEL   0x0010
#define ACTION_PANNEL   0x0020
#define COORD_PANNEL   0x0040
#define LOCK_PANNEL   0x0080
#define PLANE   0
#define CYLINDER   1
#define PLANE_MOZIAC   2
#define CYLINDER_MOZIAC   3
#define MAP_BY_VERTEX   4
#define MAP_SPHERICAL   5
#define OPAQ   0
#define CLEAR   1
#define GLOSS   0
#define MATT   1
#define TRIVIEW   0
#define ONEVIEW   1
#define TRITOP   0
#define TRIFRONT   1
#define TRIRIGHT   2
#define POINT2VECTOR(p, v)
#define VECTOR2POINT(v, p)
#define FARAWAY   1.0e30
#define UNIT   32768L
#define UNIT2   65536L
#define MINUNIT   2048L
#define MAXUNIT   33554432L
#define PI   3.1415926
#define PI2   PI/2
#define NMAPSMAX   512
#define NMATERIALMAX   512
#define DESELECTED   0
#define SELECTED   1
#define HIDDEN   2
#define INEDITOR   3
#define STATICBRUSH   0
#define ANIMBRUSH   1
#define BUMPBRUSH   2
#define REFLBRUSH   3
#define PSETBRUSH   4
#define ATTRACT   0
#define REPEL   1
#define NO   0
#define YES   1
#define FAIL   -1
#define OK   1
#define MAX_DIR   255
#define MAX_FILE   255
#define ZOOMOUT   0
#define ZOOMIN   1
#define PANUP   2
#define PANDOWN   3
#define PANLEFT   4
#define PANRIGHT   5
#define PANFORWARD   6
#define PANBACK   7
#define RECENTRE   8
#define CENTREWORLD   9

Typedefs

typedef struct
Designer_KEY_POINTS_tag 
key_points
 Key points used in the represent the Object origin etc.
typedef struct
Designer_BEZIER_CURVE_tag 
bezier_curve
 Provides properties of Bezier curves objects in the Designer.
typedef struct
Designer_PRIMITIVE_tag 
PRIMITIVE
 Describes the Designer primites used during the building of primitive shapes with the primites tool.
typedef struct
Designer_PREFERENCES_tag 
PREFERENCES
 Describes the Designer module's preferences for screen layout etc.


Define Documentation

#define min ( a,
 )     ( ((a) < (b)) ? (a) : (b) )

Definition at line 9 of file MSTRUCT.H.

#define max ( a,
 )     ( ((a) > (b)) ? (a) : (b) )

Definition at line 12 of file MSTRUCT.H.

#define _LINE_DRAW   1

Definition at line 16 of file MSTRUCT.H.

#define X__SetPixel ( a,
b,
c,
 )     SetPixelV(a,b,c,d)

Definition at line 17 of file MSTRUCT.H.

#define VECSUB ( a,
b,
 )     { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}

Definition at line 27 of file MSTRUCT.H.

#define VECSUM ( a,
b,
 )     { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}

Definition at line 28 of file MSTRUCT.H.

#define VECSCALE ( a,
b,
 )     { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}

Definition at line 29 of file MSTRUCT.H.

#define DOT ( a,
 )     ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )

Definition at line 30 of file MSTRUCT.H.

#define DOT2 ( a,
 )     ( (a[0]*b[0]) + (a[1]*b[1]) )

Definition at line 31 of file MSTRUCT.H.

Referenced by IdentifyIndicatedFace().

#define CROSS ( v1,
v2,
 ) 

Value:

{ \
                          r[0] = (v1[1]*v2[2]) - (v2[1]*v1[2]);  \
                          r[1] = (v1[2]*v2[0]) - (v1[0]*v2[2]);  \
                          r[2] = (v1[0]*v2[1]) - (v2[0]*v1[1]);  \
                         }

Definition at line 32 of file MSTRUCT.H.

#define DIS2 (  ) 

Value:

((double)(a[0]-NpointerX)*(double)(a[0]-NpointerX)+  \
                 (double)(a[1]-NpointerY)*(double)(a[1]-NpointerY)+  \
                 (double)(a[2]-NpointerZ)*(double)(a[2]-NpointerZ))

Definition at line 38 of file MSTRUCT.H.

Referenced by GrabBrushPoint(), GrabMaterialAxisPoint(), and Replace_Faces().

#define ALL_PANNELS   0x0FFF

Definition at line 105 of file MSTRUCT.H.

#define MAIN_WINDOW   0x0001

Definition at line 106 of file MSTRUCT.H.

#define SELECT_PANNEL   0x0002

Definition at line 107 of file MSTRUCT.H.

#define COMMAND_PANNEL   0x0004

Definition at line 108 of file MSTRUCT.H.

#define ZOOM_PANNEL   0x0008

Definition at line 109 of file MSTRUCT.H.

#define TOOL_PANNEL   0x0010

Definition at line 110 of file MSTRUCT.H.

#define ACTION_PANNEL   0x0020

#define COORD_PANNEL   0x0040

Definition at line 112 of file MSTRUCT.H.

#define LOCK_PANNEL   0x0080

Definition at line 113 of file MSTRUCT.H.

Referenced by EditImageMap(), and EditMaterial().

#define PLANE   0

Definition at line 115 of file MSTRUCT.H.

#define CYLINDER   1

Definition at line 116 of file MSTRUCT.H.

#define PLANE_MOZIAC   2

Definition at line 117 of file MSTRUCT.H.

#define CYLINDER_MOZIAC   3

Definition at line 118 of file MSTRUCT.H.

#define MAP_BY_VERTEX   4

Definition at line 119 of file MSTRUCT.H.

#define MAP_SPHERICAL   5

Definition at line 120 of file MSTRUCT.H.

#define OPAQ   0

Definition at line 121 of file MSTRUCT.H.

#define CLEAR   1

Definition at line 122 of file MSTRUCT.H.

#define GLOSS   0

Definition at line 123 of file MSTRUCT.H.

#define MATT   1

Definition at line 124 of file MSTRUCT.H.

#define TRIVIEW   0

Definition at line 126 of file MSTRUCT.H.

#define ONEVIEW   1

Definition at line 127 of file MSTRUCT.H.

#define TRITOP   0

Definition at line 128 of file MSTRUCT.H.

#define TRIFRONT   1

Definition at line 129 of file MSTRUCT.H.

#define TRIRIGHT   2

Definition at line 130 of file MSTRUCT.H.

#define POINT2VECTOR ( p,
 ) 

Value:

v[0]=(double)p[0]; v[1]=(double)p[1]; \
                          v[2]=(double)p[2];

Definition at line 133 of file MSTRUCT.H.

#define VECTOR2POINT ( v,
 ) 

Value:

p[0]=(long)v[0]; p[1]=(long)v[1]; \
                          p[2]=(long)v[2];

Definition at line 135 of file MSTRUCT.H.

#define FARAWAY   1.0e30

#define UNIT   32768L

Definition at line 140 of file MSTRUCT.H.

#define UNIT2   65536L

Definition at line 141 of file MSTRUCT.H.

#define MINUNIT   2048L

Definition at line 142 of file MSTRUCT.H.

#define MAXUNIT   33554432L

Definition at line 145 of file MSTRUCT.H.

#define PI   3.1415926

Definition at line 147 of file MSTRUCT.H.

#define PI2   PI/2

Definition at line 149 of file MSTRUCT.H.

#define NMAPSMAX   512

Definition at line 152 of file MSTRUCT.H.

Referenced by CreateImageMap().

#define NMATERIALMAX   512

Definition at line 153 of file MSTRUCT.H.

Referenced by CreateMaterial().

#define DESELECTED   0

Definition at line 156 of file MSTRUCT.H.

#define SELECTED   1

Definition at line 157 of file MSTRUCT.H.

#define HIDDEN   2

Definition at line 158 of file MSTRUCT.H.

#define INEDITOR   3

Definition at line 159 of file MSTRUCT.H.

#define STATICBRUSH   0

Definition at line 160 of file MSTRUCT.H.

#define ANIMBRUSH   1

Definition at line 161 of file MSTRUCT.H.

#define BUMPBRUSH   2

Definition at line 162 of file MSTRUCT.H.

#define REFLBRUSH   3

Definition at line 163 of file MSTRUCT.H.

#define PSETBRUSH   4

Definition at line 164 of file MSTRUCT.H.

#define ATTRACT   0

Definition at line 165 of file MSTRUCT.H.

#define REPEL   1

Definition at line 166 of file MSTRUCT.H.

#define NO   0

Definition at line 169 of file MSTRUCT.H.

#define YES   1

Definition at line 170 of file MSTRUCT.H.

#define FAIL   -1

Definition at line 171 of file MSTRUCT.H.

#define OK   1

Definition at line 172 of file MSTRUCT.H.

#define MAX_DIR   255

Definition at line 173 of file MSTRUCT.H.

#define MAX_FILE   255

Definition at line 174 of file MSTRUCT.H.

#define ZOOMOUT   0

Definition at line 175 of file MSTRUCT.H.

#define ZOOMIN   1

Definition at line 176 of file MSTRUCT.H.

#define PANUP   2

Definition at line 177 of file MSTRUCT.H.

#define PANDOWN   3

Definition at line 178 of file MSTRUCT.H.

#define PANLEFT   4

Definition at line 179 of file MSTRUCT.H.

#define PANRIGHT   5

Definition at line 180 of file MSTRUCT.H.

#define PANFORWARD   6

Definition at line 181 of file MSTRUCT.H.

#define PANBACK   7

Definition at line 182 of file MSTRUCT.H.

#define RECENTRE   8

Definition at line 183 of file MSTRUCT.H.

#define CENTREWORLD   9

Definition at line 184 of file MSTRUCT.H.


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