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

kig

ConicArcImp Class Reference

A conic arc, which is given by the cartesian equation and two angles. More...

#include <conic_imp.h>

Inheritance diagram for ConicArcImp:
Inheritance graph
[legend]

List of all members.

Public Types

typedef CurveImp Parent

Public Member Functions

 ConicArcImp (const ConicCartesianData &data, const double startangle, const double angle)
 ~ConicArcImp ()
bool contains (const Coordinate &p, int width, const KigWidget &) const
bool containsPoint (const Coordinate &p, const KigDocument &doc) const
ConicArcImp * copy () const
Coordinate firstEndPoint () const
double getParam (const Coordinate &point) const
double getParam (const Coordinate &point, const KigDocument &) const
const Coordinate getPoint (double param) const
const Coordinate getPoint (double param, const KigDocument &) const
const char * iconForProperty (int which) const
bool internalContainsPoint (const Coordinate &p, double threshold, const KigDocument &doc) const
bool isPropertyDefinedOnOrThroughThisImp (int which) const
int numberOfProperties () const
const QByteArrayList properties () const
const QByteArrayList propertiesInternalNames () const
ObjectImp * property (int which, const KigDocument &w) const
Coordinate secondEndPoint () const
void setAngle (double a)
void setStartAngle (double sa)
ObjectImp * transform (const Transformation &t) const
const ObjectImpType * type () const

Static Public Member Functions

static const ObjectImpType * stype ()

Detailed Description

A conic arc, which is given by the cartesian equation and two angles.

Definition at line 172 of file conic_imp.h.


Member Typedef Documentation

typedef CurveImp ConicArcImp::Parent

Reimplemented from ConicImp.

Definition at line 178 of file conic_imp.h.


Constructor & Destructor Documentation

ConicArcImp::ConicArcImp ( const ConicCartesianData &  data,
const double  startangle,
const double  angle 
)

Construct a Conic Arc with given cartesian equation, start angle and dimension (both in radians).

Definition at line 467 of file conic_imp.cc.

ConicArcImp::~ConicArcImp (  ) 

Definition at line 473 of file conic_imp.cc.


Member Function Documentation

bool ConicArcImp::contains ( const Coordinate &  p,
int  width,
const KigWidget &  w 
) const [virtual]

Reimplemented from ConicImp.

Definition at line 520 of file conic_imp.cc.

bool ConicArcImp::containsPoint ( const Coordinate &  p,
const KigDocument &   
) const [virtual]

Return whether this Curve contains the given point.

This is implemented as a numerical approximation. Implementations can/should use the value test_threshold in common.h as a threshold value.

Reimplemented from ConicImp.

Definition at line 628 of file conic_imp.cc.

ConicArcImp * ConicArcImp::copy (  )  const [virtual]

Returns a copy of this ObjectImp.

The copy is an exact copy. Changes to the copy don't affect the original.

Reimplemented from ConicImpCart.

Definition at line 477 of file conic_imp.cc.

Coordinate ConicArcImp::firstEndPoint (  )  const

Return the start point of this arc.

Definition at line 596 of file conic_imp.cc.

double ConicArcImp::getParam ( const Coordinate &  point  )  const

Reimplemented from ConicImp.

Definition at line 651 of file conic_imp.cc.

double ConicArcImp::getParam ( const Coordinate &  point,
const KigDocument &   
) const [virtual]

Reimplemented from ConicImp.

Definition at line 646 of file conic_imp.cc.

const Coordinate ConicArcImp::getPoint ( double  param  )  const

Reimplemented from ConicImp.

Definition at line 667 of file conic_imp.cc.

const Coordinate ConicArcImp::getPoint ( double  param,
const KigDocument &   
) const [virtual]

Reimplemented from ConicImp.

Definition at line 662 of file conic_imp.cc.

const char * ConicArcImp::iconForProperty ( int  which  )  const [virtual]

Reimplemented from ConicImp.

Definition at line 550 of file conic_imp.cc.

bool ConicArcImp::internalContainsPoint ( const Coordinate &  p,
double  threshold,
const KigDocument &  doc 
) const

Definition at line 636 of file conic_imp.cc.

bool ConicArcImp::isPropertyDefinedOnOrThroughThisImp ( int  which  )  const [virtual]

Reimplemented from ConicImp.

Definition at line 580 of file conic_imp.cc.

int ConicArcImp::numberOfProperties (  )  const [virtual]

Reimplemented from ConicImp.

Definition at line 526 of file conic_imp.cc.

const QByteArrayList ConicArcImp::properties (  )  const [virtual]

Reimplemented from ConicImp.

Definition at line 531 of file conic_imp.cc.

const QByteArrayList ConicArcImp::propertiesInternalNames (  )  const [virtual]

Reimplemented from ConicImp.

Definition at line 541 of file conic_imp.cc.

ObjectImp * ConicArcImp::property ( int  which,
const KigDocument &  w 
) const [virtual]

Reimplemented from ConicImp.

Definition at line 565 of file conic_imp.cc.

Coordinate ConicArcImp::secondEndPoint (  )  const

Return the end point of this arc.

Definition at line 601 of file conic_imp.cc.

void ConicArcImp::setAngle ( double  a  )  [inline]

Set the dimension in radians of this arc.

Definition at line 219 of file conic_imp.h.

void ConicArcImp::setStartAngle ( double  sa  )  [inline]

Set the start angle in radians of this arc.

Definition at line 215 of file conic_imp.h.

const ObjectImpType * ConicArcImp::stype (  )  [static]

Returns the ObjectImpType representing the ConicImp type.

Reimplemented from ConicImp.

Definition at line 606 of file conic_imp.cc.

ObjectImp * ConicArcImp::transform ( const Transformation &  t  )  const [virtual]

Return this ObjectImp, transformed by the transformation t.

Reimplemented from ConicImp.

Definition at line 482 of file conic_imp.cc.

const ObjectImpType * ConicArcImp::type (  )  const [virtual]

Returns the lowermost ObjectImpType that this object is an instantiation of.

E.g. if you want to get a string containing the internal name of the type of an object, you can do:

 std::string typename = object.type()->internalName();

Reimplemented from ConicImp.

Definition at line 623 of file conic_imp.cc.


The documentation for this class was generated from the following files:
  • conic_imp.h
  • conic_imp.cc

kig

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

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal