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

kig

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ArgsParserObjectType Class Reference

#include <object_type.h>

Inherits ObjectType.

Inherited by AffinityB2TrType, AffinityGI3PType, AngleType, ApplyTransformationObjectType, ArcBCPAType, ArcBTPType, ArcLineIntersectionType, AreCollinearType, AreOrthogonalType, AreParallelType, BezierCubicType, BezierQuadricType, CastShadowType, CircleBPRType, CircleBTPType, CircleCircleIntersectionType, CircleCircleOtherIntersectionType, CircularInversionType, CocConicType, CocCubicType, CocCurveType, ConicArcB5PType, ConicArcBCTPType, ConicAsymptoteType, ConicB5PType, ConicBAAPType, ConicBDFPType, ConicBFFPType, ConicDirectrixType, ConicLineIntersectionType, ConicLineOtherIntersectionType, ConicPolarLineType, ConicPolarPointType, ConicRadicalType, ConstrainedPointType, ConstrainedRelativePointType, ContainsTestType, ConvexHullType, ConvexPolygonTestType, CubicB9PType, CubicCuspB4PType, CubicLineOtherIntersectionType, CubicLineTwoIntersectionType, CubicNodeB6PType, EquilateralHyperbolaB4PType, ExistenceTestType, FixedPointType, HalfAngleType, HalflineByVectorType, HarmonicHomologyType, InPolygonTestType, InvertArcType, InvertCircleType, InvertLineType, InvertPointType, InvertSegmentType, LineByVectorType, LineCubicIntersectionType, LineLineIntersectionType, LineReflectionType, LocusType, MeasureTransportTypeOld, ObjectABType, ObjectLPType, ParabolaBTPType, PointByCoordsType, PointReflectionType, PolygonLineIntersectionType, PolygonPolygonIntersectionType, PolygonSideType, PolygonVertexType, ProjectedPointType, ProjectiveRotationType, ProjectivityB2QuType, ProjectivityGI4PType, RationalBezierCubicType, RationalBezierQuadricType, RelativePointType, RotationType, SameDistanceType, ScalingOverCenter2Type, ScalingOverCenterType, ScalingOverLine2Type, ScalingOverLineType, SimilitudeType, TangentArcType, TangentConicType, TangentCubicType, TangentCurveType, TranslatedType, TriangleB3PType, VectorEqualityTestType, VectorSumType, and VerticalCubicB4PType.

Public Member Functions

const ArgsParser & argsParser () const
 
const ObjectImpType * impRequirement (const ObjectImp *o, const Args &parents) const
 
bool isDefinedOnOrThrough (const ObjectImp *o, const Args &parents) const
 
std::vector< ObjectCalcer * > sortArgs (const std::vector< ObjectCalcer * > &args) const
 
Args sortArgs (const Args &args) const
 
- Public Member Functions inherited from ObjectType
virtual ~ObjectType ()
 
virtual ObjectImp * calc (const Args &parents, const KigDocument &d) const =0
 
virtual bool canMove (const ObjectTypeCalcer &ourobj) const
 
virtual void executeAction (int i, ObjectHolder &o, ObjectTypeCalcer &t, KigPart &d, KigWidget &w, NormalMode &m) const
 
const char * fullName () const
 
virtual bool inherits (int type) const
 
virtual bool isFreelyTranslatable (const ObjectTypeCalcer &ourobj) const
 
virtual bool isTransform () const
 
virtual std::vector
< ObjectCalcer * > 
movableParents (const ObjectTypeCalcer &ourobj) const
 
virtual void move (ObjectTypeCalcer &ourobj, const Coordinate &to, const KigDocument &d) const
 
virtual const Coordinate moveReferencePoint (const ObjectTypeCalcer &ourobj) const
 
virtual const ObjectImpType * resultId () const =0
 
virtual QStringList specialActions () const
 

Protected Member Functions

 ArgsParserObjectType (const char fulltypename[], const struct ArgsParser::spec argsspec[], int n)
 
- Protected Member Functions inherited from ObjectType
 ObjectType (const char fulltypename[])
 

Protected Attributes

const ArgsParser margsparser
 

Additional Inherited Members

- Public Types inherited from ObjectType
enum  { ID_ConstrainedPointType, ID_LocusType, ID_FixedPointType }
 

Detailed Description

This is a convenience subclass of ObjectType that a type should inherit from if its parents can be specified in an ArgsParser.

Definition at line 113 of file object_type.h.

Constructor & Destructor Documentation

ArgsParserObjectType::ArgsParserObjectType ( const char  fulltypename[],
const struct ArgsParser::spec  argsspec[],
int  n 
)
protected

Definition at line 69 of file object_type.cc.

Member Function Documentation

const ArgsParser & ArgsParserObjectType::argsParser ( ) const

Definition at line 81 of file object_type.cc.

const ObjectImpType * ArgsParserObjectType::impRequirement ( const ObjectImp *  o,
const Args &  parents 
) const
virtual

Supposing that parents would be given as parents to this type's calc function, this function returns the ObjectImp id that o should at least have.

( o should be part of parents )

Implements ObjectType.

Reimplemented in LocusType.

Definition at line 76 of file object_type.cc.

bool ArgsParserObjectType::isDefinedOnOrThrough ( const ObjectImp *  o,
const Args &  parents 
) const
virtual

Supposing that parents would be given as parents to this type's calc function, this function returns whether the returned ObjectImp will be, by construction, on o ( if o is a curve ), or through o ( if o is a point ).

Implements ObjectType.

Definition at line 123 of file object_type.cc.

std::vector< ObjectCalcer * > ArgsParserObjectType::sortArgs ( const std::vector< ObjectCalcer * > &  args) const
virtual

Implements ObjectType.

Reimplemented in LocusType.

Definition at line 108 of file object_type.cc.

Args ArgsParserObjectType::sortArgs ( const Args &  args) const
virtual

Implements ObjectType.

Reimplemented in LocusType.

Definition at line 113 of file object_type.cc.

Member Data Documentation

const ArgsParser ArgsParserObjectType::margsparser
protected

Definition at line 117 of file object_type.h.


The documentation for this class was generated from the following files:
  • object_type.h
  • object_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