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

kig

ArcImp Class Reference

#include <other_imp.h>

Inheritance diagram for ArcImp:

Inheritance graph
[legend]

List of all members.


Detailed Description

An ObjectImp representing an arc.

Definition at line 163 of file other_imp.h.


Public Types

typedef CurveImp Parent

Public Member Functions

double angle () const
 ArcImp (const Coordinate &center, const double radius, const double startangle, const double angle)
const Coordinate center () const
bool contains (const Coordinate &p, int width, const KigWidget &w) const
bool containsPoint (const Coordinate &p, const KigDocument &doc) const
ArcImp * copy () const
void draw (KigPainter &p) const
bool equals (const ObjectImp &rhs) const
Coordinate firstEndPoint () const
double getParam (const Coordinate &c, const KigDocument &d) const
const Coordinate getPoint (double p, const KigDocument &d) const
const char * iconForProperty (int which) const
const ObjectImpType * impRequirementForProperty (int which) const
bool inRect (const Rect &r, int width, const KigWidget &si) const
bool internalContainsPoint (const Coordinate &p, double threshold) const
bool isPropertyDefinedOnOrThroughThisImp (int which) const
int numberOfProperties () const
const QByteArrayList properties () const
const QByteArrayList propertiesInternalNames () const
ObjectImp * property (int which, const KigDocument &d) const
double radius () const
Coordinate secondEndPoint () const
double sectorSurface () const
double startAngle () const
Rect surroundingRect () const
ObjectImp * transform (const Transformation &t) const
const ObjectImpType * type () const
bool valid () const
void visit (ObjectImpVisitor *vtor) const
 ~ArcImp ()

Static Public Member Functions

static const ObjectImpType * stype ()

Member Typedef Documentation

typedef CurveImp ArcImp::Parent

Reimplemented from CurveImp.

Definition at line 171 of file other_imp.h.


Constructor & Destructor Documentation

ArcImp::ArcImp ( const Coordinate &  center,
const double  radius,
const double  startangle,
const double  angle 
)

Construct an Arc with a given center, radius, start angle and dimension (both in radians).

Definition at line 292 of file other_imp.cc.

ArcImp::~ArcImp (  ) 

Definition at line 305 of file other_imp.cc.


Member Function Documentation

double ArcImp::angle (  )  const

Return the dimension in radians of this arc.

Definition at line 519 of file other_imp.cc.

const Coordinate ArcImp::center (  )  const

Return the center of this arc.

Definition at line 504 of file other_imp.cc.

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

Implements ObjectImp.

Definition at line 353 of file other_imp.cc.

bool ArcImp::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.

Implements CurveImp.

Definition at line 633 of file other_imp.cc.

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

Returns a copy of this ObjectImp.

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

Implements CurveImp.

Definition at line 309 of file other_imp.cc.

void ArcImp::draw ( KigPainter &  p  )  const [virtual]

Implements ObjectImp.

Definition at line 348 of file other_imp.cc.

bool ArcImp::equals ( const ObjectImp &  rhs  )  const [virtual]

Returns true if this ObjectImp is equal to rhs.

This function checks whether rhs is of the same ObjectImp type, and whether it contains the same data as this ObjectImp.

For internal use only.

It is used e.g. by the KigCommand stuff to see what the user has changed during a move.

Implements ObjectImp.

Definition at line 546 of file other_imp.cc.

Coordinate ArcImp::firstEndPoint (  )  const

Return the start point of this arc.

Definition at line 524 of file other_imp.cc.

double ArcImp::getParam ( const Coordinate &  c,
const KigDocument &  d 
) const [virtual]

Implements CurveImp.

Definition at line 483 of file other_imp.cc.

const Coordinate ArcImp::getPoint ( double  p,
const KigDocument &  d 
) const [virtual]

Implements CurveImp.

Definition at line 497 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 407 of file other_imp.cc.

const ObjectImpType * ArcImp::impRequirementForProperty ( int  which  )  const [virtual]

Reimplemented from ObjectImp.

Definition at line 470 of file other_imp.cc.

bool ArcImp::inRect ( const Rect &  r,
int  width,
const KigWidget &  si 
) const [virtual]

Implements ObjectImp.

Definition at line 358 of file other_imp.cc.

bool ArcImp::internalContainsPoint ( const Coordinate &  p,
double  threshold 
) const

Definition at line 638 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 655 of file other_imp.cc.

int ArcImp::numberOfProperties (  )  const [virtual]

Reimplemented from ObjectImp.

Definition at line 369 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 374 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 391 of file other_imp.cc.

ObjectImp * ArcImp::property ( int  which,
const KigDocument &  d 
) const [virtual]

Reimplemented from ObjectImp.

Definition at line 436 of file other_imp.cc.

double ArcImp::radius (  )  const

Return the radius of this arc.

Definition at line 509 of file other_imp.cc.

Coordinate ArcImp::secondEndPoint (  )  const

Return the end point of this arc.

Definition at line 530 of file other_imp.cc.

double ArcImp::sectorSurface (  )  const

Return the size of the sector surface of this arc.

Definition at line 465 of file other_imp.cc.

double ArcImp::startAngle (  )  const

Return the start angle in radians of this arc.

Definition at line 514 of file other_imp.cc.

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

Returns the ObjectImpType representing the ArcImp type.

Reimplemented from CurveImp.

Definition at line 601 of file other_imp.cc.

Rect ArcImp::surroundingRect (  )  const [virtual]

Implements ObjectImp.

Definition at line 695 of file other_imp.cc.

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

Return this ObjectImp, transformed by the transformation t.

Implements ObjectImp.

Definition at line 314 of file other_imp.cc.

const ObjectImpType * ArcImp::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();

Implements ObjectImp.

Definition at line 628 of file other_imp.cc.

bool ArcImp::valid (  )  const

Returns true if this is a valid ObjectImp.

If you want to return an invalid ObjectImp, you should return an InvalidImp instance.

Reimplemented from ObjectImp.

Definition at line 364 of file other_imp.cc.

void ArcImp::visit ( ObjectImpVisitor *  vtor  )  const [virtual]

Implements ObjectImp.

Definition at line 478 of file other_imp.cc.


The documentation for this class was generated from the following files:
  • other_imp.h
  • other_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"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
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