Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CDxf Class Reference

#include <CDxf.hpp>

Collaboration diagram for CDxf:
[legend]

Public Types

enum class  EPrvUnits { Inch , Millimeter , Centimeter , Meter }
 
enum class  EEndEntityType { Polyline , Hatch , Leader }
 

Public Member Functions

 CDxf ()
 
 CDxf (std::string_view nameFileDxf)
 
 CDxf (const std::shared_ptr< iv::streams::IInputStream > &inputStream)
 
 CDxf (const CDxf *other)
 
 ~CDxf ()
 
void addLine (double x1, double y1, double z1, double x2, double y2, double z2) const
 
void addPoint (double x, double y, double z) const
 
void addPolyLine (float **vertex, uint64_t numVertex) const
 
void addRectangle (double x1, double y1, double x2, double y2) const
 
void addSolid (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4) const
 
void addText (const std::string &text, double x, double y, double z, double height, unsigned char justify) const
 
void addTriangle (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3) const
 
void draw (IGraphics *graphics) const
 
std::vector< std::string > getAllBlocksNames () const
 
std::vector< std::vector< iv::math::geometry::Point3d > > * getAllPolylines () const
 
std::vector< std::vector< iv::math::geometry::Point3d > > * getAllPolylinesInLayer (const std::string &nameLayer) const
 
IBlockExportDxfgetEntityLogicExpression (const std::string &nameBlock) const
 
std::vector< CGeoBlock * > getGeoBlocksByNames (const std::vector< std::string > &nameBlocks) const
 
std::string getNameDXF () const
 
std::vector< iv::math::geometry::Point2dgetPositionsDigitalChannel (const std::string &nameBlock) const
 
CGeoBlockgetOnlyOneGeoBlock (const std::string &nameBlock) const
 
void setVisibleLayer (const std::string &nameLayer, bool isVisible)
 
bool existLayer (const std::string &nameLayer) const
 
bool existOnlyOneGeoBlock (const std::string &nameBlock) const
 
bool hasCapture (double x, double y, double radiusCapture, double *xCaptured, double *yCaptured) const
 
bool hasCaptureInclusive (double xMin, double yMin, double xMax, double yMax, double radiusCapture) const
 
bool hasCaptureNoInclusive (double xMin, double yMin, double xMax, double yMax, double radiusCapture) const
 
bool hasCaptureByGraphic (double xMin, double yMin, double xMax, double yMax, double radiusCapture) const
 

Private Attributes

std::string m_nameDXF
 
EPrvUnits m_units
 
SBlockDxfm_modelBlock
 
std::vector< SLayerDxf * > * m_layers
 
std::vector< SBlockDxf * > * m_blocks
 

Member Enumeration Documentation

◆ EEndEntityType

enum class CDxf::EEndEntityType
strong
Enumerator
Polyline 
Hatch 
Leader 

◆ EPrvUnits

enum class CDxf::EPrvUnits
strong
Enumerator
Inch 
Millimeter 
Centimeter 
Meter 

Constructor & Destructor Documentation

◆ CDxf() [1/4]

CDxf::CDxf ( )

◆ CDxf() [2/4]

CDxf::CDxf ( std::string_view nameFileDxf)
explicit

◆ CDxf() [3/4]

CDxf::CDxf ( const std::shared_ptr< iv::streams::IInputStream > & inputStream)
explicit

◆ CDxf() [4/4]

CDxf::CDxf ( const CDxf * other)
explicit

◆ ~CDxf()

CDxf::~CDxf ( )

Member Function Documentation

◆ addLine()

void CDxf::addLine ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2 ) const

◆ addPoint()

void CDxf::addPoint ( double x,
double y,
double z ) const

◆ addPolyLine()

void CDxf::addPolyLine ( float ** vertex,
uint64_t numVertex ) const

◆ addRectangle()

void CDxf::addRectangle ( double x1,
double y1,
double x2,
double y2 ) const

◆ addSolid()

void CDxf::addSolid ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double x3,
double y3,
double z3,
double x4,
double y4,
double z4 ) const

◆ addText()

void CDxf::addText ( const std::string & text,
double x,
double y,
double z,
double height,
unsigned char justify ) const

◆ addTriangle()

void CDxf::addTriangle ( double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double x3,
double y3,
double z3 ) const

◆ draw()

void CDxf::draw ( IGraphics * graphics) const

◆ existLayer()

bool CDxf::existLayer ( const std::string & nameLayer) const
nodiscard

◆ existOnlyOneGeoBlock()

bool CDxf::existOnlyOneGeoBlock ( const std::string & nameBlock) const
nodiscard

◆ getAllBlocksNames()

std::vector< std::string > CDxf::getAllBlocksNames ( ) const
nodiscard

◆ getAllPolylines()

std::vector< std::vector< iv::math::geometry::Point3d > > * CDxf::getAllPolylines ( ) const
nodiscard

◆ getAllPolylinesInLayer()

std::vector< std::vector< iv::math::geometry::Point3d > > * CDxf::getAllPolylinesInLayer ( const std::string & nameLayer) const
nodiscard

◆ getEntityLogicExpression()

IBlockExportDxf * CDxf::getEntityLogicExpression ( const std::string & nameBlock) const
nodiscard

◆ getGeoBlocksByNames()

std::vector< CGeoBlock * > CDxf::getGeoBlocksByNames ( const std::vector< std::string > & nameBlocks) const
nodiscard

◆ getNameDXF()

std::string CDxf::getNameDXF ( ) const
nodiscard

◆ getOnlyOneGeoBlock()

CGeoBlock * CDxf::getOnlyOneGeoBlock ( const std::string & nameBlock) const
nodiscard

◆ getPositionsDigitalChannel()

std::vector< iv::math::geometry::Point2d > CDxf::getPositionsDigitalChannel ( const std::string & nameBlock) const
nodiscard

◆ hasCapture()

bool CDxf::hasCapture ( double x,
double y,
double radiusCapture,
double * xCaptured,
double * yCaptured ) const

◆ hasCaptureByGraphic()

bool CDxf::hasCaptureByGraphic ( double xMin,
double yMin,
double xMax,
double yMax,
double radiusCapture ) const
nodiscard

◆ hasCaptureInclusive()

bool CDxf::hasCaptureInclusive ( double xMin,
double yMin,
double xMax,
double yMax,
double radiusCapture ) const
nodiscard

◆ hasCaptureNoInclusive()

bool CDxf::hasCaptureNoInclusive ( double xMin,
double yMin,
double xMax,
double yMax,
double radiusCapture ) const
nodiscard

◆ setVisibleLayer()

void CDxf::setVisibleLayer ( const std::string & nameLayer,
bool isVisible )

Member Data Documentation

◆ m_blocks

std::vector<SBlockDxf *>* CDxf::m_blocks
private

◆ m_layers

std::vector<SLayerDxf *>* CDxf::m_layers
private

◆ m_modelBlock

SBlockDxf* CDxf::m_modelBlock
private

◆ m_nameDXF

std::string CDxf::m_nameDXF
private

◆ m_units

EPrvUnits CDxf::m_units
private

The documentation for this class was generated from the following files: