/
ManipulatorBase.h
40 lines (32 loc) · 970 Bytes
/
ManipulatorBase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "iselection.h"
#include "render/Colour4b.h"
namespace selection
{
/**
* A Manipulator is a renderable object which contains one or more
* ManipulatorComponents, each of which can be manipulated by the user. For
* example, the rotation Manipulator draws several circles which cause rotations
* around specific axes.
*/
class ManipulatorBase :
public Manipulator
{
public:
virtual ~ManipulatorBase() {}
// By default, manipulators can operate on components too (Clipper can't)
virtual bool supportsComponentManipulation() const override
{
return true;
}
// No visual representation by default
virtual void render(RenderableCollector& collector, const VolumeTest& volume) override
{}
public:
/* Static colours */
static const Colour4b& COLOUR_SCREEN();
static const Colour4b& COLOUR_SPHERE();
static const Colour4b& COLOUR_SELECTED();
};
}
const Colour4b& colourSelected(const Colour4b& colour, bool selected);