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

step/stepcore

StepCore::Graph

StepCore::Graph Class Reference
[Various tools]

#include <tool.h>

Inheritance diagram for StepCore::Graph:

Inheritance graph
[legend]

List of all members.


Detailed Description

Graph item.

Actual updating and displaying of the Graph should be implemented by application

Definition at line 125 of file tool.h.


Public Member Functions

bool autoLimitsX () const
bool autoLimitsY () const
void clearPoints ()
Vector2d currentValue (bool *ok) const
Vector2d currentValue () const
 Graph (Vector2d position=Vector2d(0), Vector2d size=Vector2d(400, 300))
int indexX () const
int indexY () const
bool isValid () const
bool isValidX () const
bool isValidY () const
const Vector2d & limitsX () const
const Vector2d & limitsY () const
Object * objectX () const
Object * objectY () const
const Vector2dList & points () const
const Vector2d & position () const
QString propertyX () const
const MetaProperty * propertyXPtr () const
QString propertyY () const
const MetaProperty * propertyYPtr () const
Vector2d recordPoint (bool *ok=0)
void setAutoLimitsX (bool autoLimitsX)
void setAutoLimitsY (bool autoLimitsY)
void setIndexX (int indexX)
void setIndexY (int indexY)
void setLimitsX (const Vector2d &limitsX)
void setLimitsY (const Vector2d &limitsY)
void setObjectX (Object *objectX)
void setObjectY (Object *objectY)
void setPoints (const Vector2dList &points)
void setPosition (const Vector2d &position)
void setPropertyX (const QString &propertyX)
void setPropertyY (const QString &propertyY)
void setShowLines (bool showLines)
void setShowPoints (bool showPoints)
void setSize (const Vector2d &size)
bool showLines () const
bool showPoints () const
const Vector2d & size () const
QString unitsX () const
QString unitsY () const

Protected Attributes

bool _autoLimitsX
bool _autoLimitsY
int _indexX
int _indexY
Vector2d _limitsX
Vector2d _limitsY
Object * _objectX
Object * _objectY
Vector2dList _points
Vector2d _position
QString _propertyX
QString _propertyY
bool _showLines
bool _showPoints
Vector2d _size

Constructor & Destructor Documentation

StepCore::Graph::Graph ( Vector2d  position = Vector2d(0),
Vector2d  size = Vector2d(400,300) 
) [explicit]

Constructs Graph.

Definition at line 147 of file tool.cc.


Member Function Documentation

bool StepCore::Graph::autoLimitsX (  )  const [inline]

Get auto-limits for X axis.

Definition at line 174 of file tool.h.

bool StepCore::Graph::autoLimitsY (  )  const [inline]

Get auto-limits for Y axis.

Definition at line 179 of file tool.h.

void StepCore::Graph::clearPoints (  )  [inline]

Clear points list.

Definition at line 237 of file tool.h.

Vector2d StepCore::Graph::currentValue ( bool *  ok  )  const

Get current point value.

Parameters:
ok Will indicate success of operation (if not null)

Definition at line 173 of file tool.cc.

Vector2d StepCore::Graph::currentValue (  )  const [inline]

Get current point value.

Definition at line 226 of file tool.h.

int StepCore::Graph::indexX (  )  const [inline]

Get vector index for the X axis.

Definition at line 154 of file tool.h.

int StepCore::Graph::indexY (  )  const [inline]

Get vector index for the Y axis.

Definition at line 169 of file tool.h.

bool StepCore::Graph::isValid (  )  const [inline]

Returns true if X- and Y-axis data source is valid.

Definition at line 223 of file tool.h.

bool StepCore::Graph::isValidX (  )  const

Returns true if X-axis data source is valid.

Definition at line 157 of file tool.cc.

bool StepCore::Graph::isValidY (  )  const

Returns true if Y-axis data source is valid.

Definition at line 165 of file tool.cc.

const Vector2d& StepCore::Graph::limitsX (  )  const [inline]

Get limits for X axis.

Definition at line 184 of file tool.h.

const Vector2d& StepCore::Graph::limitsY (  )  const [inline]

Get limits for Y axis.

Definition at line 189 of file tool.h.

Object* StepCore::Graph::objectX (  )  const [inline]

Get pointer to the objects for X axis.

Definition at line 144 of file tool.h.

Object* StepCore::Graph::objectY (  )  const [inline]

Get pointer to the objects for Y axis.

Definition at line 159 of file tool.h.

const Vector2dList& StepCore::Graph::points (  )  const [inline]

Get points list.

Definition at line 204 of file tool.h.

const Vector2d& StepCore::Graph::position (  )  const [inline]

Get position of the graph.

Definition at line 134 of file tool.h.

QString StepCore::Graph::propertyX (  )  const [inline]

Get name of the property for X axis.

Definition at line 149 of file tool.h.

const MetaProperty* StepCore::Graph::propertyXPtr (  )  const [inline]

Get pointer to the property for X axis (or zero if not defined).

Definition at line 209 of file tool.h.

