Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CDxf.cpp File Reference
#include "CDxf.hpp"
#include "containers/utils.hpp"
#include "core/CStringTools.hpp"
#include "core/file.hpp"
#include "core/memOps.hpp"
#include "math/CGeometry.hpp"
#include "math/CMath.hpp"
#include "math/CPolylines.hpp"
#include "math/CVectorOperations.hpp"
#include "math/structs.hpp"
#include "math/utils.hpp"
#include "streams/IInputStream.hpp"
#include "third_party/dxflib/dl_attributes.h"
#include "third_party/dxflib/dl_creationadapter.h"
#include "third_party/dxflib/dl_dxf.h"
#include "ui/graphics/CGraphicsRect.hpp"
#include "ui/shapes/CGeoBlock.hpp"
#include "utils/stringUtils.hpp"
#include <climits>
#include <utility>
#include <vector>
Include dependency graph for CDxf.cpp:

Classes

class  CPrvEntityExport
 
class  CPrvFilterDxf
 
struct  SPrvProcessEntitiesPolylines
 

Functions

static void prvEndEntity (SEntity **currentEntity, SBlockDxf *currentBlock)
 
static bool prvIsEntityInsert (const SEntity *entity, const std::string &nameBlock)
 
static bool prvIsLayer (const std::string &nameLayer, const SLayerDxf *layer)
 
static iv::types::color prvTransformColorARGB (const bool isRGB, const uint64_t indColor)
 
static int64_t prvTransformLineWidth (const int64_t lineWidth)
 
static int64_t prvCalculateLineWidth (const int64_t lineWidthEntity, const int64_t lineWidthBlock, const int64_t lineWidthLayer)
 
static bool prvExistsLayer (const std::vector< SLayerDxf * > *layers, const std::string &nameLayer, uint64_t *index)
 
static void prv_cleanLoop (const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > &contour, const double precision)
 
static std::shared_ptr< std::vector< iv::math::geometry::Point3d > > prv_loopWithAreaPositive (const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > &points)
 
static void prvAddPolyLineAsHatch (const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > &points, CGeoBlock *currentGeoBlock, const double precision)
 
static void prvDrawBlock (SBlockDxf *block, const uint64_t colorBlock, const int64_t lineWidthBlock, std::vector< SBlockDxf * > *blocks, const std::vector< SLayerDxf * > *layers, IGraphics *graphics)
 
static void prvProcessBlockGeoBlock (const SBlockDxf *block, CGeoBlock *currentGeoBlock, std::vector< SBlockDxf * > *blocks, SProcessEntitiesGeoBlocks *dataProcess)
 
static void prvNormalizeLoops (std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > *contours)
 
static uint64_t prvGetColorAttr (const DL_Attributes *attr, bool *isRGB)
 
static void prvGetExtrusion (const DL_Extrusion *extrusion, double *Nx, double *Ny, double *Nz, double *elevation)
 
static std::shared_ptr< std::vector< iv::math::geometry::Point2d > > prvPointsArc (const double xCenter, const double yCenter, const double radius, double startAngle, double endAngle)
 
static float * prvCreateVertex (const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > *points, uint64_t *numVertex)
 
static SEntityprvCreateArc (std::string &nameLayer, const double xCenter, const double yCenter, const double radius, const double startAngle, const double endAngle, const bool isColorRGB, const uint64_t colorIndex, const int64_t lineWidth, const double Nx, const double Ny, const double Nz, const double elevation)
 
static SEntityprvCreateCircle (const std::string &nameLayer, const double xCenter, const double yCenter, const double radius, const bool isRGB, const uint64_t colorIndex, const int64_t lineWidth, const double Nx, const double Ny, const double Nz, const double elevation)
 
static std::shared_ptr< std::vector< iv::math::geometry::Point2d > > prv_pointsEllipse (const double xCenter, const double yCenter, const double mx, const double my, const double mz, const double ratio, const double startAngle, double endAngle, const double Nz)
 
static SEntityprvCreateArcEllipse (std::string &nameLayer, const double xCenter, const double yCenter, const double mx, const double my, const double mz, const double ratio, const double startAngle, const double endAngle, const bool isRGB, const uint64_t colorIndex, const int64_t lineWidth, const double Nx, const double Ny, const double Nz, const double elevation)
 
static double prvScale (const CDxf::EPrvUnits units)
 
