Developer Documentation

Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ruler Class Reference
Inheritance diagram for Ruler:

## Public Slots
void | setTextSize (const unsigned _size)

## Signals
void | updateView ()

## Public Member Functions
| Ruler (BaseObjectData *_obj, const QString &_pluginName, unsigned _index)
void | setPoints (const ACG::Vec3d &_start, const ACG::Vec3d &_end)
void | setStartPoint (const ACG::Vec3d &_start)
void | setEndPoint (const ACG::Vec3d &_end)
void | setTextOffset (const ACG::Vec3d &offset)
const ACG::Vec3d * | points () const
const BaseObject * | getBaseObj ()
float | textScale ()

## Private Member Functions
void | updateNodes ()

## Private Attributes
const QString | pluginName_
const std::string | lineNodeName_
const std::string | textNodeName_
const std::string | textTransformNodeName_
ACG::SceneGraph::LineNode * | lineNode_
ACG::SceneGraph::TextNode * | textNode_
ACG::SceneGraph::TransformNode * | textTransformNode_
ACG::Vec3d | points_ [2]
ACG::Vec3d | offset_
BaseObjectData * | obj_

## Detailed Description

Definition at line 52 of file Ruler.hh.

## Constructor & Destructor Documentation

## ◆ Ruler()

Ruler::Ruler | ( | BaseObjectData * | _obj,
|  | const QString & | _pluginName,
|  | unsigned | _index
| ) |  |

creates a new ruler on a given object

Parameters

  _obj | Object where additional nodes are added
  _pluginName | name of the plugin
  _index | the current index of the ruler. If you create multiple rulers, you can use this parameter to avoid identical nodenames

Definition at line 50 of file Ruler.cc.

The documentation for this class was generated from the following files:

- Plugin-Ruler/Ruler.hh
- Plugin-Ruler/Ruler.cc