#include <opennurbs_hatch.h>
Public Types | |
enum | eLoopType { ltOuter = 0, ltInner = 1 } |
Public Member Functions | |
ON_HatchLoop () | |
ON_HatchLoop (ON_Curve *pCurve2d, eLoopType type=ltOuter) | |
ON_HatchLoop (const ON_HatchLoop &src) | |
~ON_HatchLoop () | |
const ON_Curve * | Curve () const |
Interface. More... | |
void | Dump (ON_TextLog &) const |
bool | IsValid (ON_TextLog *text_log=nullptr) const |
ON_HatchLoop & | operator= (const ON_HatchLoop &src) |
bool | Read (ON_BinaryArchive &) |
bool | SetCurve (const ON_Curve &curve) |
Specify the 2d loop curve in the hatch's plane coordinates More... | |
void | SetType (eLoopType type) |
Specify the type flag of the loop More... | |
eLoopType | Type () const |
Get the type flag of the loop More... | |
bool | Write (ON_BinaryArchive &) const |
Protected Attributes | |
ON_Curve * | m_p2dCurve |
eLoopType | m_type |
Friends | |
class | ON_Hatch |
ON_HatchLoop::ON_HatchLoop | ( | ) |
ON_HatchLoop::ON_HatchLoop | ( | const ON_HatchLoop & | src | ) |
ON_HatchLoop::~ON_HatchLoop | ( | ) |
const ON_Curve* ON_HatchLoop::Curve | ( | ) | const |
Interface.
Get a closed 2d curve boundary loop
TODODOC: Return: TODODOC: Pointer to loop's 2d curve
void ON_HatchLoop::Dump | ( | ON_TextLog & | ) | const |
bool ON_HatchLoop::IsValid | ( | ON_TextLog * | text_log = nullptr | ) | const |
ON_HatchLoop& ON_HatchLoop::operator= | ( | const ON_HatchLoop & | src | ) |
bool ON_HatchLoop::Read | ( | ON_BinaryArchive & | ) |
bool ON_HatchLoop::SetCurve | ( | const ON_Curve & | curve | ) |
Specify the 2d loop curve in the hatch's plane coordinates
curve | [in] 2d input curve Return: true: success, false, curve couldn't be duplicated |
The curve is copied
void ON_HatchLoop::SetType | ( | eLoopType | type | ) |
Specify the type flag of the loop
type | [in] ltInner or ltOuter |
eLoopType ON_HatchLoop::Type | ( | ) | const |
Get the type flag of the loop
bool ON_HatchLoop::Write | ( | ON_BinaryArchive & | ) | const |
|
friend |
|
protected |
|
protected |