Choreonoid
1.8
src
Base
DisplayedValueFormatManager.h
Go to the documentation of this file.
1
#ifndef CNOID_BASE_DISPLAYED_VALUE_FORMAT_MANAGER_H
2
#define CNOID_BASE_DISPLAYED_VALUE_FORMAT_MANAGER_H
3
4
#include <cnoid/Signal>
5
#include "exportdecl.h"
6
7
namespace
cnoid
{
8
9
class
CNOID_EXPORT
DisplayedValueFormatManager
10
{
11
public
:
12
static
DisplayedValueFormatManager
* instance();
13
14
DisplayedValueFormatManager
(
const
DisplayedValueFormatManager
& org) =
delete
;
15
16
enum
LengthUnit
{ Meter, Millimeter };
17
int
lengthUnit()
const
;
18
void
setLengthUnit(
int
unitType);
19
int
lengthDecimals()
const
;
20
void
setLengthDecimals(
int
decimals);
21
double
lengthStep()
const
;
22
void
setLengthStep(
double
step);
23
24
enum
AngleUnit
{
Radian
, Degree };
25
int
angleUnit()
const
;
26
void
setAngleUnit(
int
unitType);
27
int
angleDecimals()
const
;
28
void
setAngleDecimals(
int
decimals);
29
double
angleStep()
const
;
30
void
setAngleStep(
double
step);
31
32
void
notifyFormatChange();
33
SignalProxy
<void()> sigFormatChanged();
34
35
void
restoreConfiguration();
36
37
private
:
38
DisplayedValueFormatManager
();
39
~
DisplayedValueFormatManager
();
40
41
class
Impl;
42
Impl* impl;
43
};
44
45
}
46
47
#endif
cnoid::DisplayedValueFormatManager::LengthUnit
LengthUnit
Definition:
DisplayedValueFormatManager.h:16
cnoid::DisplayedValueFormatManager
Definition:
DisplayedValueFormatManager.h:9
cnoid::DisplayedValueFormatManager::AngleUnit
AngleUnit
Definition:
DisplayedValueFormatManager.h:24
cnoid
Definition:
AbstractSceneLoader.h:11
cnoid::DisplayedValueFormatManager::Radian
@ Radian
Definition:
DisplayedValueFormatManager.h:24
cnoid::SignalProxy
Definition:
Signal.h:470
Generated by
1.8.17