MEPP2 Project
Visualization
Helpers
DataStructures.h
Go to the documentation of this file.
1
// Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2
// All rights reserved.
3
//
4
// This file is part of MEPP2; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published
6
// by the Free Software Foundation; either version 3 of the License,
7
// or (at your option) any later version.
8
//
9
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11
#pragma once
12
13
#include <QMetaType>
14
#include "
Base/Color.hpp
"
15
#include "
Visualization/BaseViewerOSG.h
"
16
#include <osg/Node>
17
18
19
namespace
FEVV
{
20
21
class
BaseViewerOSG;
22
23
namespace
Helpers {
24
25
enum class
DataType
: unsigned char { MODEL = 1, GROUP = 2,
DEBUG_OBJECT
= 3 };
26
27
template
<
typename
NodeType >
28
struct
Model
29
{
30
NodeType *
node
;
31
std::string
name
;
32
DataType
type
;
33
unsigned
int
position
;
34
BaseViewerOSG
*
viewer
;
35
};
36
37
}
// namespace Helpers
38
39
}
// namespace FEVV
40
41
Q_DECLARE_METATYPE(
FEVV::Helpers::Model< osg::Node >
)
BaseViewerOSG.h
FEVV::Helpers::Model
Definition:
DataStructures.h:29
FEVV::Helpers::Model::position
unsigned int position
Definition:
DataStructures.h:33
FEVV::BaseViewerOSG
Definition:
BaseViewerOSG.h:47
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition:
Assert.h:16
FEVV::Helpers::Model::type
DataType type
Definition:
DataStructures.h:32
FEVV::Helpers::Model::name
std::string name
Definition:
DataStructures.h:31
FEVV::Helpers::DataType::MODEL
@ MODEL
Color.hpp
FEVV::Helpers::Model::node
NodeType * node
Definition:
DataStructures.h:30
FEVV::Helpers::Model::viewer
BaseViewerOSG * viewer
Definition:
DataStructures.h:34
FEVV::Helpers::DataType
DataType
Definition:
DataStructures.h:25
Generated by
1.8.20