C3D Toolkit  Kernel - 118072, Vision - 2.18.1.1852
gce_types.h File Reference

Data types of the two-dimensional geometric solver. More...

#include <memory.h>
#include <system_types.h>
#include <math_define.h>
#include <mb_variables.h>
#include <mb_enum.h>
#include <vector>
#include <cstring>

Classes

struct  GCE_vec2d
 Vector coordinates. More...
 
struct  GCE_vecNd
 Coordinates of n-dimensional vector. More...
 
struct  GCE_point
 Coordinates of a point on plane. More...
 
struct  GCE_point_dof
 Degree of freedom of a point. More...
 
struct  GCE_line
 Coordinate of a line on the plane. More...
 
struct  GCE_axis
 Axis coordinates. More...
 
struct  GCE_circle
 Coordinates of a circle. More...
 
struct  GCE_ellipse
 Coordinates of an ellipse. More...
 
struct  GCE_spline
 Coordinates and characteristics of a spline. More...
 
struct  GCE_dim_pars
 Parameters of dimensional constraint. More...
 
struct  GCE_adim_pars
 Parameters of angular dimensional constraint. More...
 
struct  GCE_ldim_pars
 Parameters of distance constraint. More...
 
struct  GCE_ldim_config
 Parameters of the linear dimension. More...
 
struct  GCE_interval
 Parameters of interval constraint. More...
 
struct  GCE_dragging_point
 Control point of the dragging. More...
 
struct  GCE_diagnostic_pars
 Diagnostic characteristics of constraint system. More...
 
struct  GCT_diagnostic_pars
 Diagnostic characteristics of constraint system. More...
 
struct  GCE_extra_param
 Additional #GCE_log_func callback data interpreted on the application side. More...
 

Typedefs

typedef void * GCE_system
 Geometric constraints system. More...
 
typedef size_t geom_item
 Descriptor of geometrical object registered in the solver context.
 
typedef size_t constraint_item
 Descriptor of a constraint registered in the solver.
 
typedef size_t var_item
 Descriptor of a variable registered in the solver.
 
typedef geom_item pattern_item
 Descriptor of pattern registered in the solver context.
 
typedef ptrdiff_t GCE_dof_type
 Type of integer-valued degree of freedom.
 
typedef subgeom_type point_type
 Type of the requested point (used as subset of values subgeom_type).
 
using query_geom_type = subgeom_type
 

Enumerations

enum  geom_type {
  GCE_ANY_GEOM , GCE_POINT , GCE_AXIS , GCE_LINE ,
  GCE_CIRCLE , GCE_ELLIPSE , GCE_SPLINE , GCE_PARAMETRIC_CURVE ,
  GCE_BOUNDED_CURVE , GCE_OFFSET_CURVE , GCE_LINE_SEGMENT , GCE_SET ,
  GCE_INSTANCE , GCE_PATTERN
}
 Dictionary of а geometric data types. More...
 
enum  subgeom_type {
  GCE_FIRST_PTYPE = 0 , GCE_IMPROPER_POINT = 0 , GCE_FIRST_END , GCE_SECOND_END ,
  GCE_CENTRE , GCE_PROPER_POINT , GCE_Q1 , GCE_Q2 ,
  GCE_Q3 , GCE_Q4 , GCE_LOCATION_POINT , GCE_ORIGIN = GCE_LOCATION_POINT ,
  GCE_LAST_PTYPE , GCE_DIRECTION , GCE_L_NORMAL , GCE_ORIENTATION ,
  GCE_BASE_CURVE , GCE_BASE_PATTERN , GCE_BASE_GEOM , GCE_FIRST_SUB_PATTERN ,
  GCE_SECOND_SUB_PATTERN
}
 IDs denoting control points and other elements that form a record (tuple) of a geometric object. ~. More...
 
enum  coord_name {
}
 Enumeration of geom's coordinates. More...
 
