KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::OPT_CONSTRAINT Class Referenceabstract

#include <pns_optimizer.h>

Inheritance diagram for PNS::OPT_CONSTRAINT:
PNS::ANGLE_CONSTRAINT_45 PNS::AREA_CONSTRAINT PNS::CORNER_COUNT_LIMIT_CONSTRAINT PNS::KEEP_TOPOLOGY_CONSTRAINT PNS::PRESERVE_VERTEX_CONSTRAINT PNS::RESTRICT_VERTEX_RANGE_CONSTRAINT

Public Member Functions

 OPT_CONSTRAINT (NODE *aWorld)
 
virtual ~OPT_CONSTRAINT ()
 
virtual bool Check (int aVertex1, int aVertex2, const LINE *aOriginLine, const SHAPE_LINE_CHAIN &aCurrentPath, const SHAPE_LINE_CHAIN &aReplacement)=0
 
int GetPriority () const
 
void SetPriority (int aPriority)
 

Protected Attributes

NODEm_world
 
int m_priority
 

Detailed Description

Definition at line 216 of file pns_optimizer.h.

Constructor & Destructor Documentation

◆ OPT_CONSTRAINT()

PNS::OPT_CONSTRAINT::OPT_CONSTRAINT ( NODE aWorld)
inline

Definition at line 219 of file pns_optimizer.h.

References m_priority.

◆ ~OPT_CONSTRAINT()

virtual PNS::OPT_CONSTRAINT::~OPT_CONSTRAINT ( )
inlinevirtual

Definition at line 225 of file pns_optimizer.h.

Member Function Documentation

◆ Check()

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

◆ GetPriority()

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

Definition at line 233 of file pns_optimizer.h.

References m_priority.

◆ SetPriority()

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

Definition at line 234 of file pns_optimizer.h.

References m_priority.

Member Data Documentation

◆ m_priority

int PNS::OPT_CONSTRAINT::m_priority
protected

Definition at line 238 of file pns_optimizer.h.

Referenced by GetPriority(), OPT_CONSTRAINT(), and SetPriority().

◆ m_world

NODE* PNS::OPT_CONSTRAINT::m_world
protected

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: