KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::RESTRICT_VERTEX_RANGE_CONSTRAINT Class Reference

#include <pns_optimizer.h>

Inheritance diagram for PNS::RESTRICT_VERTEX_RANGE_CONSTRAINT:
PNS::OPT_CONSTRAINT

Public Member Functions

 RESTRICT_VERTEX_RANGE_CONSTRAINT (NODE *aWorld, int aStart, int aEnd)
 
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_start
 
int m_end
 

Detailed Description

Definition at line 314 of file pns_optimizer.h.

Constructor & Destructor Documentation

◆ RESTRICT_VERTEX_RANGE_CONSTRAINT()

PNS::RESTRICT_VERTEX_RANGE_CONSTRAINT::RESTRICT_VERTEX_RANGE_CONSTRAINT ( NODE aWorld,
int  aStart,
int  aEnd 
)
inline

Definition at line 317 of file pns_optimizer.h.

Member Function Documentation

◆ Check()

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

Implements PNS::OPT_CONSTRAINT.

Definition at line 280 of file pns_optimizer.cpp.

◆ GetPriority()

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

Definition at line 233 of file pns_optimizer.h.

References PNS::OPT_CONSTRAINT::m_priority.

◆ SetPriority()

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

Definition at line 234 of file pns_optimizer.h.

References PNS::OPT_CONSTRAINT::m_priority.

Member Data Documentation

◆ m_end

int PNS::RESTRICT_VERTEX_RANGE_CONSTRAINT::m_end
private

Definition at line 329 of file pns_optimizer.h.

◆ m_priority

int PNS::OPT_CONSTRAINT::m_priority
protectedinherited

◆ m_start

int PNS::RESTRICT_VERTEX_RANGE_CONSTRAINT::m_start
private

Definition at line 328 of file pns_optimizer.h.

◆ 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 files: