PointerDefinitions.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5
*
6
* ArmarX is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
9
*
10
* ArmarX is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*
18
* @package MemoryX::gui-plugins::SceneEditor
19
* @date 2015
20
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
21
* GNU General Public License
22
*/
23
24
#pragma once
25
26
#include "
SceneObject.h
"
27
28
#include <boost/smart_ptr/intrusive_ptr.hpp>
29
30
#include <iostream>
31
#include <memory>
32
33
namespace
scene3D
34
{
35
class
Scene;
36
using
ScenePtr
= std::shared_ptr<Scene>;
37
using
SceneWeakPtr
= std::weak_ptr<Scene>;
38
39
class
SceneObject
;
40
using
SceneObjectPtr
= boost::intrusive_ptr<SceneObject>;
41
42
inline
void
intrusive_ptr_add_ref
(
scene3D::SceneObject
* obj)
43
{
44
obj->ref();
45
}
46
47
inline
void
intrusive_ptr_release
(
scene3D::SceneObject
* obj)
48
{
49
obj->unref();
50
}
51
52
class
SceneGroup;
53
using
SceneGroupPtr
= std::shared_ptr<SceneGroup>;
54
55
class
SceneObjectManager
;
56
using
SceneObjectManagerPtr
= std::shared_ptr<SceneObjectManager>;
57
58
class
SceneGroupManager
;
59
using
SceneGroupManagerPtr
= std::shared_ptr<SceneGroupManager>;
60
61
class
SceneSelectionManager
;
62
using
SceneSelectionManagerPtr
= std::shared_ptr<SceneSelectionManager>;
63
64
class
SceneManipulatorManager
;
65
using
SceneManipulatorManagerPtr
= std::shared_ptr<SceneManipulatorManager>;
66
67
class
PreviewGenerator
;
68
using
PreviewGeneratorPtr
= std::shared_ptr<PreviewGenerator>;
69
}
70
71
scene3D::SceneSelectionManagerPtr
std::shared_ptr< SceneSelectionManager > SceneSelectionManagerPtr
Definition:
PointerDefinitions.h:62
scene3D::intrusive_ptr_release
void intrusive_ptr_release(scene3D::SceneObject *obj)
Definition:
PointerDefinitions.h:47
scene3D::PreviewGeneratorPtr
std::shared_ptr< PreviewGenerator > PreviewGeneratorPtr
Definition:
PointerDefinitions.h:68
scene3D::ScenePtr
std::shared_ptr< Scene > ScenePtr
Definition:
PointerDefinitions.h:36
scene3D::SceneObject
Definition:
SceneObject.h:43
scene3D::SceneManipulatorManagerPtr
std::shared_ptr< SceneManipulatorManager > SceneManipulatorManagerPtr
Definition:
PointerDefinitions.h:65
scene3D::SceneGroupManager
Definition:
SceneGroupManager.h:34
scene3D::PreviewGenerator
Definition:
PreviewGenerator.h:34
scene3D::intrusive_ptr_add_ref
void intrusive_ptr_add_ref(scene3D::SceneObject *obj)
Definition:
PointerDefinitions.h:42
SceneObject.h
scene3D
Definition:
ManipulatorMode.h:26
scene3D::SceneGroupPtr
std::shared_ptr< SceneGroup > SceneGroupPtr
Definition:
PointerDefinitions.h:53
scene3D::SceneObjectManagerPtr
std::shared_ptr< SceneObjectManager > SceneObjectManagerPtr
Definition:
PointerDefinitions.h:56
scene3D::SceneObjectManager
Definition:
SceneObjectManager.h:34
scene3D::SceneWeakPtr
std::weak_ptr< Scene > SceneWeakPtr
Definition:
PointerDefinitions.h:37
scene3D::SceneObjectPtr
boost::intrusive_ptr< SceneObject > SceneObjectPtr
Definition:
PointerDefinitions.h:40
scene3D::SceneGroupManagerPtr
std::shared_ptr< SceneGroupManager > SceneGroupManagerPtr
Definition:
PointerDefinitions.h:59
scene3D::SceneManipulatorManager
Definition:
SceneManipulatorManager.h:34
scene3D::SceneSelectionManager
Definition:
SceneSelectionManager.h:37
MemoryX
gui-plugins
SceneEditor
scene3D
PointerDefinitions.h
Generated on Sat Oct 12 2024 09:14:05 for armarx_documentation by
1.8.17