Files
EgtExchange/BtlGeomCoStru.h
T
Dario Sassi 0ea6d12b92 EgtExchange 1.6k3 :
- in import BTL aggiunta gestione trim del pezzo con features di lavorazione
- in import BTL aggiunto flag per trim pezzo speciale per pareti.
2015-11-09 10:29:10 +00:00

74 lines
3.0 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : BtlGeomCoStru.h Data : 25.08.15 Versione : 1.6h5
// Contenuto : Costanti e strutture per la classe BtlGeom.
//
//
//
// Modifiche : 25.08.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "/EgtDev/Include/EGkPoint3d.h"
#include <deque>
//----------------------------------------------------------------------------
// nome gruppo di sistema per riferimenti di definizione assemblaggio
static const std::string ASSEMBLY_GROUP_NAME = "AsseBase" ;
// nomi layer standard dei pezzi
static const std::string AUX_LAYER_NAME = "Part" ;
static const std::string BOX_LAYER_NAME = "Box" ;
static const std::string OUTLINE_LAYER_NAME = "Outline" ;
static const std::string PROCESSINGS_LAYER_NAME = "Processings" ;
// nomi entità standard dei pezzi
static const std::string AUX_PART_NAME = "Name" ;
static const std::string BOX_BOX_NAME = "Box" ;
static const std::string OL_OUTSTM_NAME = "Out" ;
static const std::string OL_APERTURESTM_NAME = "Ape" ;
static const std::string OL_TOPREGION_NAME = "Top" ;
static const std::string OL_BOTTOMREGION_NAME = "Bot" ;
// chiavi di informazioni associate ai pezzi
static const std::string IKEY_PROD_NBR = "PDN" ;
static const std::string IKEY_NAME = "NAM" ;
static const std::string IKEY_COUNT = "CNT" ;
static const std::string IKEY_LENGTH = "L" ;
static const std::string IKEY_WIDTH = "W" ;
static const std::string IKEY_HEIGHT = "H" ;
// chiavi di informazioni associate alle geometrie di outline
static const std::string IKEY_OTL_SIDE = "SIDE" ;
// chiavi di informazioni associate alle geometrie di lavorazione
static const std::string IKEY_GROUP = "GRP" ;
static const std::string IKEY_PROC = "PRC" ;
static const std::string IKEY_SIDE = "SIDE" ;
//----------------------------------------------------------------------------
enum BtlSide { BTL_SIDE_NONE = 0,
BTL_SIDE_FRONT = 1,
BTL_SIDE_BOTTOM = 2,
BTL_SIDE_BACK = 3,
BTL_SIDE_TOP = 4,
BTL_SIDE_RIGHT = 5,
BTL_SIDE_LEFT = 6} ;
static const int SIDE_NBR = 6 ;
//----------------------------------------------------------------------------
struct FreeContourEnt {
int nFlag ;
Point3d ptP ;
Point3d ptM ;
double dAng ;
int nId ;
int nOtherId ;
enum FLAG { START = 0, LINE = 1, ARC = 2, START_CNT0 = 100, START_CNT1 = 101} ;
FreeContourEnt( void)
: nFlag( START), ptP(), ptM(), dAng( 0), nId( 0), nOtherId( 0) {}
FreeContourEnt( int nF, const Point3d& ptPP, const Point3d& ptMM, double dA, int nI, int nO)
: nFlag( nF), ptP( ptPP), ptM( ptMM), dAng( dA), nId( nI), nOtherId( nO) {}
} ;
typedef std::deque<FreeContourEnt> FCEDEQUE ;