KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KI_TEST::CommonTestData Struct Reference

Common data for some of the SHAPE_POLY_SET tests: More...

#include <fixtures_geometry.h>

Public Member Functions

 CommonTestData ()
 Constructor.
 
 ~CommonTestData ()
 

Public Attributes

SHAPE_POLY_SET emptyPolySet
 
SHAPE_POLY_SET uniqueVertexPolySet
 
SHAPE_POLY_SET solidPolySet
 
SHAPE_POLY_SET holeyPolySet
 
SHAPE_POLY_SET curvedPolyWrapRound
 Causes arc wraparound when reloading from Clipper see https://gitlab.com/kicad/code/kicad/-/issues/9670.
 
SHAPE_POLY_SET holeyCurvedPolySingle
 Polygon with a single outline + multiple holes.
 
SHAPE_POLY_SET holeyCurvedPolyMulti
 Polygon with a multiple outlines + multiple holes.
 
SHAPE_POLY_SET holeyCurvedPolyInter
 Polygon with a single outlines + multiple holes.
 
std::vector< VECTOR2IuniquePoints
 
std::vector< VECTOR2IholeyPoints
 
std::vector< SEGholeySegments
 

Detailed Description

Common data for some of the SHAPE_POLY_SET tests:

  1. holeyPolySet: A polyset containing one single squared outline with two holes: a non-convex pentagon and a triangle. 2.solidPolySet: A polyset with three empty outlines and no holes.
  2. uniqueVertexPolySet: A polyset with one single outline that contains just one vertex.
  3. emptyPolySet: A polyset with no outlines.

Definition at line 42 of file fixtures_geometry.h.

Constructor & Destructor Documentation

◆ CommonTestData()

◆ ~CommonTestData()

KI_TEST::CommonTestData::~CommonTestData ( )
inline

Definition at line 221 of file fixtures_geometry.h.

Member Data Documentation

◆ curvedPolyWrapRound

SHAPE_POLY_SET KI_TEST::CommonTestData::curvedPolyWrapRound

Causes arc wraparound when reloading from Clipper see https://gitlab.com/kicad/code/kicad/-/issues/9670.

Definition at line 49 of file fixtures_geometry.h.

Referenced by BOOST_AUTO_TEST_CASE(), and CommonTestData().

◆ emptyPolySet

SHAPE_POLY_SET KI_TEST::CommonTestData::emptyPolySet

Definition at line 45 of file fixtures_geometry.h.

◆ holeyCurvedPolyInter

SHAPE_POLY_SET KI_TEST::CommonTestData::holeyCurvedPolyInter

Polygon with a single outlines + multiple holes.

Holes and outlines contain arcs. Intersects with above two polysets

Definition at line 55 of file fixtures_geometry.h.

Referenced by BOOST_AUTO_TEST_CASE(), and CommonTestData().

◆ holeyCurvedPolyMulti

SHAPE_POLY_SET KI_TEST::CommonTestData::holeyCurvedPolyMulti

Polygon with a multiple outlines + multiple holes.

Holes and outlines contain arcs

Definition at line 53 of file fixtures_geometry.h.

Referenced by BOOST_AUTO_TEST_CASE(), and CommonTestData().

◆ holeyCurvedPolySingle

SHAPE_POLY_SET KI_TEST::CommonTestData::holeyCurvedPolySingle

Polygon with a single outline + multiple holes.

Holes and outline contain arcs

Definition at line 51 of file fixtures_geometry.h.

Referenced by BOOST_AUTO_TEST_CASE(), and CommonTestData().

◆ holeyPoints

std::vector<VECTOR2I> KI_TEST::CommonTestData::holeyPoints

Definition at line 61 of file fixtures_geometry.h.

Referenced by CommonTestData().

◆ holeyPolySet

SHAPE_POLY_SET KI_TEST::CommonTestData::holeyPolySet

Definition at line 48 of file fixtures_geometry.h.

Referenced by CommonTestData().

◆ holeySegments

std::vector<SEG> KI_TEST::CommonTestData::holeySegments

Definition at line 62 of file fixtures_geometry.h.

Referenced by CommonTestData().

◆ solidPolySet

SHAPE_POLY_SET KI_TEST::CommonTestData::solidPolySet

Definition at line 47 of file fixtures_geometry.h.

Referenced by CommonTestData().

◆ uniquePoints

std::vector<VECTOR2I> KI_TEST::CommonTestData::uniquePoints

Definition at line 60 of file fixtures_geometry.h.

Referenced by CommonTestData().

◆ uniqueVertexPolySet

SHAPE_POLY_SET KI_TEST::CommonTestData::uniqueVertexPolySet

Definition at line 46 of file fixtures_geometry.h.

Referenced by CommonTestData().


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