VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtElementIDHierarchyState.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtElementIDHierarchyAttributes.h,v $ $Revision: 1.2 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvCore/vrvCore.h
>
15
#include <
vrvCore/DtUniqueID.h
>
16
#include <
vrvCore/DtElementAttributes.h
>
17
18
namespace
makVrv
19
{
23
class
DT_DLL_VRVCORE
DtElementIDHierarchyState
24
{
25
public
:
26
typedef
std::vector<DtElementID>
ElementIDVector
;
27
28
public
:
30
DtElementIDHierarchyState
();
31
33
DtElementIDHierarchyState
(
const
DtElementIDHierarchyState
& orig);
34
35
DtElementIDHierarchyState
& operator=(
const
DtElementIDHierarchyState
& rhs);
36
37
void
setFlags(
int
flags);
38
int
flags()
const
;
39
40
void
addChild(
DtElementID
id
);
41
42
void
removeChild(
DtElementID
id
);
43
44
const
ElementIDVector
& children()
const
;
45
46
void
setParentId(
DtElementID
id
);
47
DtElementID
parentId()
const
;
48
49
protected
:
50
DtElementID
myParentId
;
51
ElementIDVector
myChildren
;
52
int
myFlags
;
53
};
54
55
AddTypeId
(
DtElementIDHierarchyState
, 2424);
56
57
typedef
DtUniqueElementAttribute
<
DtElementIDHierarchyState
,
58
DtElementAttributes::ElementIDHierarchyStateAttribute
>
59
DtElementIDHierarchyStateAttribute
;
60
#ifndef _WIN32
61
template
class
DtUniqueElementAttribute
<
DtElementIDHierarchyState
,
62
DtElementAttributes::ElementIDHierarchyStateAttribute
>;
63
#endif
64
69
class
DT_DLL_VRVCORE
DtElementIDHierarchyDisplayState
70
{
71
public
:
72
enum
DisplayState
73
{
74
Expand = 1,
75
Collapse = 2,
76
ExpandAll = 3,
77
CollapseAll = 4
78
};
79
};
80
81
typedef
DtUniqueElementAttribute<int,
82
DtElementAttributes::ElementIDHierarchyDisplayStateAttribute
>
83
DtElementIDHierarchyDisplayStateAttribute
;
84
#ifndef _WIN32
85
template
class
DtUniqueElementAttribute
<int,
86
DtElementAttributes::ElementIDHierarchyDisplayStateAttribute
>;
87
#endif
88
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)