static double prvGetPrecisionAboutUnits (const double precision, const CDxf::EPrvUnits units)
 
static std::shared_ptr< std::vector< iv::math::geometry::Point3d > > prv_vectorPointsToArrPoint3d (const std::vector< std::vector< double > > &vertices, const double precision)
 
static void prv_addPointsToLoop (const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > &points, const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > &loop)
 
static void prvAddVertex (const double x, const double y, const double z, float *points, uint64_t *numVertex)
 
static void prv_cleanLoops (std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > *contours, const double precision)
 
static void prv_deleteLoopsEmpty (std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > *contours)
 
static void prv_closeLoops (std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > *contours, double precision)
 
static unsigned char prv_calculateJustify (const int32_t hJustification, const int32_t vJustification)
 
static uint64_t prvReadColorDXF (const std::shared_ptr< iv::streams::IInputStream > &input)
 
static std::vector< SLayerDxf * > * prvCreateLayersDefault ()
 
static bool prvExistsLayer (const std::vector< SLayerDxf * > *layers, const std::string &nameLayer)
 
static std::vector< CGeoBlock * > * prvProcessBlocksGeoBlock (const SBlockDxf *modelBlock, std::vector< SBlockDxf * > *blocks, const CDxf::EPrvUnits units)
 
static bool prvExistGeoBlock (const std::vector< CGeoBlock * > *allGeoBlocks, const std::string &nameBlock, size_t *indBlock)
 
static bool prvExistsGeoBlock (const std::vector< CGeoBlock * > *allGeoBlocks, const std::string &nameBlock, uint64_t *indBlock)
 
static SLayerDxfprvGetLayer (std::vector< SLayerDxf * > *layers, const std::string &nameLayer)
 
static iv::types::color prvCalculateColorARGB (const uint64_t colorIndex, const bool isColorARGB, const uint64_t colorBlockIndex, const SLayerDxf *layer)
 
static bool prvIsBlock (const std::string &nameBlock, const SBlockDxf *block)
 
SBlockDxfprvGetBlock (const std::vector< SBlockDxf * > *blocks, const std::string &nameBlock)
 
static void prvProcessBlockPolyline (const SBlockDxf *block, const std::vector< SBlockDxf * > *blocks, SProcessEntitiesPolylines *dataProcess, const std::string &nameLayerOpt)
 
static SEntityprvReadPoint (const std::shared_ptr< iv::streams::IInputStream > &input)
 
static SEntityprvReadLine (const std::shared_ptr< iv::streams::IInputStream > &input)
 
static SEntityprvCreatePolyline (const std::string &nameLayer, const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > *points, const bool isColorRGB, const uint64_t colorIndex, const int64_t lineWidth, const double Nx, const double Ny, const double Nz, const double elevation)
 
static SEntityprvReadPolyline (const std::shared_ptr< iv::streams::IInputStream > &input)
 
static SEntityprvReadCircle (const std::shared_ptr< iv::streams::IInputStream > &input)
 
static SEntityprvReadArc (const std::shared_ptr< iv::streams::IInputStream > &input)
 
static SEntityprvReadSolid (const std::shared_ptr< iv::streams::IInputStream > &input)
 
static std::vector< std::vector< iv::math::geometry::Point3d > > * prvProcessBlocksPolyline (const SBlockDxf *modelBlock, const std::vector< SBlockDxf * > *blocks, const CDxf::EPrvUnits units, const std::string &nameLayerOpt)
 
static bool prv_hasCapturePoint (const double x, const double y, const double radiusCapture, const SEntityPoint *entity, double *xCaptured, double *yCaptured)
 
static bool prv_hasCaptureLine (const double x, const double y, const double radiusCapture, const SEntityLine *entity, double *xCaptured, double *yCaptured)
 
static std::shared_ptr< std::vector< iv::math::geometry::Point2d > > prvGetPointsPolyline2D (const SEntityPolyline *polyline)
 
static bool prvHasCapturePolyline (const double x, const double y, const double radiusCapture, const SEntityPolyline *entity, double *xCaptured, double *yCaptured)
 
static bool prvHasCaptureSolid (const double x, const double y, const double radiusCapture, const SEntitySolid *entity, double *xCaptured, double *yCaptured)
 
static bool prvHasCaptureEntity (const double x, const double y, const double radiusCapture, const SEntity *entity, double *xCaptured, double *yCaptured)
 
