25 #ifndef STEPCORE_TOOL_H
26 #define STEPCORE_TOOL_H
32 #include <QStringList>
47 const QByteArray&
image = QByteArray())
70 const QByteArray&
image = QByteArray(),
71 const QString&
code = QString())
332 double value(
bool* ok)
const;
335 QString
units()
const;
425 double value(
bool* ok)
const;
432 QString
units()
const;
void setIndex(int index)
Set vector index of the controlled property.
bool isValid() const
Returns true if observed property is valid.
void setProperty(const QString &property)
Set name of the observed property.
void setSize(const Vector2d &size)
Set size of the note.
void setIncrement(double increment)
Set increment step.
int index() const
Get vector index of the observed property.
const Vector2d & size() const
Get size of the meter.
virtual void setValue(double)
Set value of the controlled property.
const Vector2dList & points() const
Get points list.
Controller(Vector2d position=Vector2d::Zero(), Vector2d size=Vector2d(200, 60))
Constructs Controller.
Type to and from string convertion helpers.
QString property() const
Get name of the observed property.
const Vector2d & limitsY() const
Get limits for Y axis.
bool showLines() const
Get show-lines flag.
void setValue(double value)
Set value of the controlled property.
void setDigits(int digits)
Set display digits.
Object * body() const
Get pointer to the first body.
void setIndex(int index)
Set vector index of the observed property.
Eigen::Vector2d Vector2d
Two-dimensional vector with double components.
Vector2d localPosition() const
Local position of the tracer on the body or in the world (if the tracer is not connected) ...
Root of the StepCore classes hierarchy.
void setDecreaseShortcut(const QString &decreaseShortcut)
Set GUI increase shortcut.
void setIncreaseShortcut(const QString &increaseShortcut)
Set GUI decrease shortcut.
const MetaProperty * propertyPtr() const
Get pointer to the controlled property.
int indexX() const
Get vector index for the X axis.
double value() const
Get value of the controlled property.
void setShowLines(bool showLines)
Set show-lines flag.
double value() const
Get value of the observed property.
const Vector2d & limitsX() const
Get limits for X axis.
void setPosition(const Vector2d &position)
Set position of the Controller.
void setSize(const Vector2d &size)
Set size of the graph.
const Vector2d & position() const
Get position of the Controller.
void setPosition(const Vector2d &position)
Set position of the meter.
void setPropertyY(const QString &propertyY)
Set name of the property for Y axis.
Object * object() const
Get pointer to the controlled object.
void setObjectX(Object *objectX)
Set pointer to the objects for X axis.
const Vector2d & size() const
Get size of the graph.
Meter(Vector2d position=Vector2d::Zero(), Vector2d size=Vector2d(70, 24))
Constructs Meter.
void setAutoLimitsX(bool autoLimitsX)
Set auto-limits for X axis.
int index() const
Get vector index of the controlled property.
void setProperty(const QString &property)
Set name of the controlled property.
Item, Body, Force and Tool interfaces, World class.
double increment() const
Get increment step.
void setPropertyX(const QString &propertyX)
Set name of the property for X axis.
void setBody(Object *body)
Set pointer to the first connected body.
Graph(Vector2d position=Vector2d::Zero(), Vector2d size=Vector2d(400, 300))
Constructs Graph.
bool isValidY() const
Returns true if Y-axis data source is valid.
Vector2d position() const
Position of the tracer.
const QByteArray & image() const
Get image data.
bool isValidX() const
Returns true if X-axis data source is valid.
void setPoints(const Vector2dList &points)
Set points list.
const QString & decreaseShortcut() const
Get GUI increase shortcut.
const Vector2d & size() const
Get size of the note.
QString _decreaseShortcut
void setIndexX(int indexX)
Set vector index for the X axis.
const MetaProperty * propertyYPtr() const
Get pointer to the property for Y axis (or zero if not defined)
int digits() const
Get display digits.
Traces position of the body.
The root class for any world items (bodies and forces)
Object * objectX() const
Get pointer to the objects for X axis.
void setAutoLimitsY(bool autoLimitsY)
Set auto-limits for Y axis.
int indexY() const
Get vector index for the Y axis.
void setLimitsY(const Vector2d &limitsY)
Set limits for Y axis.
const QString & increaseShortcut() const
Get GUI decrease shortcut.
QString propertyX() const
Get name of the property for X axis.
const QString & name() const
Returns name of the object.
bool isValid() const
Returns true if controlled property is valid.
Vector2d recordPoint(bool *ok=0)
Get current point value and add it to points list.
void setSize(const Vector2d &size)
Set size of the meter.
void setObjectY(Object *objectY)
Set pointer to the objects for Y axis.
const Vector2d & position() const
Get position of the note.
const Vector2d & position() const
Get position of the graph.
Groups several items together.
void setPosition(const Vector2d &position)
Set position of the note.
void setObject(Object *object)
Set pointer to the observed object.
const Vector2dList & points() const
Get points list.
const Vector2d & limits() const
Get GUI slider limits.
Vector2d recordPoint()
Get current position value and add it to points list.
Object * objectY() const
Get pointer to the objects for Y axis.
bool showPoints() const
Get show-points flag.
QString property() const
Get name of the controlled property.
void setObject(Object *object)
Set pointer to the controlled object.
NoteImage(const QString &name=QString(), const QByteArray &image=QByteArray())
Constructs NoteImage.
void setShowPoints(bool showPoints)
Set show-points flag.
bool autoLimitsX() const
Get auto-limits for X axis.
void setText(const QString &text)
Set note text.
Vector2d currentValue() const
Get current point value.
Controller item to control properties of other objects.
Object * object() const
Get pointer to the observed object.
const MetaProperty * propertyPtr() const
Get pointer to the observed property.
const Vector2d & size() const
Get size of the Controller.
const QString & text() const
Get note text.
QString units() const
Return units of measured property.
void setPosition(const Vector2d &position)
Set position of the graph.
void clearPoints()
Clear points list.
void clearPoints()
Clear points list.
void setLimits(const Vector2d &limits)
Set GUI slider limits.
const Vector2d & position() const
Get position of the meter.
bool autoLimitsY() const
Get auto-limits for Y axis.
std::vector< Vector2d, Eigen::aligned_allocator< Vector2d > > Vector2dList
void setImage(const QByteArray &image)
Set image data.
QString propertyY() const
Get name of the property for Y axis.
Tracer(Object *body=0, const Vector2d &localPosition=Vector2d::Zero())
Constructs Spring.
void setPoints(const Vector2dList &points)
Set points list.
void setLimitsX(const Vector2d &limitsX)
Set limits for X axis.
#define STEPCORE_OBJECT(_className)
void setSize(const Vector2d &size)
Set size of the Controller.
QString _increaseShortcut
QString unitsX() const
Return units of propertyX.
bool isValid() const
Returns true if X- and Y-axis data source is valid.
QString units() const
Return units of measured property.
void setLocalPosition(const Vector2d &localPosition)
Set local position of the tracer on the body or in the world (if the tracer is not connected) ...
void setIndexY(int indexY)
Set vector index for the Y axis.
Note(Vector2d position=Vector2d::Zero(), Vector2d size=Vector2d(250, 100), QString text=QString())
Constructs Note.
Meter to observe properties of other objects.
QString unitsY() const
Return units of propertyY.
const MetaProperty * propertyXPtr() const
Get pointer to the property for X axis (or zero if not defined)