ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DL_HatchEdgeData Struct Reference

#include <dl_entities.h>

Public Member Functions

 DL_HatchEdgeData ()
 
 DL_HatchEdgeData (double x1, double y1, double x2, double y2)
 
 DL_HatchEdgeData (double cx, double cy, double radius, double angle1, double angle2, bool ccw)
 
 DL_HatchEdgeData (double cx, double cy, double mx, double my, double ratio, double angle1, double angle2, bool ccw)
 
 DL_HatchEdgeData (unsigned int degree, bool rational, bool periodic, unsigned int nKnots, unsigned int nControl, unsigned int nFit, const std::vector< double > &knots, const std::vector< std::vector< double >> &controlPoints, const std::vector< std::vector< double >> &fitPoints, const std::vector< double > &weights, double startTangentX, double startTangentY, double endTangentX, double endTangentY)
 

Public Attributes

bool defined
 
int type
 
double x1
 
double y1
 
double x2
 
double y2
 
double cx
 
double cy
 
double radius
 
double angle1
 
double angle2
 
bool ccw
 
double mx
 
double my
 
double ratio
 
unsigned int degree
 
bool rational
 
bool periodic
 
unsigned int nKnots
 
unsigned int nControl
 
unsigned int nFit
 
std::vector< std::vector< double > > controlPoints
 
std::vector< double > knots
 
std::vector< double > weights
 
std::vector< std::vector< double > > fitPoints
 
double startTangentX
 
double startTangentY
 
double endTangentX
 
double endTangentY
 
std::vector< std::vector< double > > vertices
 

Detailed Description

Hatch edge data.

Definition at line 1533 of file dl_entities.h.

Constructor & Destructor Documentation

◆ DL_HatchEdgeData() [1/5]

DL_HatchEdgeData::DL_HatchEdgeData ( )
inline

Default constructor.

Definition at line 1537 of file dl_entities.h.

◆ DL_HatchEdgeData() [2/5]

DL_HatchEdgeData::DL_HatchEdgeData ( double  x1,
double  y1,
double  x2,
double  y2 
)
inline

Constructor for a line edge. Parameters: see member variables.

Definition at line 1543 of file dl_entities.h.

◆ DL_HatchEdgeData() [3/5]

DL_HatchEdgeData::DL_HatchEdgeData ( double  cx,
double  cy,
double  radius,
double  angle1,
double  angle2,
bool  ccw 
)
inline

Constructor for an arc edge. Parameters: see member variables.

Definition at line 1550 of file dl_entities.h.

◆ DL_HatchEdgeData() [4/5]

DL_HatchEdgeData::DL_HatchEdgeData ( double  cx,
double  cy,
double  mx,
double  my,
double  ratio,
double  angle1,
double  angle2,
bool  ccw 
)
inline

Constructor for an ellipse arc edge. Parameters: see member variables.

Definition at line 1569 of file dl_entities.h.

◆ DL_HatchEdgeData() [5/5]

DL_HatchEdgeData::DL_HatchEdgeData ( unsigned int  degree,
bool  rational,
bool  periodic,
unsigned int  nKnots,
unsigned int  nControl,
unsigned int  nFit,
const std::vector< double > &  knots,
const std::vector< std::vector< double >> &  controlPoints,
const std::vector< std::vector< double >> &  fitPoints,
const std::vector< double > &  weights,
double  startTangentX,
double  startTangentY,
double  endTangentX,
double  endTangentY 
)
inline

Constructor for a spline edge. Parameters: see member variables.

Definition at line 1592 of file dl_entities.h.

Member Data Documentation

◆ angle1

double DL_HatchEdgeData::angle1

Start angle of arc or ellipse arc.

Definition at line 1651 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ angle2

double DL_HatchEdgeData::angle2

End angle of arc or ellipse arc.

Definition at line 1653 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ ccw

bool DL_HatchEdgeData::ccw

Counterclockwise flag for arc or ellipse arc.

Definition at line 1655 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ controlPoints

std::vector<std::vector<double> > DL_HatchEdgeData::controlPoints

Definition at line 1675 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ cx

double DL_HatchEdgeData::cx

Center point of arc or ellipse arc (X).

Definition at line 1645 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ cy

double DL_HatchEdgeData::cy

Center point of arc or ellipse arc (Y).

Definition at line 1647 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ defined

bool DL_HatchEdgeData::defined

Set to true if this edge is fully defined.

Definition at line 1626 of file dl_entities.h.

Referenced by DL_Dxf::addHatchEdge(), and DL_Dxf::handleHatchData().

◆ degree

unsigned int DL_HatchEdgeData::degree

Spline degree

Definition at line 1665 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ endTangentX

double DL_HatchEdgeData::endTangentX

Definition at line 1683 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ endTangentY

double DL_HatchEdgeData::endTangentY

Definition at line 1684 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ fitPoints

std::vector<std::vector<double> > DL_HatchEdgeData::fitPoints

Definition at line 1678 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ knots

std::vector<double> DL_HatchEdgeData::knots

Definition at line 1676 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ mx

double DL_HatchEdgeData::mx

Major axis end point (X).

Definition at line 1658 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ my

double DL_HatchEdgeData::my

Major axis end point (Y).

Definition at line 1660 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ nControl

unsigned int DL_HatchEdgeData::nControl

Number of control points.

Definition at line 1671 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ nFit

unsigned int DL_HatchEdgeData::nFit

Number of fit points.

Definition at line 1673 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ nKnots

unsigned int DL_HatchEdgeData::nKnots

Number of knots.

Definition at line 1669 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ periodic

bool DL_HatchEdgeData::periodic

Definition at line 1667 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ radius

double DL_HatchEdgeData::radius

Arc radius.

Definition at line 1649 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ ratio

double DL_HatchEdgeData::ratio

Axis ratio

Definition at line 1662 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ rational

bool DL_HatchEdgeData::rational

Definition at line 1666 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ startTangentX

double DL_HatchEdgeData::startTangentX

Definition at line 1680 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ startTangentY

double DL_HatchEdgeData::startTangentY

Definition at line 1681 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ type

int DL_HatchEdgeData::type

Edge type. 1=line, 2=arc, 3=elliptic arc, 4=spline.

Definition at line 1631 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ vertices

std::vector<std::vector<double> > DL_HatchEdgeData::vertices

Polyline boundary vertices (x y [bulge])

Definition at line 1687 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ weights

std::vector<double> DL_HatchEdgeData::weights

Definition at line 1677 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ x1

double DL_HatchEdgeData::x1

Start point (X).

Definition at line 1636 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ x2

double DL_HatchEdgeData::x2

End point (X).

Definition at line 1640 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ y1

double DL_HatchEdgeData::y1

Start point (Y).

Definition at line 1638 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().

◆ y2

double DL_HatchEdgeData::y2

End point (Y).

Definition at line 1642 of file dl_entities.h.

Referenced by DL_Dxf::handleHatchData().


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