static bool prvHasCapturePointInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const struct SEntityPoint *entity)
 
static bool prvHasCapturePolylineInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntityPolyline *entity)
 
static bool prvHasCaptureLineInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const struct SEntityLine *entity)
 
static bool prvHasCaptureSolidInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntitySolid *entity)
 
static bool prvHasCaptureTextInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntityText *entity)
 
static bool prvHasCaptureEntityInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntity *entity)
 
static bool prvHasCapturePointNoInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntityPoint *entity)
 
static bool prvHasCaptureLineNoInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntityLine *entity)
 
static bool prvHasCapturePolylineNoInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntityPolyline *entity)
 
static bool prvHasCaptureEntityNoInclusive (const double xMin, const double yMin, const double xMax, const double yMax, const double radiusCapture, const SEntity *entity)
 
static std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * prvTransformContours (const std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > *contours, const CStackTransformation *m_stackTransformation)
 

Variables

static constexpr double kPrvPrecision = 1e-5
 
static constexpr double kPrvPrecisionHatch = 0.001
 
static const unsigned char kPrvRedColorAutoCAD []
 
static const unsigned char kPrvGreenColorAutoCAD []
 
static const unsigned char kPrvBlueColorAutoCAD []
 
static constexpr int32_t kPrvIsFrozen = 0x03
 
static constexpr uint64_t kPrvByLayer = 256
 
static constexpr uint64_t kPrvByBlock = 0
 
static const std::string kPrvLayerDefault = "0"
 
static constexpr uint64_t kPrvColorLayerDefault = 0
 
static constexpr int64_t kPrvLineWidthByLayer = -1
 
static constexpr int64_t kPrvLineWidthByBlock = -2
 
static constexpr int64_t kPrvLineWidthDefault = -3
 

Function Documentation

◆ prv_addPointsToLoop()

static void prv_addPointsToLoop ( const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > & points,
const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > & loop )
static

◆ prv_calculateJustify()

static unsigned char prv_calculateJustify ( const int32_t hJustification,
const int32_t vJustification )
static

◆ prv_cleanLoop()

static void prv_cleanLoop ( const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > & contour,
const double precision )
static

◆ prv_cleanLoops()

static void prv_cleanLoops ( std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * contours,
const double precision )
static

◆ prv_closeLoops()

static void prv_closeLoops ( std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * contours,
double precision )
static

◆ prv_deleteLoopsEmpty()

static void prv_deleteLoopsEmpty ( std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * contours)
static

◆ prv_hasCaptureLine()

static bool prv_hasCaptureLine ( const double x,
const double y,
const double radiusCapture,
const SEntityLine * entity,
double * xCaptured,
double * yCaptured )
static

◆ prv_hasCapturePoint()

static bool prv_hasCapturePoint ( const double x,
const double y,
const double radiusCapture,
const SEntityPoint * entity,
double * xCaptured,
double * yCaptured )
static

◆ prv_loopWithAreaPositive()

static std::shared_ptr< std::vector< iv::math::geometry::Point3d > > prv_loopWithAreaPositive ( const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > & points)
static

◆ prv_pointsEllipse()

static std::shared_ptr< std::vector< iv::math::geometry::Point2d > > prv_pointsEllipse ( const double xCenter,
const double yCenter,
const double mx,
const double my,
const double mz,
const double ratio,
const double startAngle,
double endAngle,
const double Nz )
static

◆ prv_vectorPointsToArrPoint3d()

static std::shared_ptr< std::vector< iv::math::geometry::Point3d > > prv_vectorPointsToArrPoint3d ( const std::vector< std::vector< double > > & vertices,
const double precision )
static

◆ prvAddPolyLineAsHatch()

static void prvAddPolyLineAsHatch ( const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > & points,
CGeoBlock * currentGeoBlock,
const double precision )
static

◆ prvAddVertex()

static void prvAddVertex ( const double x,
const double y,
const double z,
float * points,
uint64_t * numVertex )
static

◆ prvCalculateColorARGB()

static iv::types::color prvCalculateColorARGB ( const uint64_t colorIndex,
const bool isColorARGB,
const uint64_t colorBlockIndex,
const SLayerDxf * layer )
static

◆ prvCalculateLineWidth()

static int64_t prvCalculateLineWidth ( const int64_t lineWidthEntity,
const int64_t lineWidthBlock,
const int64_t lineWidthLayer )
static

◆ prvCreateArc()

static SEntity * prvCreateArc ( std::string & nameLayer,
const double xCenter,
const double yCenter,
const double radius,
const double startAngle,
const double endAngle,
const bool isColorRGB,
const uint64_t colorIndex,
const int64_t lineWidth,
const double Nx,
const double Ny,
const double Nz,
const double elevation )
static

◆ prvCreateArcEllipse()

static SEntity * prvCreateArcEllipse ( std::string & nameLayer,
const double xCenter,
const double yCenter,
const double mx,
const double my,
const double mz,
const double ratio,
const double startAngle,
const double endAngle,
const bool isRGB,
const uint64_t colorIndex,
const int64_t lineWidth,
const double Nx,
const double Ny,
const double Nz,
const double elevation )
static

◆ prvCreateCircle()

static SEntity * prvCreateCircle ( const std::string & nameLayer,
const double xCenter,
const double yCenter,
const double radius,
const bool isRGB,
const uint64_t colorIndex,
const int64_t lineWidth,
const double Nx,
const double Ny,
const double Nz,
const double elevation )
static

◆ prvCreateLayersDefault()

static std::vector< SLayerDxf * > * prvCreateLayersDefault ( )
static

◆ prvCreatePolyline()

static SEntity * prvCreatePolyline ( const std::string & nameLayer,
const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > * points,
const bool isColorRGB,
const uint64_t colorIndex,
const int64_t lineWidth,
const double Nx,
const double Ny,
const double Nz,
const double elevation )
static

◆ prvCreateVertex()

static float * prvCreateVertex ( const std::shared_ptr< std::vector< iv::math::geometry::Point3d > > * points,
uint64_t * numVertex )
static

◆ prvDrawBlock()

static void prvDrawBlock ( SBlockDxf * block,
const uint64_t colorBlock,
const int64_t lineWidthBlock,
std::vector< SBlockDxf * > * blocks,
const std::vector< SLayerDxf * > * layers,
IGraphics * graphics )
static

◆ prvEndEntity()

static void prvEndEntity ( SEntity ** currentEntity,
SBlockDxf * currentBlock )
static

◆ prvExistGeoBlock()

static bool prvExistGeoBlock ( const std::vector< CGeoBlock * > * allGeoBlocks,
const std::string & nameBlock,
size_t * indBlock )
static

◆ prvExistsGeoBlock()

static bool prvExistsGeoBlock ( const std::vector< CGeoBlock * > * allGeoBlocks,
const std::string & nameBlock,
uint64_t * indBlock )
static

◆ prvExistsLayer() [1/2]

static bool prvExistsLayer ( const std::vector< SLayerDxf * > * layers,
const std::string & nameLayer )
static

◆ prvExistsLayer() [2/2]

static bool prvExistsLayer ( const std::vector< SLayerDxf * > * layers,
const std::string & nameLayer,
uint64_t * index )
static

◆ prvGetBlock()

SBlockDxf * prvGetBlock ( const std::vector< SBlockDxf * > * blocks,
const std::string & nameBlock )

◆ prvGetColorAttr()

static uint64_t prvGetColorAttr ( const DL_Attributes * attr,
bool * isRGB )
static

◆ prvGetExtrusion()

static void prvGetExtrusion ( const DL_Extrusion * extrusion,
double * Nx,
double * Ny,
double * Nz,
double * elevation )
static

◆ prvGetLayer()

static SLayerDxf * prvGetLayer ( std::vector< SLayerDxf * > * layers,
const std::string & nameLayer )
static

◆ prvGetPointsPolyline2D()

static std::shared_ptr< std::vector< iv::math::geometry::Point2d > > prvGetPointsPolyline2D ( const SEntityPolyline * polyline)
static

◆ prvGetPrecisionAboutUnits()

static double prvGetPrecisionAboutUnits ( const double precision,
const CDxf::EPrvUnits units )
static

◆ prvHasCaptureEntity()

static bool prvHasCaptureEntity ( const double x,
const double y,
const double radiusCapture,
const SEntity * entity,
double * xCaptured,
double * yCaptured )
static

◆ prvHasCaptureEntityInclusive()

static bool prvHasCaptureEntityInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntity * entity )
static

◆ prvHasCaptureEntityNoInclusive()

static bool prvHasCaptureEntityNoInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntity * entity )
static

◆ prvHasCaptureLineInclusive()

static bool prvHasCaptureLineInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const struct SEntityLine * entity )
static

◆ prvHasCaptureLineNoInclusive()

static bool prvHasCaptureLineNoInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntityLine * entity )
static

◆ prvHasCapturePointInclusive()

static bool prvHasCapturePointInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const struct SEntityPoint * entity )
static

◆ prvHasCapturePointNoInclusive()

static bool prvHasCapturePointNoInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntityPoint * entity )
static

◆ prvHasCapturePolyline()

static bool prvHasCapturePolyline ( const double x,
const double y,
const double radiusCapture,
const SEntityPolyline * entity,
double * xCaptured,
double * yCaptured )
static

◆ prvHasCapturePolylineInclusive()

static bool prvHasCapturePolylineInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntityPolyline * entity )
static

◆ prvHasCapturePolylineNoInclusive()

static bool prvHasCapturePolylineNoInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntityPolyline * entity )
static

◆ prvHasCaptureSolid()

static bool prvHasCaptureSolid ( const double x,
const double y,
const double radiusCapture,
const SEntitySolid * entity,
double * xCaptured,
double * yCaptured )
static

◆ prvHasCaptureSolidInclusive()

static bool prvHasCaptureSolidInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntitySolid * entity )
static

◆ prvHasCaptureTextInclusive()

static bool prvHasCaptureTextInclusive ( const double xMin,
const double yMin,
const double xMax,
const double yMax,
const double radiusCapture,
const SEntityText * entity )
static

◆ prvIsBlock()

static bool prvIsBlock ( const std::string & nameBlock,
const SBlockDxf * block )
static

◆ prvIsEntityInsert()

static bool prvIsEntityInsert ( const SEntity * entity,
const std::string & nameBlock )
static

◆ prvIsLayer()

static bool prvIsLayer ( const std::string & nameLayer,
const SLayerDxf * layer )
static

◆ prvNormalizeLoops()

static void prvNormalizeLoops ( std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * contours)
static

◆ prvPointsArc()

static std::shared_ptr< std::vector< iv::math::geometry::Point2d > > prvPointsArc ( const double xCenter,
const double yCenter,
const double radius,
double startAngle,
double endAngle )
static

◆ prvProcessBlockGeoBlock()

static void prvProcessBlockGeoBlock ( const SBlockDxf * block,
CGeoBlock * currentGeoBlock,
std::vector< SBlockDxf * > * blocks,
SProcessEntitiesGeoBlocks * dataProcess )
static

◆ prvProcessBlockPolyline()

static void prvProcessBlockPolyline ( const SBlockDxf * block,
const std::vector< SBlockDxf * > * blocks,
SProcessEntitiesPolylines * dataProcess,
const std::string & nameLayerOpt )
static

◆ prvProcessBlocksGeoBlock()

static std::vector< CGeoBlock * > * prvProcessBlocksGeoBlock ( const SBlockDxf * modelBlock,
std::vector< SBlockDxf * > * blocks,
const CDxf::EPrvUnits units )
static

◆ prvProcessBlocksPolyline()

static std::vector< std::vector< iv::math::geometry::Point3d > > * prvProcessBlocksPolyline ( const SBlockDxf * modelBlock,
const std::vector< SBlockDxf * > * blocks,
const CDxf::EPrvUnits units,
const std::string & nameLayerOpt )
static

◆ prvReadArc()

static SEntity * prvReadArc ( const std::shared_ptr< iv::streams::IInputStream > & input)
static

◆ prvReadCircle()

static SEntity * prvReadCircle ( const std::shared_ptr< iv::streams::IInputStream > & input)
static

◆ prvReadColorDXF()

static uint64_t prvReadColorDXF ( const std::shared_ptr< iv::streams::IInputStream > & input)
static

◆ prvReadLine()

static SEntity * prvReadLine ( const std::shared_ptr< iv::streams::IInputStream > & input)
static

◆ prvReadPoint()

static SEntity * prvReadPoint ( const std::shared_ptr< iv::streams::IInputStream > & input)
static

◆ prvReadPolyline()

static SEntity * prvReadPolyline ( const std::shared_ptr< iv::streams::IInputStream > & input)
static

◆ prvReadSolid()

static SEntity * prvReadSolid ( const std::shared_ptr< iv::streams::IInputStream > & input)
static

◆ prvScale()

static double prvScale ( const CDxf::EPrvUnits units)
static

◆ prvTransformColorARGB()

static iv::types::color prvTransformColorARGB ( const bool isRGB,
const uint64_t indColor )
static

◆ prvTransformContours()

static std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * prvTransformContours ( const std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > * contours,
const CStackTransformation * m_stackTransformation )
static

◆ prvTransformLineWidth()

static int64_t prvTransformLineWidth ( const int64_t lineWidth)
static

Variable Documentation

◆ kPrvBlueColorAutoCAD

const unsigned char kPrvBlueColorAutoCAD[]
static
Initial value:
= {
0, 0, 0, 0, 255, 255, 255, 0, 65, 128, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170,
0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126,
0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86,
0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69,
0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 63, 191, 46, 141, 31, 96, 25, 78, 19, 59,
127, 212, 94, 157, 64, 107, 52, 86, 39, 66, 191, 234, 141, 173, 96, 118, 78, 95, 59, 73, 255, 255,
189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189,
129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129,
104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104,
79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79,
191, 234, 141, 173, 96, 118, 78, 95, 59, 73, 127, 212, 94, 157, 64, 107, 52, 86, 39, 66, 63, 191,
46, 141, 31, 96, 25, 78, 19, 59, 51, 80, 105, 130, 190, 255}

◆ kPrvByBlock

uint64_t kPrvByBlock = 0
staticconstexpr

◆ kPrvByLayer

uint64_t kPrvByLayer = 256
staticconstexpr

◆ kPrvColorLayerDefault

uint64_t kPrvColorLayerDefault = 0
staticconstexpr

◆ kPrvGreenColorAutoCAD

const unsigned char kPrvGreenColorAutoCAD[]
static
Initial value:
= {
0, 0, 255, 255, 255, 0, 0, 0, 65, 128, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 63, 191,
46, 141, 31, 96, 25, 78, 19, 59, 127, 212, 94, 157, 64, 107, 52, 86, 39, 66, 191, 234, 141, 173,
96, 118, 78, 95, 59, 73, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129,
104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104,
79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79,
255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255,
189, 189, 129, 129, 104, 104, 79, 79, 191, 234, 141, 173, 96, 118, 78, 95, 59, 73, 127, 212, 94, 157,
64, 107, 52, 86, 39, 66, 63, 191, 46, 141, 31, 96, 25, 78, 19, 59, 0, 170, 0, 126, 0, 86,
0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69,
0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53,
0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170,
0, 126, 0, 86, 0, 69, 0, 53, 51, 80, 105, 130, 190, 255}

◆ kPrvIsFrozen

int32_t kPrvIsFrozen = 0x03
staticconstexpr

◆ kPrvLayerDefault

const std::string kPrvLayerDefault = "0"
static

◆ kPrvLineWidthByBlock

int64_t kPrvLineWidthByBlock = -2
staticconstexpr

◆ kPrvLineWidthByLayer

int64_t kPrvLineWidthByLayer = -1
staticconstexpr

◆ kPrvLineWidthDefault

int64_t kPrvLineWidthDefault = -3
staticconstexpr

◆ kPrvPrecision

double kPrvPrecision = 1e-5
staticconstexpr

◆ kPrvPrecisionHatch

double kPrvPrecisionHatch = 0.001
staticconstexpr

◆ kPrvRedColorAutoCAD

const unsigned char kPrvRedColorAutoCAD[]
static
Initial value:
= {
0, 255, 255, 0, 0, 0, 255, 0, 65, 128, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255,
189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189,
129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 191, 234, 141, 173, 96, 118,
78, 95, 59, 73, 127, 212, 94, 157, 64, 107, 52, 86, 39, 66, 63, 191, 46, 141, 31, 96, 25, 78,
19, 59, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53,
0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170,
0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126,
0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86, 0, 69, 0, 53, 0, 170, 0, 126, 0, 86,
0, 69, 0, 53, 63, 191, 46, 141, 31, 96, 25, 78, 19, 59, 127, 212, 94, 157, 64, 107, 52, 86,
39, 66, 191, 234, 141, 173, 96, 118, 78, 95, 59, 73, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79,
255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255, 189, 189, 129, 129, 104, 104, 79, 79, 255, 255,
189, 189, 129, 129, 104, 104, 79, 79, 51, 80, 105, 130, 190, 255}