• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • objects
Functions | Variables
polygon_type.cc File Reference
#include "polygon_type.h"
#include <math.h>
#include "bogus_imp.h"
#include "line_imp.h"
#include "point_imp.h"
#include "polygon_imp.h"
#include "object_calcer.h"
#include "../misc/common.h"
#include <klocale.h>
#include <cmath>
#include <vector>
Include dependency graph for polygon_type.cc:

Go to the source code of this file.

Functions

int polygonlineintersection (const std::vector< Coordinate > &ppoints, const Coordinate a, const Coordinate b, bool boundleft, bool boundright, bool inside, bool openpolygon, double &t1, double &t2, std::vector< Coordinate >::const_iterator &intersectionside)
 
int polygonlineintersection (const std::vector< Coordinate > &ppoints, const Coordinate a, const Coordinate b, double &t1, double &t2, std::vector< Coordinate >::const_iterator &intersectionside)
 

Variables

static const ArgsParser::spec argsspecConvexHull []
 
static const ArgsParser::spec argsspecCPolygonalLineIntersection []
 
static const ArgsParser::spec argsspecOPolygonalLineIntersection []
 
static const ArgsParser::spec argsspecPolygonLineIntersection []
 
static const ArgsParser::spec argsspecPolygonPolygonIntersection []
 
static const ArgsParser::spec argsspecPolygonSide []
 
static const ArgsParser::spec argsspecPolygonVertex []
 
static const struct
ArgsParser::spec 
argsspecTriangleB3P []
 
static const char triangle_constructstatement [] = I18N_NOOP( "Construct a triangle with this vertex" )
 
static const char triangle_constructstatement2 [] = I18N_NOOP( "Select a point to be a vertex of the new triangle..." )
 

Function Documentation

int polygonlineintersection ( const std::vector< Coordinate > &  ppoints,
const Coordinate  a,
const Coordinate  b,
bool  boundleft,
bool  boundright,
bool  inside,
bool  openpolygon,
double &  t1,
double &  t2,
std::vector< Coordinate >::const_iterator &  intersectionside 
)

Definition at line 712 of file polygon_type.cc.

int polygonlineintersection ( const std::vector< Coordinate > &  ppoints,
const Coordinate  a,
const Coordinate  b,
double &  t1,
double &  t2,
std::vector< Coordinate >::const_iterator &  intersectionside 
)

Definition at line 816 of file polygon_type.cc.

Variable Documentation

const ArgsParser::spec argsspecConvexHull[]
static
Initial value:
=
{
{ AbstractPolygonImp::stype(), I18N_NOOP( "Construct the convex hull of this polygon" ),
I18N_NOOP( "Select the polygon of which you want to construct the convex hull..." ), false }
}
AbstractPolygonImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the PolygonImp type.
Definition: polygon_imp.cc:651

Definition at line 1064 of file polygon_type.cc.

const ArgsParser::spec argsspecCPolygonalLineIntersection[]
static
Initial value:
=
{
{ ClosedPolygonalImp::stype(), I18N_NOOP( "Intersect this polygonal curve with a line" ),
I18N_NOOP( "Select the polygonal curve of which you want the intersection with a line..." ), false },
{ AbstractLineImp::stype(),
I18N_NOOP( "Intersect this line with a polygonal curve" ),
I18N_NOOP( "Select the line of which you want the intersection with a polygonal curve..." ), false },
{ IntImp::stype(), "param", "SHOULD NOT BE SEEN", false }
}
ClosedPolygonalImp::stype
static const ObjectImpType * stype()
Definition: polygon_imp.cc:678
IntImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
AbstractLineImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520

Definition at line 656 of file polygon_type.cc.

