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

kig

Public Types | Public Member Functions | Static Public Member Functions | List of all members
PointImp Class Reference

#include <point_imp.h>

Inheritance diagram for PointImp:
Inheritance graph
[legend]

Public Types

typedef ObjectImp Parent
 

Public Member Functions

 PointImp (const Coordinate &c)
 
 ~PointImp ()
 
Coordinate attachPoint () const
 
bool canFillInNextEscape () const
 
bool contains (const Coordinate &p, int width, const KigWidget &) const
 
const Coordinate & coordinate () const
 
PointImp * copy () const
 
void draw (KigPainter &p) const
 
bool equals (const ObjectImp &rhs) const
 
void fillInNextEscape (QString &s, const KigDocument &) const
 
const char * iconForProperty (int which) const
 
const ObjectImpType * impRequirementForProperty (int which) const
 
bool inRect (const Rect &r, int width, const KigWidget &) 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
 
void setCoordinate (const Coordinate &c)
 
Rect surroundingRect () const
 
ObjectImp * transform (const Transformation &) const
 
const ObjectImpType * type () const
 
void visit (ObjectImpVisitor *vtor) const
 
- Public Member Functions inherited from ObjectImp
virtual ~ObjectImp ()
 
int getPropGid (const char *pname) const
 
int getPropLid (int propgid) const
 
const char * getPropName (int propgid) const
 
bool inherits (const ObjectImpType *t) const
 
virtual bool isCache () const
 
bool valid () const
 

Static Public Member Functions

static const ObjectImpType * stype ()
 
- Static Public Member Functions inherited from ObjectImp
static const ObjectImpType * stype ()
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectImp
 ObjectImp ()
 

Detailed Description

An ObjectImp representing a point.

Definition at line 27 of file point_imp.h.

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

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.

bool PointImp::canFillInNextEscape ( ) const
virtual

Reimplemented from ObjectImp.

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

const Coordinate& PointImp::coordinate ( ) const
inline

Get the coordinate of this PointImp.

Definition at line 50 of file point_imp.h.

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.

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

Implements ObjectImp.

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

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

Implements ObjectImp.

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

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::inRect ( const Rect &  r,
int  width,
const KigWidget &  w 
) const
virtual

Implements ObjectImp.

Definition at line 51 of file point_imp.cc.

bool PointImp::isPropertyDefinedOnOrThroughThisImp ( int  which) const
virtual

Reimplemented from ObjectImp.

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

void PointImp::setCoordinate ( const Coordinate &  c)

Set the coordinate of this PointImp.

Definition at line 133 of file point_imp.cc.

const ObjectImpType * PointImp::stype ( )
static

Returns the ObjectImpType representing PointImp's.

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.

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.

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.


The documentation for this class was generated from the following files:
  • point_imp.h
  • point_imp.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 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