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

step/stepcore

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

#include <tool.h>

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

Public Member Functions

 Meter (Vector2d position=Vector2d::Zero(), Vector2d size=Vector2d(70, 24))
 
int digits () const
 
int index () const
 
bool isValid () const
 
Object * object () const
 
const Vector2d & position () const
 
QString property () const
 
const MetaProperty * propertyPtr () const
 
void setDigits (int digits)
 
void setIndex (int index)
 
void setObject (Object *object)
 
void setPosition (const Vector2d &position)
 
void setProperty (const QString &property)
 
void setSize (const Vector2d &size)
 
virtual void setValue (double)
 
const Vector2d & size () const
 
QString units () const
 
double value () const
 
double value (bool *ok) 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

int _digits
 
int _index
 
Object * _object
 
Vector2d _position
 
QString _property
 
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

Meter to observe properties of other objects.

Actual displaying of the Meter and its user interaction should be implemented by application

Definition at line 278 of file tool.h.

Constructor & Destructor Documentation

StepCore::Meter::Meter ( Vector2d  position = Vector2d::Zero(),
Vector2d  size = Vector2d(70,24) 
)
explicit

Constructs Meter.

Definition at line 244 of file tool.cc.

Member Function Documentation

int StepCore::Meter::digits ( ) const
inline

Get display digits.

Definition at line 312 of file tool.h.

int StepCore::Meter::index ( ) const
inline

Get vector index of the observed property.

Definition at line 307 of file tool.h.

bool StepCore::Meter::isValid ( ) const

Returns true if observed property is valid.

Definition at line 251 of file tool.cc.

Object* StepCore::Meter::object ( ) const
inline

Get pointer to the observed object.

Definition at line 297 of file tool.h.

const Vector2d& StepCore::Meter::position ( ) const
inline

Get position of the meter.

Definition at line 287 of file tool.h.

QString StepCore::Meter::property ( ) const
inline

Get name of the observed property.

Definition at line 302 of file tool.h.

const MetaProperty* StepCore::Meter::propertyPtr ( ) const
inline

Get pointer to the observed property.

Definition at line 320 of file tool.h.

void StepCore::Meter::setDigits ( int  digits)
inline

Set display digits.

Definition at line 314 of file tool.h.

void StepCore::Meter::setIndex ( int  index)
inline

Set vector index of the observed property.

Definition at line 309 of file tool.h.

void StepCore::Meter::setObject ( Object *  object)
inline

Set pointer to the observed object.

Definition at line 299 of file tool.h.

void StepCore::Meter::setPosition ( const Vector2d &  position)
inline

Set position of the meter.

Definition at line 289 of file tool.h.

void StepCore::Meter::setProperty ( const QString &  property)
inline

Set name of the observed property.

Definition at line 304 of file tool.h.

void StepCore::Meter::setSize ( const Vector2d &  size)
inline

Set size of the meter.

Definition at line 294 of file tool.h.

virtual void StepCore::Meter::setValue ( double  )
inlinevirtual

Set value of the controlled property.

Definition at line 328 of file tool.h.

const Vector2d& StepCore::Meter::size ( ) const
inline

Get size of the meter.

Definition at line 292 of file tool.h.

QString StepCore::Meter::units ( ) const

Return units of measured property.

Definition at line 276 of file tool.cc.

double StepCore::Meter::value ( ) const
inline

Get value of the observed property.

Definition at line 325 of file tool.h.

double StepCore::Meter::value ( bool *  ok) const

Get value of the observed property.

Parameters
okWill indicate success of operation (if not null)

Definition at line 259 of file tool.cc.

Member Data Documentation

int StepCore::Meter::_digits
protected

Definition at line 348 of file tool.h.

int StepCore::Meter::_index
protected

Definition at line 346 of file tool.h.

Object* StepCore::Meter::_object
protected

Definition at line 344 of file tool.h.

Vector2d StepCore::Meter::_position
protected

Definition at line 341 of file tool.h.

QString StepCore::Meter::_property
protected

Definition at line 345 of file tool.h.

Vector2d StepCore::Meter::_size
protected

Definition at line 342 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