VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
addAttr
addAttrGui
DtEntityMass.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtEntityMass.h,v $ $Revision: 97901 $ $State: Exp $
7
******************************************************************************/
8
9
//\file DtEntityMass.h
10
//\brief Contains makVrf::DtEntityMass class.
11
//\ingroup addAttrGui
12
13
#pragma once
14
15
#include <
vrfGuiObjectInformationQt/entityInformationPageItems.h
>
16
#include <
vrfGuiCore/vrfVrlinkDataInterface.h
>
17
18
//Using the generic page item class, create a subclass to show the mass. This implementation
19
//will need to do a little more work than the base class in that the mass is stored in a
20
//different structure than the base entity state information. See DtEntityMass.cxx for more information
21
class
DtEntityMass
:
public
makVrf::makVrfGuiObjectInformationQt::DtEntityStatePageItem
22
{
23
public
:
24
DtEntityMass
(
makVrv::DtDe
& de)
25
:
DtEntityStatePageItem
(de)
26
{
27
}
28
29
DtEntityMass
(
makVrf::makVrfGuiObjectInformationQt::DtInformationDialogPageLogic
* l)
30
:
DtEntityStatePageItem
(l)
31
{
32
}
33
34
virtual
~DtEntityMass
();
35
36
static
std::string
creatorName
();
37
38
protected
:
39
//Called when the information dialog wants to show a value. Override to return the value of this information item
40
virtual
QString
value
(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
41
42
//Called when the information dialog wants to show the items title (column 0).
43
virtual
QString
title
(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
*);
44
45
protected
:
46
makVrf::DtVrfVrlinkDataInterfacePtr
myAdditionalState
;
47
};
48
49
//Creator used by information dialog manager to create information item.
50
typedef
makVrf::makVrfGuiObjectInformationQt::DtItemUpdateFunctionCreator<DtEntityMass>
DtEntityMassCreator
;
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)