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

step/stepcore

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

#include <tool.h>

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

Public Member Functions

 Tracer (Object *body=0, const Vector2d &localPosition=Vector2d::Zero())
 
Object * body () const
 
void clearPoints ()
 
Vector2d localPosition () const
 
const Vector2dList & points () const
 
Vector2d position () const
 
Vector2d recordPoint ()
 
void setBody (Object *body)
 
void setLocalPosition (const Vector2d &localPosition)
 
void setPoints (const Vector2dList &points)
 
- 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

Object * _body
 
Vector2d _localPosition
 
Particle * _p
 
Vector2dList _points
 
RigidBody * _r
 
- Protected Attributes inherited from StepCore::Object
QString _name
 

Additional Inherited Members

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

Detailed Description

Traces position of the body.

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

Definition at line 461 of file tool.h.

Constructor & Destructor Documentation

StepCore::Tracer::Tracer ( Object *  body = 0,
const Vector2d &  localPosition = Vector2d::Zero() 
)
explicit

Constructs Spring.

Definition at line 376 of file tool.cc.

Member Function Documentation

Object* StepCore::Tracer::body ( ) const
inline

Get pointer to the first body.

Definition at line 470 of file tool.h.

void StepCore::Tracer::clearPoints ( )
inline

Clear points list.

Definition at line 493 of file tool.h.

Vector2d StepCore::Tracer::localPosition ( ) const
inline

Local position of the tracer on the body or in the world (if the tracer is not connected)

Definition at line 476 of file tool.h.

const Vector2dList& StepCore::Tracer::points ( ) const
inline

Get points list.

Definition at line 485 of file tool.h.

Vector2d StepCore::Tracer::position ( ) const

Position of the tracer.

Definition at line 403 of file tool.cc.

Vector2d StepCore::Tracer::recordPoint ( )
inline

Get current position value and add it to points list.

Definition at line 490 of file tool.h.

void StepCore::Tracer::setBody ( Object *  body)

Set pointer to the first connected body.

Definition at line 383 of file tool.cc.

void StepCore::Tracer::setLocalPosition ( const Vector2d &  localPosition)
inline

Set local position of the tracer on the body or in the world (if the tracer is not connected)

Definition at line 479 of file tool.h.

void StepCore::Tracer::setPoints ( const Vector2dList &  points)
inline

Set points list.

Definition at line 487 of file tool.h.

Member Data Documentation

Object* StepCore::Tracer::_body
protected

Definition at line 499 of file tool.h.

Vector2d StepCore::Tracer::_localPosition
protected

Definition at line 500 of file tool.h.

Particle* StepCore::Tracer::_p
protected

Definition at line 503 of file tool.h.

Vector2dList StepCore::Tracer::_points
protected

Definition at line 501 of file tool.h.

RigidBody* StepCore::Tracer::_r
protected

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