• Skip to content
  • Skip to link menu
KDE 4.0 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

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

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 290 of file other_imp.cc.

ArcImp::~ArcImp (  ) 

Definition at line 303 of file other_imp.cc.


Member Function Documentation

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

Returns the ObjectImpType representing the ArcImp type.

Reimplemented from CurveImp.

Definition at line 599 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 307 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 312 of file other_imp.cc.

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

Implements ObjectImp.

Definition at line 346 of file other_imp.cc.

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

Implements ObjectImp.

Definition at line 351 of file other_imp.cc.

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

Implements ObjectImp.

Definition at line 356 of file other_imp.cc.

Rect ArcImp::surroundingRect (  )  const [virtual]

Implements ObjectImp.

Definition at line 693 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 362 of file other_imp.cc.

int ArcImp::numberOfProperties (  )  const [virtual]

Reimplemented from ObjectImp.

Definition at line 367 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 372 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 389 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 434 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 405 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 468 of file other_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 653 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 626 of file other_imp.cc.

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

Implements ObjectImp.

Definition at line 476 of file other_imp.cc.

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

Implements CurveImp.

Definition at line 481 of file other_imp.cc.

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

Implements CurveImp.

Definition at line 495 of file other_imp.cc.

const Coordinate ArcImp::center (  )  const

Return the center of this arc.

Definition at line 502 of file other_imp.cc.

double ArcImp::radius (  )  const

Return the radius of this arc.

Definition at line 507 of file other_imp.cc.

double ArcImp::startAngle (  )  const

Return the start angle in radians of this arc.

Definition at line 512 of file other_imp.cc.

double ArcImp::angle (  )  const

Return the dimension in radians of this arc.

Definition at line 517 of file other_imp.cc.

Coordinate ArcImp::firstEndPoint (  )  const

Return the start point of this arc.

Definition at line 522 of file other_imp.cc.

Coordinate ArcImp::secondEndPoint (  )  const

Return the end point of this arc.

Definition at line 528 of file other_imp.cc.

double ArcImp::sectorSurface (  )  const

Return the size of the sector surface of this arc.

Definition at line 463 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.

Implements ObjectImp.

Definition at line 544 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 631 of file other_imp.cc.

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

Definition at line 636 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
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
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