VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfExtObjects
3dGraphicalObjectLineStateRecord.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2010 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: 3dGraphicalObjectLineStateRecord.h,v $ $Revision: 1.1 $ $State: Exp $
7
*********************************************************************/
8
#ifndef Dt3dGraphicalObjectLineStateRecord_H_
9
#define Dt3dGraphicalObjectLineStateRecord_H_
10
11
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
12
#include <
vrfExtObjects/3dGraphicalObjectStateRecord.h
>
13
#include <
vrfExtObjects/3dLineSegmentDescriptor.h
>
14
15
struct
DtNet3DGraphicalObjectLineStateRecord
:
DtNet3DGraphicalObjectStateRecord
16
{
17
DtU8
myNumberOfLineSegments
;
18
DtNetBoolean
myCheckLos
;
19
};
20
21
class
DT_DLL_vrfExtObjects
Dt3DGraphicalObjectLineStateRecord
:
22
public
Dt3DGraphicalObjectStateRecord
23
{
24
public
:
26
Dt3DGraphicalObjectLineStateRecord
();
27
29
Dt3DGraphicalObjectLineStateRecord
(
30
const
Dt3DGraphicalObjectLineStateRecord
& orig);
31
33
const
Dt3DGraphicalObjectLineStateRecord
&
operator=
(
34
const
Dt3DGraphicalObjectLineStateRecord
& orig);
35
37
virtual
~
Dt3DGraphicalObjectLineStateRecord
();
38
40
virtual
DtEnvironmentalRecord
*
clone
()
const
;
41
42
virtual
bool
setNumberOfSegments(
int
newNumberOfSegments);
43
virtual
int
numberOfSegments()
const
;
44
45
virtual
bool
setSegment(
int
index,
const
DtLineSegmentDescriptor
& desc);
46
47
virtual
bool
getSegment(
int
index,
DtLineSegmentDescriptor
& desc)
const
;
48
49
virtual
void
setCheckLos(
bool
yesNo);
50
virtual
bool
checkLos()
const
;
51
53
virtual
bool
createNetworkRepresentation
();
54
56
virtual
void
setFromNet
(
const
DtNetEnvironmentalRecord& buffer);
57
59
const
DtNet3DGraphicalObjectLineStateRecord
* lineNetRep()
const
;
60
DtNet3DGraphicalObjectLineStateRecord
* lineNetRep();
61
63
virtual
int
netRepSize
()
const
;
64
65
protected
:
66
virtual
bool
resizeNetRep
(
int
newSize);
67
68
// These functions do the pointer math to get a pointer to
69
// the right place in the internal buffer for the start of these
70
// data areas.
71
virtual
void
* pointerToSegments()
const
;
72
virtual
void
*
pointerToApplicationIds
()
const
;
73
virtual
void
*
pointerToAttachmentList
()
const
;
74
virtual
void
*
pointerToAttachmentIdList
()
const
;
75
virtual
void
*
pointerToParentOverlays
()
const
;
76
virtual
void
*
pointerToLabel
()
const
;
77
virtual
void
*
pointerToUserData
()
const
;
78
79
80
81
protected
:
82
bool
myCheckLos
;
83
DtLineSegmentDescriptorList
mySegments
;
84
};
85
86
#endif
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
)