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

kig

Public Member Functions | List of all members
CoordinateSystem Class Referenceabstract

#include <coordinate_system.h>

Inheritance diagram for CoordinateSystem:
Inheritance graph
[legend]

Public Member Functions

 CoordinateSystem ()
 
virtual ~CoordinateSystem ()
 
virtual QString coordinateFormatNotice () const =0
 
virtual QString coordinateFormatNoticeMarkup () const =0
 
virtual QValidator * coordinateValidator () const =0
 
virtual void drawGrid (KigPainter &p, bool showgrid=true, bool showaxes=true) const =0
 
virtual QString fromScreen (const Coordinate &pt, const KigDocument &w) const =0
 
virtual int id () const =0
 
virtual Coordinate snapToGrid (const Coordinate &c, const KigWidget &w) const =0
 
virtual Coordinate toScreen (const QString &pt, bool &ok) const =0
 
virtual const char * type () const =0
 

Detailed Description

a CoordinateSystem is what the user sees: it is kept by KigPart to show the user a grid, and to show the coordinates of points...

it allows for weird CoordinateSystem's like homogeneous or projective... internally, it does nothing, it could almost have been an ordinary Object..., mapping coordinates from and to the screen to and from the internal coordinates is done elsewhere ( KigPainter and KigWidget... )

Definition at line 60 of file coordinate_system.h.

Constructor & Destructor Documentation

CoordinateSystem::CoordinateSystem ( )

Definition at line 343 of file coordinate_system.cpp.

CoordinateSystem::~CoordinateSystem ( )
virtual

Definition at line 339 of file coordinate_system.cpp.

Member Function Documentation

virtual QString CoordinateSystem::coordinateFormatNotice ( ) const
pure virtual

This returns a notice to say in which format coordinates should be entered.

This should be something like: i18n( "Enter coordinates in the following form: \"(x,y)", where x is the x coordinate, and y is the y coordinate." );

Implemented in PolarCoords, and EuclideanCoords.

virtual QString CoordinateSystem::coordinateFormatNoticeMarkup ( ) const
pure virtual

Like coordinateFormatNotice(), but with HTML tags useful to have a rich text...

Implemented in PolarCoords, and EuclideanCoords.

virtual QValidator* CoordinateSystem::coordinateValidator ( ) const
pure virtual

Implemented in PolarCoords, and EuclideanCoords.

virtual void CoordinateSystem::drawGrid ( KigPainter &  p,
bool  showgrid = true,
bool  showaxes = true 
) const
pure virtual

Implemented in PolarCoords, and EuclideanCoords.

virtual QString CoordinateSystem::fromScreen ( const Coordinate &  pt,
const KigDocument &  w 
) const
pure virtual

Implemented in PolarCoords, and EuclideanCoords.

virtual int CoordinateSystem::id ( ) const
pure virtual

Implemented in PolarCoords, and EuclideanCoords.

virtual Coordinate CoordinateSystem::snapToGrid ( const Coordinate &  c,
const KigWidget &  w 
) const
pure virtual

Implemented in PolarCoords, and EuclideanCoords.

virtual Coordinate CoordinateSystem::toScreen ( const QString &  pt,
bool &  ok 
) const
pure virtual

Implemented in PolarCoords, and EuclideanCoords.

virtual const char* CoordinateSystem::type ( ) const
pure virtual

Implemented in PolarCoords, and EuclideanCoords.


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