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

step/stepcore

  • StepCore
  • Graph
Public Member Functions | Protected Attributes | List of all members
StepCore::Graph Class Reference
Various tools

#include <tool.h>

Inheritance diagram for StepCore::Graph:
Inheritance graph
[legend]

Public Member Functions

 Graph (Vector2d position=Vector2d::Zero(), Vector2d size=Vector2d(400, 300))
 
bool autoLimitsX () const
 
bool autoLimitsY () const
 
void clearPoints ()
 
Vector2d currentValue () const
 
Vector2d currentValue (bool *ok) const
 
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
 
- Public Member Functions inherited from StepCore::Item
 Item (const QString &name=QString())
 
 Item (const Item &item)
 
virtual ~Item ()
 
Color color () const
 
void deleteObjectErrors ()
 
ItemGroup * group () const
 
ObjectErrors * objectErrors ()
 
Item & operator= (const Item &item)
 
void setColor (Color color)
 
virtual void setGroup (ItemGroup *group)
 
virtual void setWorld (World *world)
 
ObjectErrors * tryGetObjectErrors () const
 
World * world () const
 
virtual void worldItemRemoved (Item *item STEPCORE_UNUSED)
 
- Public Member Functions inherited from StepCore::Object
 Object (const QString &name=QString())
 
virtual ~Object ()
 
const QString & name () const
 
void setName (const QString &name)
 
- Public Member Functions inherited from StepCore::Tool
virtual ~Tool ()
 

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
 
- Protected Attributes inherited from StepCore::Object
QString _name
 

Additional Inherited Members

- Protected Member Functions inherited from StepCore::Item
virtual ObjectErrors * createObjectErrors ()
 

Detailed Description

Graph item.

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

Definition at line 125 of file tool.h.

Constructor & Destructor Documentation

StepCore::Graph::Graph ( Vector2d  position = Vector2d::Zero(),
Vector2d  size = Vector2d(400,300) 
)
explicit

Constructs Graph.

Definition at line 148 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 ( ) const
inline

Get current point value.

Definition at line 226 of file tool.h.

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

Get current point value.

Parameters
okWill indicate success of operation (if not null)

Definition at line 174 of file tool.cc.

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 158 of file tool.cc.

bool StepCore::Graph::isValidY ( ) const

Returns true if Y-axis data source is valid.

Definition at line 166 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
okWill indicate success of operation (if not null)

Definition at line 193 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 228 of file tool.cc.

QString StepCore::Graph::unitsY ( ) const

Return units of propertyY.

Definition at line 236 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

step/stepcore

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

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