const ArgsParser::spec argsspecOPolygonalLineIntersection[]
static
Initial value:
=
{
{ OpenPolygonalImp::stype(), I18N_NOOP( "Intersect this polygonal curve with a line" ),
I18N_NOOP( "Select the polygonal curve of which you want the intersection with a line..." ), false },
{ AbstractLineImp::stype(),
I18N_NOOP( "Intersect this line with a polygonal curve" ),
I18N_NOOP( "Select the line of which you want the intersection with a polygonal curve..." ), false },
{ IntImp::stype(), "param", "SHOULD NOT BE SEEN", false }
}
IntImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
OpenPolygonalImp::stype
static const ObjectImpType * stype()
Definition: polygon_imp.cc:696
AbstractLineImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520

Definition at line 624 of file polygon_type.cc.

const ArgsParser::spec argsspecPolygonLineIntersection[]
static
Initial value:
=
{
{ FilledPolygonImp::stype(), I18N_NOOP( "Intersect this polygon with a line" ),
I18N_NOOP( "Select the polygon of which you want the intersection with a line..." ), false },
{ AbstractLineImp::stype(),
I18N_NOOP( "Intersect this line with a polygon" ),
I18N_NOOP( "Select the line of which you want the intersection with a polygon..." ), false }
}
FilledPolygonImp::stype
static const ObjectImpType * stype()
Definition: polygon_imp.cc:660
AbstractLineImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the AbstractLineImp type.
Definition: line_imp.cc:520

Definition at line 505 of file polygon_type.cc.

const ArgsParser::spec argsspecPolygonPolygonIntersection[]
static
Initial value:
=
{
{ FilledPolygonImp::stype(), I18N_NOOP( "Intersect this polygon with another polygon" ),
I18N_NOOP( "Select the polygon of which you want the intersection with another polygon..." ), false },
{ FilledPolygonImp::stype(), I18N_NOOP( "Intersect with this polygon" ),
I18N_NOOP( "Select the second polygon for the intersection..." ), false }
}
FilledPolygonImp::stype
static const ObjectImpType * stype()
Definition: polygon_imp.cc:660

Definition at line 826 of file polygon_type.cc.

const ArgsParser::spec argsspecPolygonSide[]
static
Initial value:
=
{
{ FilledPolygonImp::stype(), I18N_NOOP( "Construct the sides of this polygon" ),
I18N_NOOP( "Select the polygon of which you want to construct the sides..." ), false },
{ IntImp::stype(), "param", "SHOULD NOT BE SEEN", false }
}
IntImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
FilledPolygonImp::stype
static const ObjectImpType * stype()
Definition: polygon_imp.cc:660

Definition at line 1018 of file polygon_type.cc.

const ArgsParser::spec argsspecPolygonVertex[]
static
Initial value:
=
{
{ FilledPolygonImp::stype(), I18N_NOOP( "Construct the vertices of this polygon" ),
I18N_NOOP( "Select the polygon of which you want to construct the vertices..." ), true },
{ IntImp::stype(), "param", "SHOULD NOT BE SEEN", false }
}
IntImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing the IntImp type.
Definition: bogus_imp.cc:278
FilledPolygonImp::stype
static const ObjectImpType * stype()
Definition: polygon_imp.cc:660

Definition at line 975 of file polygon_type.cc.

const struct ArgsParser::spec argsspecTriangleB3P[]
static
Initial value:
=
{
{ PointImp::stype(), triangle_constructstatement, triangle_constructstatement2, true },
{ PointImp::stype(), triangle_constructstatement, triangle_constructstatement2, true },
{ PointImp::stype(), triangle_constructstatement, triangle_constructstatement2, true }
}
triangle_constructstatement2
static const char triangle_constructstatement2[]
Definition: polygon_type.cc:39
PointImp::stype
static const ObjectImpType * stype()
Returns the ObjectImpType representing PointImp's.
Definition: point_imp.cc:159
triangle_constructstatement
static const char triangle_constructstatement[]
Definition: polygon_type.cc:38

Definition at line 41 of file polygon_type.cc.

const char triangle_constructstatement[] = I18N_NOOP( "Construct a triangle with this vertex" )
static

Definition at line 38 of file polygon_type.cc.

const char triangle_constructstatement2[] = I18N_NOOP( "Select a point to be a vertex of the new triangle..." )
static

Definition at line 39 of file polygon_type.cc.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal