#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_CurveCurve () const
 Interface. More...
 
void Dump (ON_TextLog &) const
 
bool IsValid (ON_TextLog *text_log=nullptr) const
 
ON_HatchLoopoperator= (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_Curvem_p2dCurve
 
eLoopType m_type
 

Friends

class ON_Hatch
 

Member Enumeration Documentation

◆ eLoopType

Enumerator
ltOuter 
ltInner 

Constructor & Destructor Documentation

◆ ON_HatchLoop() [1/3]

ON_HatchLoop::ON_HatchLoop ( )

◆ ON_HatchLoop() [2/3]

ON_HatchLoop::ON_HatchLoop ( ON_Curve pCurve2d,
eLoopType  type = ltOuter 
)

◆ ON_HatchLoop() [3/3]

ON_HatchLoop::ON_HatchLoop ( const ON_HatchLoop src)

◆ ~ON_HatchLoop()

ON_HatchLoop::~ON_HatchLoop ( )

Member Function Documentation

◆ Curve()

const ON_Curve* ON_HatchLoop::Curve ( ) const

Interface.

Get a closed 2d curve boundary loop

TODODOC: Return: TODODOC: Pointer to loop's 2d curve

◆ Dump()

void ON_HatchLoop::Dump ( ON_TextLog ) const

◆ IsValid()

bool ON_HatchLoop::IsValid ( ON_TextLog text_log = nullptr) const

◆ operator=()

ON_HatchLoop& ON_HatchLoop::operator= ( const ON_HatchLoop src)

◆ Read()

bool ON_HatchLoop::Read ( ON_BinaryArchive )

◆ SetCurve()

bool ON_HatchLoop::SetCurve ( const ON_Curve curve)

Specify the 2d loop curve in the hatch's plane coordinates

Parameters
curve[in] 2d input curve Return: true: success, false, curve couldn't be duplicated

The curve is copied

◆ SetType()

void ON_HatchLoop::SetType ( eLoopType  type)

Specify the type flag of the loop

Parameters
type[in] ltInner or ltOuter

◆ Type()

eLoopType ON_HatchLoop::Type ( ) const

Get the type flag of the loop

Returns
eLoopType::ltInner or eLoopType::ltOuter

◆ Write()

bool ON_HatchLoop::Write ( ON_BinaryArchive ) const

Friends And Related Function Documentation

◆ ON_Hatch

friend class ON_Hatch
friend

Member Data Documentation

◆ m_p2dCurve

ON_Curve* ON_HatchLoop::m_p2dCurve
protected

◆ m_type

eLoopType ON_HatchLoop::m_type
protected