CFx SDK Documentation  2022 SP0
Static Public Attributes | List of all members
OdGeContext Struct Reference

#include <GeGbl.h>

Static Public Attributes

static GE_STATIC_EXPORT OdGeTol gTol
 
static GE_STATIC_EXPORT OdGeTol gZeroTol
 
static GE_STATIC_EXPORT void(* gErrorFunc )(OdResult)
 
static GE_STATIC_EXPORT void(* gOrthoVector )(const OdGeVector3d &vect, OdGeVector3d &orthoVector)
 
static GE_STATIC_EXPORT void *(* gAllocMem )(unsigned long size)
 
static GE_STATIC_EXPORT void(* gFreeMem )(void *memBlock)
 

Detailed Description

This structure provides a namespace for tolerance values and functions ubiquitous to the OdGe library.

See also
TD_Ge

<group !!RECORDS_TD_APIRef>

Definition at line 53 of file GeGbl.h.

Member Data Documentation

◆ gAllocMem

GE_STATIC_EXPORT void*(* OdGeContext::gAllocMem) (unsigned long size)
static

A function pointer to a user-defined memory allocation function for all new operations in the OdGe library.

Remarks
Allows the OdGe library to use the same memory manager as the user application.
Parameters
size[in] Size in bytes to allocate.

Definition at line 104 of file GeGbl.h.

◆ gErrorFunc

GE_STATIC_EXPORT void(* OdGeContext::gErrorFunc) (OdResult)
static

A function pointer to a user-defined error handler.

Remarks
By default, points to a function that does nothing but return.

Definition at line 74 of file GeGbl.h.

◆ gFreeMem

GE_STATIC_EXPORT void(* OdGeContext::gFreeMem) (void *memBlock)
static

A function pointer to a user-defined memory allocation function for all delete operations in the OdGe library.

Remarks
Allows the OdGe library to use the same memory manager as the user application.
Parameters
memBlock[in] Allocated memory block to be freed.

Definition at line 115 of file GeGbl.h.

◆ gOrthoVector

GE_STATIC_EXPORT void(* OdGeContext::gOrthoVector) (const OdGeVector3d &vect, OdGeVector3d &orthoVector)
static

A function pointer to a user-defined function that returns orthoVector orthogonal to vect.

Remarks
By default, points to a function that computes orthoVector with the arbitrary axis algorithm:
        if ( (vect.x < 0.015625) && (vect.x < 0.015625)) {
          orthoVector.x = vect.z;
          orthoVector.y = 0.0;
          orthoVector.z = -vect.x;
        }
        else {
          orthoVector.x = -vect.y;
          orthoVector.y = vect.x;
          orthoVector.z = 0.0;
        }
Parameters
vect[in] Vector.
orthoVector[out] Receives the orthogonal vector.

Definition at line 95 of file GeGbl.h.

◆ gTol

GE_STATIC_EXPORT OdGeTol OdGeContext::gTol
static

Provides the global default OdGeTol tolerance object.

Remarks
gTol.equalPoint == 1e-10 gTolequalVector == 1.e-10.

Definition at line 60 of file GeGbl.h.

◆ gZeroTol

GE_STATIC_EXPORT OdGeTol OdGeContext::gZeroTol
static

Provides the global 0.0 default OdGeTol tolerance object.

Remarks
gZeroTol.equalPoint == 0.0 and gZeroTol.equalVector == 1.e-10.

Definition at line 67 of file GeGbl.h.


The documentation for this struct was generated from the following file: