SurgSim
Graphics
AxesRepresentation.h
Go to the documentation of this file.
1
// This file is a part of the OpenSurgSim project.
2
// Copyright 2013, SimQuest Solutions Inc.
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
16
#ifndef SURGSIM_GRAPHICS_AXESREPRESENTATION_H
17
#define SURGSIM_GRAPHICS_AXESREPRESENTATION_H
18
19
#include "
SurgSim/Graphics/Representation.h
"
20
21
namespace
SurgSim
22
{
23
namespace
Graphics
24
{
25
28
class
AxesRepresentation
:
public
virtual
Representation
29
{
30
public
:
31
33
explicit
AxesRepresentation
(
const
std::string
& name) :
Representation
(name)
34
{
35
SURGSIM_ADD_SERIALIZABLE_PROPERTY
(
AxesRepresentation
,
double
, Size,
getSize
,
setSize
);
36
};
37
40
virtual
void
setSize
(
double
val) = 0;
41
44
virtual
double
getSize
() = 0;
45
private
:
46
47
};
48
49
};
// Graphics
50
};
// SurgSim
51
52
#endif
SurgSim::Graphics::AxesRepresentation::getSize
virtual double getSize()=0
Gets the current size.
SurgSim::Graphics::AxesRepresentation::setSize
virtual void setSize(double val)=0
Sets the size of the shown axes.
Representation.h
SURGSIM_ADD_SERIALIZABLE_PROPERTY
#define SURGSIM_ADD_SERIALIZABLE_PROPERTY(class, type, property, getter, setter)
A macro to register a serializable property, this needs to support reading, writing and all the conve...
Definition:
Accessible.h:225
SurgSim
Definition:
CompoundShapeToGraphics.cpp:29
SurgSim::Graphics::AxesRepresentation
Displays the coordinate axes, as three lines from the origin default size is 1.0, the X/Y/Z axis are ...
Definition:
AxesRepresentation.h:28
SurgSim::Graphics::AxesRepresentation::AxesRepresentation
AxesRepresentation(const std::string &name)
Constructor.
Definition:
AxesRepresentation.h:33
SurgSim::Graphics::Representation
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition:
Representation.h:39
string
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition:
CMakeLists.txt:38
Generated on Tue Jun 2 2020 12:47:05 for OpenSurgSim by
1.8.17