enum  constraint_type {
  GCE_FIX_GEOM , GCE_HORIZONTAL , GCE_VERTICAL , GCE_ANGLE_OX ,
  GCE_COINCIDENT , GCE_EQUAL_CURVATURE , GCE_EQUAL_LENGTH , GCE_EQUAL_RADIUS ,
  GCE_EQUAL_OFFSET , GCE_PARALLEL , GCE_PERPENDICULAR , GCE_TANGENT ,
  GCE_COLINEAR , GCE_ALIGN_2P , GCE_BISECTOR , GCE_MIDDLE_POINT ,
  GCE_COLINEAR_3P , GCE_SYMMETRIC , GCE_PERCENT_POINT , GCE_EQUATION ,
  GCE_PATTERNED , GCE_DISTANCE , GCE_DIAMETER , GCE_LENGTH ,
  GCE_LINEAR_DIM , GCE_RADIUS_DIM , GCE_OFFSET_DIM , GCE_ANGLE ,
  GCE_INTERVAL , GCE_IDENTITY , GCE_CONSTRAINTS_COUNT , GCE_UNKNOWN = GCE_CONSTRAINTS_COUNT ,
  GCE_UNKNOWN_CON = GCE_UNKNOWN
}
 Identifier of 2D constraint type. More...
 
enum  GCE_result {
  GCE_RESULT_None , GCE_RESULT_Ok , GCE_RESULT_Satisfied = GCE_RESULT_Ok , GCE_RESULT_Not_Satisfied ,
  GCE_RESULT_Overconstrained , GCE_RESULT_InvalidGeometry , GCE_RESULT_MovingOfFixedGeom , GCE_RESULT_CircleCantStretched ,
  GCE_RESULT_SingularMatrix , GCE_RESULT_DegenerateScalingFactor , GCE_RESULT_InvalidDimensionTransform , GCE_RESULT_IsNotDrivingDimension ,
  GCE_RESULT_UnsupportedConstraint , GCE_RESULT_AnisotropicScaling , GCE_RESULT_OverconstrainedInstance , GCE_RESULT_HelpGeomRequired ,
  GCE_RESULT_SystemError , GCE_RESULT_NullSystem , GCE_RESULT_Unregistered , GCE_RESULT_Aborted
}
 Diagnostic codes of the geometric solver functions execution. More...
 
enum  GCE_c_status { }
 Status of a geometric constraint. More...
 
enum  GCE_s_state { GCE_STATE_Unknown = 0 , GCE_STATE_WellConstrained , GCE_STATE_UnderConstrained , GCE_STATE_UnresolvedRedundancy }
 Difinition State of geometric constraints system. More...
 
enum  GCE_bisec_variant { GCE_BISEC_CLOSEST = 0 , GCE_BISEC_MINUS = 1 , GCE_BISEC_PLUS = 2 }
 Variant of a bisector for two lines. More...
 
enum  GCE_alignment {
  GCE_NO_ALIGNMENT = 0 , GCE_COORIENTED , GCE_OPPOSITE , GCE_CLOSEST ,
  GCE_AUTO_ALIGNMENT
}
 Variants of alignment. More...
 
enum  GCE_log_type { GCE_LOG_JournalLine , GCE_LOG_Message , GCE_LOG_Error }
 

Functions

bool OK (GCE_result resCode)
 Return true, if the result code is successful.
 

Variables

const size_t GCE_NULL = SYS_MAX_T
 Undefined value of descriptor or an empty object.
 
const geom_item GCE_NULL_G = GCE_NULL
 Undefined value of geom_item type.
 
const var_item GCE_NULL_V = GCE_NULL
 Undefined value of var_item type.
 
const constraint_item GCE_NULL_C = GCE_NULL
 Undefined value of constraint_item type.
 
const pattern_item GCE_NULL_P = GCE_NULL
 Undefined value of pattern_item type.
 
const double GCE_UNDEFINED_DBL = UNDEFINED_DBL
 An undefined value of double.
 

Detailed Description

Data types of the two-dimensional geometric solver.

This file contains set of data types necessary for interaction of the geometrical solver with user application.

Typedef Documentation

◆ query_geom_type

Constraints2D_API