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

kig

PointImp Class Reference

#include <point_imp.h>

Inheritance diagram for PointImp:

Inheritance graph
[legend]

List of all members.


Detailed Description

An ObjectImp representing a point.

Definition at line 27 of file point_imp.h.


Public Types

typedef ObjectImp Parent

Public Member Functions

 PointImp (const Coordinate &c)
 ~PointImp ()
Rect surroundingRect () const
Coordinate attachPoint () const
const Coordinate & coordinate () const
void setCoordinate (const Coordinate &c)
void draw (KigPainter &p) const
bool contains (const Coordinate &p, int width, const KigWidget &) const
bool inRect (const Rect &r, int width, const KigWidget &) 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
ObjectImp * transform (const Transformation &) const
PointImp * copy () const
const ObjectImpType * type () const
void visit (ObjectImpVisitor *vtor) const
void fillInNextEscape (QString &s, const KigDocument &) const
bool canFillInNextEscape () const
bool equals (const ObjectImp &rhs) const

Static Public Member Functions

static const ObjectImpType * stype ()

Member Typedef Documentation

typedef ObjectImp PointImp::Parent

Definition at line 32 of file point_imp.h.


Constructor & Destructor Documentation

PointImp::PointImp ( const Coordinate &  c  ) 

Construct a PointImp with coordinate c.

Definition at line 29 of file point_imp.cc.

PointImp::~PointImp (  ) 

Definition at line 117 of file point_imp.cc.


Member Function Documentation

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

Returns the ObjectImpType representing PointImp's.

Reimplemented from ObjectImp.

Reimplemented in BogusPointImp.

Definition at line 159 of file point_imp.cc.

Rect PointImp::surroundingRect (  )  const [virtual]

Implements ObjectImp.

Definition at line 186 of file point_imp.cc.

Coordinate PointImp::attachPoint (  )  const [virtual]

Returns a reference point where to attach labels; when this returns an invalidCoord then the attachment is either not done at all, or done in a specific way (like for curves, or for points) The treatment of points could also take advantage of this attachment mechanism.

If this method returns a valid Coordinate, then this is interpreted as a pivot point for the label, which can still be moved relative to that point, but follows the object when the object changes. In practice a new RelativePointType is created (position of the string), this type in turn depends on the object (to get its attachPoint) and two DoubleImp that are interpreted as relative displacement (x and y)

Implements ObjectImp.

Definition at line 34 of file point_imp.cc.

const Coordinate& PointImp::coordinate (  )  const [inline]

Get the coordinate of this PointImp.

Definition at line 50 of file point_imp.h.

void PointImp::setCoordinate ( const Coordinate &  c  ) 

Set the coordinate of this PointImp.

Definition at line 133 of file point_imp.cc.

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

Implements ObjectImp.

Definition at line 40 of file point_imp.cc.

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

Implements ObjectImp.

Definition at line 45 of file point_imp.cc.

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

Implements ObjectImp.

Definition at line 51 of file point_imp.cc.

int PointImp::numberOfProperties (  )  const [virtual]

Reimplemented from ObjectImp.

Definition at line 57 of file point_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 72 of file point_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 62 of file point_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 103 of file point_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 89 of file point_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 82 of file point_imp.cc.

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

Reimplemented from ObjectImp.

Definition at line 181 of file point_imp.cc.

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

Return this ObjectImp, transformed by the transformation t.

Implements ObjectImp.

Definition at line 126 of file point_imp.cc.

PointImp * PointImp::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 ObjectImp.

Definition at line 121 of file point_imp.cc.

const ObjectImpType * PointImp::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.

Reimplemented in BogusPointImp.

Definition at line 176 of file point_imp.cc.

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

Implements ObjectImp.

Definition at line 143 of file point_imp.cc.

void PointImp::fillInNextEscape ( QString &  s,
const KigDocument &  doc 
) const [virtual]

Reimplemented from ObjectImp.

Definition at line 138 of file point_imp.cc.

bool PointImp::canFillInNextEscape (  )  const [virtual]

Reimplemented from ObjectImp.

Definition at line 154 of file point_imp.cc.

bool PointImp::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 148 of file point_imp.cc.


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