KiCad PCB EDA Suite
PNS::ANGLE_CONSTRAINT_45 Class Reference

#include <pns_optimizer.h>

Inheritance diagram for PNS::ANGLE_CONSTRAINT_45:
PNS::OPT_CONSTRAINT

Public Member Functions

 ANGLE_CONSTRAINT_45 (NODE *aWorld, int aEntryDirectionMask=-1, int aExitDirectionMask=-1)
 
virtual ~ANGLE_CONSTRAINT_45 ()
 
virtual bool Check (int aVertex1, int aVertex2, const LINE *aOriginLine, const SHAPE_LINE_CHAIN &aCurrentPath, const SHAPE_LINE_CHAIN &aReplacement) override
 
int GetPriority () const
 
void SetPriority (int aPriority)
 

Protected Attributes

NODEm_world
 
int m_priority
 

Private Attributes

int m_entryDirectionMask
 
int m_exitDirectionMask
 

Detailed Description

Definition at line 241 of file pns_optimizer.h.

Constructor & Destructor Documentation

◆ ANGLE_CONSTRAINT_45()

PNS::ANGLE_CONSTRAINT_45::ANGLE_CONSTRAINT_45 ( NODE aWorld,
int  aEntryDirectionMask = -1,
int  aExitDirectionMask = -1 
)
inline

Definition at line 244 of file pns_optimizer.h.

244  :
245  OPT_CONSTRAINT( aWorld ),
246  m_entryDirectionMask( aEntryDirectionMask ),
247  m_exitDirectionMask( aExitDirectionMask )
248  {
249 
250  }
OPT_CONSTRAINT(NODE *aWorld)

◆ ~ANGLE_CONSTRAINT_45()

virtual PNS::ANGLE_CONSTRAINT_45::~ANGLE_CONSTRAINT_45 ( )
inlinevirtual

Definition at line 252 of file pns_optimizer.h.

252 {};

Member Function Documentation

◆ Check()

virtual bool PNS::ANGLE_CONSTRAINT_45::Check ( int  aVertex1,
int  aVertex2,
const LINE aOriginLine,
const SHAPE_LINE_CHAIN aCurrentPath,
const SHAPE_LINE_CHAIN aReplacement 
)
overridevirtual

Implements PNS::OPT_CONSTRAINT.

◆ GetPriority()

int PNS::OPT_CONSTRAINT::GetPriority ( ) const
inlineinherited

Definition at line 233 of file pns_optimizer.h.

233 { return m_priority; }

References PNS::OPT_CONSTRAINT::m_priority.

◆ SetPriority()

void PNS::OPT_CONSTRAINT::SetPriority ( int  aPriority)
inlineinherited

Definition at line 234 of file pns_optimizer.h.

234 { m_priority = aPriority; }

References PNS::OPT_CONSTRAINT::m_priority.

Member Data Documentation

◆ m_entryDirectionMask

int PNS::ANGLE_CONSTRAINT_45::m_entryDirectionMask
private

Definition at line 257 of file pns_optimizer.h.

◆ m_exitDirectionMask

int PNS::ANGLE_CONSTRAINT_45::m_exitDirectionMask
private

Definition at line 258 of file pns_optimizer.h.

◆ m_priority

int PNS::OPT_CONSTRAINT::m_priority
protectedinherited

◆ m_world

NODE* PNS::OPT_CONSTRAINT::m_world
protectedinherited

Definition at line 237 of file pns_optimizer.h.

Referenced by PNS::KEEP_TOPOLOGY_CONSTRAINT::Check().


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