QString StepCore::Graph::propertyY (  )  const [inline]

Get name of the property for Y axis.

Definition at line 164 of file tool.h.

const MetaProperty* StepCore::Graph::propertyYPtr (  )  const [inline]

Get pointer to the property for Y axis (or zero if not defined).

Definition at line 214 of file tool.h.

Vector2d StepCore::Graph::recordPoint ( bool *  ok = 0  ) 

Get current point value and add it to points list.

Parameters:
ok Will indicate success of operation (if not null)

Definition at line 192 of file tool.cc.

void StepCore::Graph::setAutoLimitsX ( bool  autoLimitsX  )  [inline]

Set auto-limits for X axis.

Definition at line 176 of file tool.h.

void StepCore::Graph::setAutoLimitsY ( bool  autoLimitsY  )  [inline]

Set auto-limits for Y axis.

Definition at line 181 of file tool.h.

void StepCore::Graph::setIndexX ( int  indexX  )  [inline]

Set vector index for the X axis.

Definition at line 156 of file tool.h.

void StepCore::Graph::setIndexY ( int  indexY  )  [inline]

Set vector index for the Y axis.

Definition at line 171 of file tool.h.

void StepCore::Graph::setLimitsX ( const Vector2d &  limitsX  )  [inline]

Set limits for X axis.

Definition at line 186 of file tool.h.

void StepCore::Graph::setLimitsY ( const Vector2d &  limitsY  )  [inline]

Set limits for Y axis.

Definition at line 191 of file tool.h.

void StepCore::Graph::setObjectX ( Object *  objectX  )  [inline]

Set pointer to the objects for X axis.

Definition at line 146 of file tool.h.

void StepCore::Graph::setObjectY ( Object *  objectY  )  [inline]

Set pointer to the objects for Y axis.

Definition at line 161 of file tool.h.

void StepCore::Graph::setPoints ( const Vector2dList &  points  )  [inline]

Set points list.

Definition at line 206 of file tool.h.

void StepCore::Graph::setPosition ( const Vector2d &  position  )  [inline]

Set position of the graph.

Definition at line 136 of file tool.h.

void StepCore::Graph::setPropertyX ( const QString &  propertyX  )  [inline]

Set name of the property for X axis.

Definition at line 151 of file tool.h.

void StepCore::Graph::setPropertyY ( const QString &  propertyY  )  [inline]

Set name of the property for Y axis.

Definition at line 166 of file tool.h.

void StepCore::Graph::setShowLines ( bool  showLines  )  [inline]

Set show-lines flag.

Definition at line 196 of file tool.h.

void StepCore::Graph::setShowPoints ( bool  showPoints  )  [inline]

Set show-points flag.

Definition at line 201 of file tool.h.

void StepCore::Graph::setSize ( const Vector2d &  size  )  [inline]

Set size of the graph.

Definition at line 141 of file tool.h.

bool StepCore::Graph::showLines (  )  const [inline]

Get show-lines flag.

Definition at line 194 of file tool.h.

bool StepCore::Graph::showPoints (  )  const [inline]

Get show-points flag.

Definition at line 199 of file tool.h.

const Vector2d& StepCore::Graph::size (  )  const [inline]

Get size of the graph.

Definition at line 139 of file tool.h.

QString StepCore::Graph::unitsX (  )  const

Return units of propertyX.

Definition at line 227 of file tool.cc.

QString StepCore::Graph::unitsY (  )  const

Return units of propertyY.

Definition at line 235 of file tool.cc.


Member Data Documentation

bool StepCore::Graph::_autoLimitsX [protected]

Definition at line 260 of file tool.h.

bool StepCore::Graph::_autoLimitsY [protected]

Definition at line 261 of file tool.h.

int StepCore::Graph::_indexX [protected]

Definition at line 254 of file tool.h.

int StepCore::Graph::_indexY [protected]

Definition at line 258 of file tool.h.

Vector2d StepCore::Graph::_limitsX [protected]

Definition at line 263 of file tool.h.

Vector2d StepCore::Graph::_limitsY [protected]

Definition at line 264 of file tool.h.

Object* StepCore::Graph::_objectX [protected]

Definition at line 252 of file tool.h.

Object* StepCore::Graph::_objectY [protected]

Definition at line 256 of file tool.h.

Vector2dList StepCore::Graph::_points [protected]

Definition at line 269 of file tool.h.

Vector2d StepCore::Graph::_position [protected]

Definition at line 249 of file tool.h.

QString StepCore::Graph::_propertyX [protected]

Definition at line 253 of file tool.h.

QString StepCore::Graph::_propertyY [protected]

Definition at line 257 of file tool.h.

bool StepCore::Graph::_showLines [protected]

Definition at line 266 of file tool.h.

bool StepCore::Graph::_showPoints [protected]

Definition at line 267 of file tool.h.

Vector2d StepCore::Graph::_size [protected]

Definition at line 250 of file tool.h.


The documentation for this class was generated from the following files:
  • tool.h
  • tool.cc

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

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