cgma
CubitDefines.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <sys/types.h>
#include <assert.h>
#include "CGMUtilConfigure.h"
#include <float.h>

Go to the source code of this file.

Defines

#define CUBIT_TRUE   1;
#define CUBIT_FALSE   0;
#define CUBIT_PI   3.1415926535897932384626
#define DEGREES_TO_RADIANS(angle)   ( (angle) / 180.0 * CUBIT_PI )
#define RADIANS_TO_DEGREES(angle)   ( 180.0 * (angle) / CUBIT_PI )
#define CUBIT_INT_MAX   INT_MAX
#define CUBIT_INT_MIN   INT_MIN
#define CUBIT_DBL_MIN   1.0E-30
#define CUBIT_DBL_MAX   1.0E30
#define CUBIT_MIN(a, b)   ( (a) < (b) ? (a) : (b) )
#define CUBIT_MAX(a, b)   ( (a) > (b) ? (a) : (b) )
#define CUBIT_MIN_4(a, b, c, d)
#define CUBIT_MAX_4(a, b, c, d)

Typedefs

typedef unsigned int Bit
typedef unsigned short IttyBit
typedef unsigned char cBit
typedef char CubitBoolean

Enumerations

enum  CubitStatus { CUBIT_FAILURE = 0, CUBIT_SUCCESS = 1 }
enum  CubitSense { CUBIT_UNKNOWN = -1, CUBIT_FORWARD = 0, CUBIT_REVERSED = 1 }
enum  CubitPointContainment {
  CUBIT_PNT_UNKNOWN = -1, CUBIT_PNT_OUTSIDE = 0, CUBIT_PNT_OFF = 0, CUBIT_PNT_INSIDE = 1,
  CUBIT_PNT_ON = 1, CUBIT_PNT_BOUNDARY = 2
}
enum  FirmnessType { LIMP, SOFT, FIRM, HARD }
enum  SizeIntervalType { NOT_SET = LIMP, CALCULATED = SOFT, USER_SET = HARD }
enum  CubitEntityRelation { CUBIT_RELATION_NONE = -1, CUBIT_RELATION_PARENT = 0, CUBIT_RELATION_CHILD = 1 }
enum  CubitAssocDataType {
  CUBIT_ASSOC_NULL = 0, CUBIT_ASSOC_GEOM_REFENTITY = 1, CUBIT_ASSOC_BC_BLOCK = 2, CUBIT_ASSOC_BC_NSET = 3,
  CUBIT_ASSOC_BC_SSET = 4
}
enum  ObserverType { MODEL_OBSERVER, DRAWING_OBSERVER, GUI_OBSERVER }
enum  CubitFacetboolOp { CUBIT_FB_UNION, CUBIT_FB_INTERSECTION, CUBIT_FB_SUBTRACTION }

Variables

static int const INVALID_ENTITY_ID = -1

Define Documentation

#define CUBIT_DBL_MAX   1.0E30

Definition at line 211 of file CubitDefines.h.

#define CUBIT_DBL_MIN   1.0E-30

Definition at line 197 of file CubitDefines.h.

#define CUBIT_FALSE   0;

Definition at line 73 of file CubitDefines.h.

#define CUBIT_INT_MAX   INT_MAX

Definition at line 164 of file CubitDefines.h.

#define CUBIT_INT_MIN   INT_MIN

Definition at line 180 of file CubitDefines.h.

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

Definition at line 216 of file CubitDefines.h.

#define CUBIT_MAX_4 (   a,
  b,
  c,
 
)
Value:
(( (a) > (b) ? (a) : (b) ) > \
                                          ( (c) > (d) ? (c) : (d) ) ? \
                                          ( (a) > (b) ? (a) : (b) ) : \
                                          ( (c) > (d) ? (c) : (d) ))

Definition at line 223 of file CubitDefines.h.

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

Definition at line 215 of file CubitDefines.h.

#define CUBIT_MIN_4 (   a,
  b,
  c,
 
)
Value:
(( (a) < (b) ? (a) : (b) ) < \
                                          ( (c) < (d) ? (c) : (d) ) ? \
                                          ( (a) < (b) ? (a) : (b) ) : \
                                          ( (c) < (d) ? (c) : (d) ))

Definition at line 218 of file CubitDefines.h.

#define CUBIT_PI   3.1415926535897932384626

Definition at line 150 of file CubitDefines.h.

#define CUBIT_TRUE   1;

Definition at line 72 of file CubitDefines.h.

#define DEGREES_TO_RADIANS (   angle)    ( (angle) / 180.0 * CUBIT_PI )

Definition at line 153 of file CubitDefines.h.

#define RADIANS_TO_DEGREES (   angle)    ( 180.0 * (angle) / CUBIT_PI )

Definition at line 154 of file CubitDefines.h.


Typedef Documentation

typedef unsigned int Bit

Definition at line 59 of file CubitDefines.h.

typedef unsigned char cBit

Definition at line 61 of file CubitDefines.h.

typedef char CubitBoolean

Definition at line 71 of file CubitDefines.h.

typedef unsigned short IttyBit

Definition at line 60 of file CubitDefines.h.


Enumeration Type Documentation

Enumerator:
CUBIT_ASSOC_NULL 
CUBIT_ASSOC_GEOM_REFENTITY 
CUBIT_ASSOC_BC_BLOCK 
CUBIT_ASSOC_BC_NSET 
CUBIT_ASSOC_BC_SSET 

Definition at line 110 of file CubitDefines.h.

Enumerator:
CUBIT_RELATION_NONE 
CUBIT_RELATION_PARENT 
CUBIT_RELATION_CHILD 

Definition at line 101 of file CubitDefines.h.

Enumerator:
CUBIT_FB_UNION 
CUBIT_FB_INTERSECTION 
CUBIT_FB_SUBTRACTION 

Definition at line 131 of file CubitDefines.h.

Enumerator:
CUBIT_PNT_UNKNOWN 
CUBIT_PNT_OUTSIDE 
CUBIT_PNT_OFF 
CUBIT_PNT_INSIDE 
CUBIT_PNT_ON 
CUBIT_PNT_BOUNDARY 

Definition at line 86 of file CubitDefines.h.

enum CubitSense
Enumerator:
CUBIT_UNKNOWN 
CUBIT_FORWARD 
CUBIT_REVERSED 

Definition at line 80 of file CubitDefines.h.

Enumerator:
CUBIT_FAILURE 
CUBIT_SUCCESS 

Definition at line 77 of file CubitDefines.h.

Enumerator:
LIMP 
SOFT 
FIRM 
HARD 

Definition at line 90 of file CubitDefines.h.

Enumerator:
MODEL_OBSERVER 
DRAWING_OBSERVER 
GUI_OBSERVER 

Definition at line 119 of file CubitDefines.h.

                  {
    MODEL_OBSERVER,
      /* big brother observer */

    DRAWING_OBSERVER,
      /* any observer concerned with drawing */

    GUI_OBSERVER
      /* a gui-type observer */
};
Enumerator:
NOT_SET 
CALCULATED 
USER_SET 

Definition at line 97 of file CubitDefines.h.


Variable Documentation

int const INVALID_ENTITY_ID = -1 [static]

Definition at line 63 of file CubitDefines.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines